 |
 |
PHP Stopped Working Out Of the Blue...
|
 |
|
 |
|
Professional Poster
Join Date: May 2001
Location: Santa Clara, CA
Status:
Offline
|
|
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
|
|
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
|
|
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
|
|
on my box apple seems to have renamed my httpd.conf to something with .applesaved
try swaping your old conf file back in
|
|
|
| |
|
|
|
 |
|
 |
|
Occasionally Useful
Join Date: Jun 2001
Location: Liverpool, UK
Status:
Offline
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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.
|
|
|
| |
|
|
|
 |
|
 |
|
Professional Poster
Join Date: Jan 2000
Location: south
Status:
Offline
|
|
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
|
|
|
| |
|
|
|
 |
 |
|
 |
|
|
|
|
|

|
|
 |
Forum Rules
|
 |
 |
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
|
HTML code is Off
|
|
|
|
|
|
 |
 |
 |
 |
|
 |
|