/usr/bin/ruby -e '$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)'
sudo apachectl start
vi httpd.conf
LoadModule php5_module libexec/apache2/libphp5.so
sudo apachectl restart
brew install mysql
brew tap homebrew/services
brew services start mysql
mysql_secure_installation
mysql -uroot -p
._www
) needs to have access to read, and sometimes write, your web directory.chmod 755 directory/
or you can change the ownership of the directory to the apache user and group: chown -R _www:_www directory