5
3

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 5 years have passed since last update.

Macにhomebrewでphpを入れる

Posted at

Macを初期化して、再度環境構築でphpを入れることになったので、メモ。

ターミナルで入れることを想定。

#php7.1を入れる場合

brew tap homebrew/php
brew install php71

ターミナルを再起動。

brew services start homebrew/php/php71
php -v

#php7.2を入れる場合

brew tap homebrew/php
brew install php72

ターミナルを再起動。

brew services start homebrew/php/php72
php -v

#php7.1から7.2にする場合

brew unlink php71
brew install php72

ターミナルを再起動。

brew services start homebrew/php/php72
php -v
5
3
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
5
3

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?