Install Apache, MySQL, PHP on Mac OS 10.11

First thing brew!

Install homebrew

Setup virtual hosts

sudo nano /etc/apache2/httpd.conf

Uncomment this lines.

Add new virtual host.

sudo nano /etc/apache2/extra/httpd-vhosts.conf

Add new virtual host to OS.

sudo nano /etc/hosts

Install PHP

We must install new php via homebrew.

brew install php56 php56-imagick php56-mcrypt

After install we must load new php version.

sudo nano /etc/apache2/httpd.conf

Find this:

LoadModule php5_module libexec/apache2/

And replace:

LoadModule php5_module /usr/local/Cellar/php56/5.6.17/libexec/apache2/

Install phpMyAdmin

brew install homebrew/php/phpmyadmin
sudo nano /etc/apache2/httpd.conf

Insert this code to end of config.

Published by Aleksey Motovilov

Just do it!

Leave a comment

Your email address will not be published. Required fields are marked *