Just upgraded to Mountain Lion, and wanted to make PHP work on the built-in version of Apache.
- Find the line that says
LoadModule php5_module libexec/apache2/libphp5.soand uncomment it by editing out the # at the beginning of the line. (Then save the file, obviously.)
- Go to Terminal and type
sudo apachectl gracefulat the console: