LoginSignup
1
2

More than 3 years have passed since last update.

Mac Catalina 10.15 に、古いバージョンのPHPをインストールする

Posted at

Mac Catalina 10.15 に、古いバージョンのPHPをインストールする

CakePHP2のアプリを修正依頼が合ったが、Mac Catalinaではhomebrewに
もう古いバージョンが無く・・・

(なんでそんなに古いまま、ほっといたんだよってツッコミはなしで、、、)

brew tap exolnet/homebrew-deprecated
でも、php 5.6

どうしても、php5.5を入れたいと調べてたら、binary packageを入れる方法がありました。

PHP 5.3〜PHP 7.3がある

インストールする

curl -s https://php-osx.liip.ch/install.sh | bash -s 5.5

pathを通す

export PATH=/usr/local/php5/bin:$PATH
1
2
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
1
2