How to fix PHP error with Mac OS X 10.4.4 or later update

It took some searching but I learned that the Apache config file with the update was modified and turned off PHP. The fix is to do the following:

—-

Try this:

1) Edit /etc/httpd/httpd.conf

2) Find the lines

# LoadModule php4_module libexec/httpd/libphp4.so

and

# AddModule mod_php4.c

and remove the # from the front of the line.

3) Save httpd.conf and restart Apache:

$ sudo apachectl restart

If that doesn’t work then maybe you should reinstall PHP.

—-

CREDIT: * Many thanks to E Sneller in the following thread:

http://discussions.apple.com/thread.jspa?messageID=1241876

 Votes | Average: 0 out of 5 Votes | Average: 0 out of 5 Votes | Average: 0 out of 5 Votes | Average: 0 out of 5 Votes | Average: 0 out of 5 (No Ratings Yet)
Loading ... Loading ...


Leave a Reply

You must be logged in to post a comment.