Forwarding Address: OS X

Friday, February 14, 2003

If you have PHP installed and you've loaded up 10.2.4 you've probably noticed that PHP no longer works. By editing httpd.conf in the following way I was able to get PHP back and running. Disclaimer: I don't really know what I'm doing here, I'm just a guy armed with BBEdit and some vague notions. Follow my lead at your peril. That said:
  1. Open httpd.conf in the text editor of your choice.
  2. Find the following lines and uncomment them:
    #LoadModule php4_module libexec/httpd/
    #AddModule mod_php4.c
  3. Find this line:
    Include /private/etc/httpd/users
  4. And add this line right after it:
    AddType application/x-httpd-php .php
  5. Save.
  6. Open your System Preferences, go to Sharing and restart your web server.
PHP should be running again. At least, it is for me ;-) Discuss