Page 1 of 1
problem with php.ini
Posted: Wed Jun 04, 2003 2:35 pm
by yamokosk
This is probably a fairly easy fix, but I can't seem to find the answer. Ok, so first I ran phpinfo() to find the php.ini file. I opened it up, changed some things, saved it. Then I restarted httpd, re-ran phpinfo() and the changes did not show up.
I did the above two more times, just to make sure I didn't miss anything. What am I missing here?
Btw, I am running PHP Version 4.2.3, Apache 1.3.26 on Linux. And I am running PHP as a module in Apache.
Posted: Wed Jun 04, 2003 3:00 pm
by volka
I did the above two more times, just to make sure I didn't miss anything
but the previous changes were still there?
how did you restart the httpd? You couldn't access the site while the process restarted?
Posted: Wed Jun 04, 2003 3:20 pm
by yamokosk
volka wrote:but the previous changes were still there?
how did you restart the httpd? You couldn't access the site while the process restarted?
You mean the changes I made to php.ini? Yea, everytime I checked the file, the changes I had made were still there.
Ahhh.. so I just tried to stop httpd and reload phpinfo(). And I could. which means I am not stopping/starting httpd correctly. I thought it was a simple matter of say:
/usr/local/apache/bin/httpd restart
Any hints?
Posted: Wed Jun 04, 2003 3:26 pm
by yamokosk
Ok I got it. Thanks for the help volka. I wasn't restarting Apache correctly. It should be (on my system):
apachectl graceful
Thanks again for your help.
Posted: Wed Jun 04, 2003 3:29 pm
by volka
maybe
httpd restart is far to quick to notice the effect.
what happens if you really stop the webserver?
/usr/local/apache/bin/httpd stop
(
/usr/local/apache/bin/httpd start to start it again after you've tested the connection)
If you still can access the site you stopped the wrong server but I doubt you have more than one running
settings phpinfo() shows are devided into two groups, Local Value and Master Value. Does none of them change?