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 > macOS > PHP Disabled in 10.2.4

PHP Disabled in 10.2.4
Thread Tools
Jansar
Professional Poster
Join Date: May 2001
Location: Santa Clara, CA
Status: Offline
Reply With Quote
Feb 14, 2003, 12:25 AM
 
I recently spent hours on end configuring my web server and after installing 10.2.4, IT DOESN'T WORK! Has anyone got around this one? Something must be completely changed with this update.

Don't tell me to edit my httpd.conf file again, already did that.
World of Warcraft (Whisperwind - Alliance) <The Eternal Spiral>
Go Dogcows!
     
timster
Dedicated MacNNer
Join Date: Oct 2000
Location: Washington, DC
Status: Offline
Reply With Quote
Feb 14, 2003, 12:30 AM
 
Go edit your httpd.conf file again. You missed something. I tweaked mine (check for .applesaved in the directory) and it works now.
     
Jansar  (op)
Professional Poster
Join Date: May 2001
Location: Santa Clara, CA
Status: Offline
Reply With Quote
Feb 14, 2003, 12:39 AM
 
Originally posted by timster:
Go edit your httpd.conf file again. You missed something. I tweaked mine (check for .applesaved in the directory) and it works now.
I see the .applesaved one. How do I use it? I edited my httpd.conf again in the following three spots as usual:

Deleted # from LoadModule php4_module libexec/httpd/libphp4.so

Deleted # from the mod_php4.c line

Added AddType application/x-httpd-php .php
World of Warcraft (Whisperwind - Alliance) <The Eternal Spiral>
Go Dogcows!
     
Jansar  (op)
Professional Poster
Join Date: May 2001
Location: Santa Clara, CA
Status: Offline
Reply With Quote
Feb 14, 2003, 12:43 AM
 
Nevermind, got it.

I just saved that file as httpd.conf.
World of Warcraft (Whisperwind - Alliance) <The Eternal Spiral>
Go Dogcows!
     
Mac Write
Mac Elite
Join Date: Aug 2000
Location: Vancouver B.C.
Status: Offline
Reply With Quote
Feb 14, 2003, 01:02 AM
 
I posted this in another thread (Further down) about this with a link to an article I wrote on how to get php working again, there is some extra things not mentioned here (like setting up index.php etc). It will help you restore PHP.

worked for me.
Get busy living or get busy dying
--Stephen King
     
DaveGee
Mac Enthusiast
Join Date: Mar 2001
Status: Offline
Reply With Quote
Feb 14, 2003, 09:42 AM
 
I really wish Apple would stop overwriting custom config files (like http.conf)... I've learned to live with it by making a copy (called http.conf.MINE) so now it's just second nature to just put back my config but sheech it gets annoying.

That being said, I can kinda see reasons why they do it but it doesn't make it any less annoying.

Dave
     
timster
Dedicated MacNNer
Join Date: Oct 2000
Location: Washington, DC
Status: Offline
Reply With Quote
Feb 14, 2003, 02:58 PM
 
previous system updates didnt overwrite the httpd.conf (AFAIK) - so 10.2.4 probably introduced changes to the httpd.conf that might not have been compatible with older versions.

I did a 'diff' on the older .conf and the newer one and it seems like the only things Apple added was the rendezvous module and the rendezvous configuration directive. hard to imagine that'd really require a stock configuration file, but I guess they were just playing it safe for those who might have already configured mod_rendezvous. *shrug*
     
Rainy Day
Grizzled Veteran
Join Date: Nov 2001
Location: Oregon
Status: Offline
Reply With Quote
Feb 14, 2003, 05:33 PM
 
Originally posted by DaveGee:
I really wish Apple would stop overwriting custom config files (like http.conf)... I've learned to live with it by making a copy (called http.conf.MINE) so now it's just second nature to just put back my config but sheech it gets annoying.
Notice the last line of Apple's http.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. 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! ).
     
Terri
Senior User
Join Date: Mar 2001
Location: Sitting in front of computer
Status: Offline
Reply With Quote
Feb 14, 2003, 05:52 PM
 
Originally posted by Rainy Day:
Notice the last line of Apple's http.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. 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! ).
That is very sweet, but why doesn't Apple tell us about these things?

I already had a file in mine with my user name.conf, strange I didn't make it. The only thing in the file was this,
<Directory "/Users/create/Sites/">
Options Indexes MultiViews
AllowOverride None
Order allow,deny
Allow from all
</Directory>
     
Alex Duffield
Grizzled Veteran
Join Date: Oct 2000
Location: Vancouver
Status: Offline
Reply With Quote
Feb 14, 2003, 06:30 PM
 
I just took this opertunity to update my install of PHP...

the php supplied by Mark at http://www.entropy.ch is a great build.

Also I keep all my additions to http.conf in separate files by including "Include /private/etc/httpd/v-hosts" at the end of http.conf

Then any files that are in my v-hosts folder are read in when apache starts.

That way my virtual hosts are safe from updates.
Alex Duffield
http://www.incontrolsolutions.com
Fatal error: Call to undefined function: signature() in /usr/local/www/htdocs/showthread.php on line 813
     
Rainy Day
Grizzled Veteran
Join Date: Nov 2001
Location: Oregon
Status: Offline
Reply With Quote
Feb 14, 2003, 06:56 PM
 
Originally posted by Alex Duffield:
Also I keep all my additions to http.conf in separate files by including "Include /private/etc/httpd/v-hosts" at the end of http.conf

Then any files that are in my v-hosts folder are read in when apache starts.

That way my virtual hosts are safe from updates.
Just keep your v-hosts file in /private/etc/httpd/users/, then you can omit including "Include /private/etc/httpd/v-hosts" at the end of /etc/httpd/httpd.conf.
     
   
 
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
Top
Privacy Policy
All times are GMT -4. The time now is 11:32 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.,