Welcome to the MacNN Forums.

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

You are here: MacNN Forums > Software - Troubleshooting and Discussion > Developer Center > php not working in Tiger

php not working in Tiger
Thread Tools
James L
Mac Elite
Join Date: Aug 2003
Status: Offline
Reply With Quote
Jan 28, 2006, 03:08 AM
Hey all,

I had php (the default install in Panther) up and running just fine in Panther. I recall editing a couple of lines in a cong file to get it up and running. While working on code I would keep my php files in my sites folder, and use my localhost to view them in Safari.

I upgraded to Tiger a little while ago, and just tried to access some php code to make a change or two to a script.

The php engine does not appear to be up and running. When I load the page in Safari, it just shows the script, like it is a text file.

I would assume the config file that I edited in Panther was replaced with a default one in Tiger that has php turned off... but I cannot remember which one it was.

Any thoughts?

Senior User
Join Date: Jul 2004
Status: Offline
Reply With Quote
Jan 28, 2006, 03:15 AM
The Folder: file:///etc/httpd/
You are looking for httpd.conf
you have to change permissions to edit it but need to change them back.

httpd.conf Edit:
#LoadModule php4_module libexec/httpd/libphp4.so
Replace with:
LoadModule php4_module libexec/httpd/libphp4.so

#AddModule mod_php4.c
Replace with:
AddModule mod_php4.c

Now restart your webserver.
Easy Way: System Preferences -> Sharing. Stop then Start Personal Web Sharing.

Make sure php5 isn't in there if you installed php5
Thread Tools
Forum Links
Forum Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Privacy Policy
All times are GMT -4. The time now is 12:28 PM.
All contents of these forums © 1995-2017 MacNN. All rights reserved.
Branding + Design: www.gesamtbild.com
vBulletin v.3.8.8 © 2000-2017, Jelsoft Enterprises Ltd.,