brew update
brew install php56
brew install php56-mcrypt
brew install mysql
mysql.server start
- Run
/usr/local/Cellar/php56/5.6.0/bin/php --version→ should yieldPHP 5.6.0 (cli) - edit
~/.bash_profileor~/.config/fish/fish.config - add the line
alias php='/usr/local/Cellar/php56/5.6.0/bin/php' - Run
php --version→ should yieldPHP 5.6.0 (cli)
Configure VirtualHostX to use Built-in Apache instead of MAMP.
Create a new site with custom virtual host directives:
LoadModule php5_module /usr/local/Cellar/php56/5.6.0/libexec/apache2/libphp5.so
AddType application/x-httpd-php .php
DirectoryIndex index.html index.htm index.php
With a MySQL client such as Sequel Pro, connect to MySQL at localhost with the username root and no password.