How to Turn Your Mac Into a Web Server

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.comdevarticles.com