4

Just upgraded to Mountain Lion, and wanted to make PHP work on the built-in version of Apache.

anildash
  • 493
  • 1
    The same way as in previous versions. Check http://apple.stackexchange.com/questions/23751/how-to-turn-mac-os-x-lion-into-a-web-server/23757#23757 – Gerry Jul 29 '12 at 08:58

1 Answers1

16
  1. Edit /private/etc/apache2/httpd.conf
  2. Find the line that says LoadModule php5_module libexec/apache2/libphp5.so and uncomment it by editing out the # at the beginning of the line. (Then save the file, obviously.)
  3. Go to Terminal and type sudo apachectl graceful at the console:
anildash
  • 493
  • I highly doubt that Apple provides an up-to-date PHP version for this. –  Dec 08 '12 at 09:55