http://akrabat.com/php/setting-up-php-mysql-on-os-x-10-7-lion/
Worked good, but it seemed really slow (more on that below).
So because of this apparent slowness I installed MAMP. It installed fine, but MAMP had problems resolving host names and doing network calls… Someone said it was a bug in the PHP version that MAMP ships. Anyway, it didn’t solve the speed problem either (that should have been my first clue).
I looked into installing Nginx on Mac, but didn’t have ‘make’ installed so I’ll have to pass for now.
I redownloaded Zend Server CE and installed that. Worked fine, but it was still slow.
so instead of 127.0.0.1 www.example.com www1.example.com
It would be 127.0.0.1 www.example.com 127.0.0.1 www1.example.com
http://superuser.com/questions/313128/lion-name-resolution-order