Enable Web Server
goto System Preferences > Internet & Wireless > Sharing
on left side, check on Web Sharing
Enable php module
cd /private/etc/apache2
sudo nano httpd.conf
uncomment this line
#LoadModule php5_module libexec/apache2/libphp5.so
ที่มา: macinstruct.com, devarticles.com