The latest Mac update, Snow Leopard, comes with pre-bundled with Apache 2.2, and PHP 5.3.
Here’s what I did to enable it and start making websites.
- Turning on Apache
To do this go to System Preferences -> click the checkbox by Web Sharing - To check your Apache install
You might like this post about how to create a quick document for testing. - Editing Apache Virtual Hosts
Paul Kukiel shares how to - Turning on PHP
- Loading MySQL
Before you rebuild MySQL, double check your processor speed. If you upgraded to Snow Leopard from an older install on an older PPC or Intel Mac, be sure to know which processor type you need to build MySQL for. These instructions are for my Generation 5 Macbook Pro, not one of the brand new 64-bit models. Download the installer from MySQL.com. Then follow this post that shows how to build MySQL from source. - Loading phpMyAdmin
- Using Terminal
I found this post useful. Here is another similar post.