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 Stopped Working Out Of the Blue...

PHP Stopped Working Out Of the Blue...
Thread Tools
Professional Poster
Join Date: May 2001
Location: Santa Clara, CA
Status: Offline
Reply With Quote
Feb 13, 2003, 10:06 PM
 
Has anyone had this problem? I even went back and edited the httpd.conf file AGAIN and for some reason PHP does not want to work with me. All of the pages on my web server (well, most) use PHP and people access them all the time but they cannot now because my PHP doesn't work.

Edit: I assume it's because I just updated to 10.2.4, but I still re-edited the httpd.conf file.
(Last edited by Jansar; Feb 13, 2003 at 10:11 PM. )
World of Warcraft (Whisperwind - Alliance) <The Eternal Spiral>
Go Dogcows!
     
Senior User
Join Date: Dec 2002
Status: Offline
Reply With Quote
Feb 14, 2003, 08:40 AM
 
Your webserver still works and PHP doesn't? My best bet would be incorrect permissions somewhere - probably messed up when 10.2.4 was installed. 10.2.4 didn't install a new webserver did it? I'll check and see if my PHP still works..

//bah mine doesn't work either
     
Occasionally Useful
Join Date: Jun 2001
Location: Liverpool, UK
Status: Offline
Reply With Quote
Feb 14, 2003, 09:03 AM
 
hmm. okay, mine's fuct too. grr! i just reinstalled php from entropy, but still nothing.

WTF!?
"Have sharp knives. Be creative. Cook to music" ~ maxelson
     
Dedicated MacNNer
Join Date: Jan 2001
Location: Meida, PA USA
Status: Offline
Reply With Quote
Feb 14, 2003, 11:46 AM
 
on my box apple seems to have renamed my httpd.conf to something with .applesaved

try swaping your old conf file back in
~ Mike
--
Personal Site: MikeZornek.com
Other Interests: WebDevWiki.com
     
Occasionally Useful
Join Date: Jun 2001
Location: Liverpool, UK
Status: Offline
Reply With Quote
Feb 14, 2003, 12:08 PM
 
yeah, mike. i just read this:
Apache configuration file: Eric Altson reports that if you have a custom Apache configuration file, the update will back it up and replace it with a fresh version that does not include any personal changes you may have made.

So if you use Apache to serve pages from your Mac OS X box, make sure to replace any custom settings. If you don't, you could wind up with server side include failures and other problems.

PHP modifications gone: Mac OS X 10.2.4 update voids any modifications done to the PHP subsystem, which includes new functionality in the latest release. The old httpd.conf file is saved as httpd.conf.applesaved in the /etc/httpd directory.

Accessing the httpd.conf.applesaved will allow you to restore your original settings.
[edit] moved a few things around, etc. it didn't work. re-installed, it didn't work. opened a beer, it works.

moral: always crack a beer, when you're stressed
(Last edited by philzilla; Feb 14, 2003 at 12:31 PM. )
"Have sharp knives. Be creative. Cook to music" ~ maxelson
     
Senior User
Join Date: Dec 2002
Status: Offline
Reply With Quote
Feb 14, 2003, 12:49 PM
 
yay changed httpd.conf -> httpd1024.conf and and restored httpd.conf.applesaved to httpd.conf, now it works! Thanks.
     
Grizzled Veteran
Join Date: Nov 2001
Location: Oregon
Status: Offline
Reply With Quote
Feb 21, 2003, 12:56 PM
 
You're better off not modifying httpd.conf, but rather making your changes in a separate file stored in /private/etc/httpd/users/

Notice the last line of Apple's standard httpd.conf file:

Include /private/etc/httpd/users

That's intended to load http.conf customizations for individual users on your Mac. What it does, effectively, is append every file in the directory /private/etc/httpd/users/, in alphabetical order, to your /etc/httpd/httpd.conf file. So if you place a file containing only the customizations you would otherwise make to /etc/httpd/httpd.conf in the directory /private/etc/httpd/users/, your customizations will always be in effect without ever editing your /etc/httpd/httpd.conf file, and they won't break with each system update. Slick, eh?

Important safety tip: Every file in /private/etc/httpd/users/ is appended to your /etc/httpd/httpd.conf file, even files with suffixes like ".bak", so keep your backup files in another directory, else they are likely to override the changes you're making in your primary file (e.g. my.httpd.conf.bak would load after my.httpd.conf, which might undo the edits you've made and send you off chasing your tail for hours while trying to figure out why the changes you're making don't seem to work properly -- of course i was never caught by this snare! ).
     
Mac Elite
Join Date: Oct 2000
Status: Offline
Reply With Quote
Feb 23, 2003, 12:24 PM
 
Has anyone considered there's a reason there is a new httpd.conf file? Possibly changes, fixes? I modified my new one and restarted apache (I assume you did that... ) and everything's back working.
     
Dedicated MacNNer
Join Date: Jan 2001
Location: Meida, PA USA
Status: Offline
Reply With Quote
Feb 23, 2003, 02:42 PM
 
Originally posted by Synotic:
Has anyone considered there's a reason there is a new httpd.conf file? Possibly changes, fixes? I modified my new one and restarted apache (I assume you did that... ) and everything's back working.
The main change was the addition of mod_rendezvous.

If you don't want that then feel free to swap your old httpd.conf back in. If you want the new module I would recommend using FileMerge (found in /Developer/Applications/ ) to compare the two files, then replicate the new lines in the old conf then swap.

It really depends how many modifications one does to see which is a faster method to get back up and running.
~ Mike
--
Personal Site: MikeZornek.com
Other Interests: WebDevWiki.com
     
Professional Poster
Join Date: Jan 2000
Location: south
Status: Offline
Reply With Quote
Mar 24, 2003, 04:48 PM
 
I can't even fricking rename my httpd.cof file. I had the entrophy package installed and when I went to 10.2.4 everything got f****ed
     
   
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
Trackbacks are On
Pingbacks are On
Refbacks are On
Top
Privacy Policy
All times are GMT -5. The time now is 08:47 PM.
All contents of these forums © 1995-2011 MacNN. All rights reserved.
Branding + Design: www.gesamtbild.com
vBulletin v.3.8.7 © 2000-2011, Jelsoft Enterprises Ltd., Content Relevant URLs by vBSEO 3.3.2