Skip to content

Instantly share code, notes, and snippets.

@koriym
Created December 17, 2018 08:34
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save koriym/ad5db1e6b128d45c3d44bf697db40aa4 to your computer and use it in GitHub Desktop.
Save koriym/ad5db1e6b128d45c3d44bf697db40aa4 to your computer and use it in GitHub Desktop.
macOS MojaveでLiip PHPのインストール ref: https://qiita.com/koriym/items/7c1b42338586c495089f
sudo apachectl stop`
sudo launchctl unload /System/Library/LaunchDaemons/org.apache.httpd.plist 2>/dev/null`
brew install httpd
which apachectl
sudo apachectl -k start
sudo brew services start httpd
curl -s https://php-osx.liip.ch/install.sh | bash -s 7.2
[WARNING]
Detected macOS Mojave 10.14. There are serious issues with it, due to the original apache not loading
foreign libraries anymore. PHP within apache will most certainly not work anymore if you proceed!
The cli version still will.
See this issue at https://github.com/liip/php-osx/issues/249 for details and discussion
****
Restart this script with
curl -s https://php-osx.liip.ch/install.sh | bash -s force 7.2
to really install it
curl -s https://php-osx.liip.ch/install.sh | bash -s force 7.2
php -v
PHP 7.2.9 (cli) (built: Aug 21 2018 07:42:00) ( NTS )
Copyright (c) 1997-2018 The PHP Group
Zend Engine v3.2.0, Copyright (c) 1998-2018 Zend Technologies
with Zend OPcache v7.2.9, Copyright (c) 1999-2018, by Zend Technologies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment