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 > Please help - php.ini not being read

Please help - php.ini not being read
Thread Tools
Mac Elite
Join Date: Jan 2001
Status: Offline
Reply With Quote
May 17, 2005, 02:38 AM
 
Hi,

I just installed Apache 2 and PHP 5.0.4. I got rid of Apple's supplied Apache and PHP.

The only php binary left is the one I compiled and it's at:
/usr/local/apache2/php/bin/php

It loads into Apache2 fine, as when I go to a dir, it says:

Apache/2.0.54 (Unix) PHP/5.0.4 mod_ssl/2.0.54 OpenSSL/0.9.7b Server at localhost Port 80

Ehen I do a phpinfo(), it says:

Configuration File (php.ini) Path /usr/local/apache2/php/lib

I copied the recommended one to that path, but even after I change some settings in it like register_globals, and restart Apache (yes, I made sure it was stopped before restarting), PHP won't change it's settings. I made sure the owner and group and permissions were the same as the other stuff, like when PHP makes a file, it's nobody, admin.

Anyways, any ideas?

Thanks!
     
timmerk  (op)
Mac Elite
Join Date: Jan 2001
Status: Offline
Reply With Quote
May 17, 2005, 05:05 AM
 
I fixed it, by recompiling PHP and setting the config path to /etc and putting the same php.ini file there. Figures.
     
   
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 07:32 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