Installation Php56 sur MacOs

$ brew update
$ brew tap homebrew/dupes
$ brew tap homebrew/versions
$ brew tap homebrew/homebrew-php
$ brew options php56
$ brew install php56

Dans le fichier /etc/apache2/httpd.conf :
Commenter la ligne
LoadModule php5_module libexec/apache2/libphp5.so

Rajouter la ligne
LoadModule php5_module /usr/local/opt/php56/libexec/apache2/libphp5.so

Relancer Apache :
sudo vi /etc/apache2/httpd.conf

Lister les modules installés :
$ php -m

Leave a Reply