problem with php.ini

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
yamokosk
Forum Newbie
Posts: 16
Joined: Wed Jun 04, 2003 2:35 pm

problem with php.ini

Post 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.
User avatar
volka
DevNet Evangelist
Posts: 8391
Joined: Tue May 07, 2002 9:48 am
Location: Berlin, ger

Post 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?
yamokosk
Forum Newbie
Posts: 16
Joined: Wed Jun 04, 2003 2:35 pm

Post 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?
yamokosk
Forum Newbie
Posts: 16
Joined: Wed Jun 04, 2003 2:35 pm

Post 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.
User avatar
volka
DevNet Evangelist
Posts: 8391
Joined: Tue May 07, 2002 9:48 am
Location: Berlin, ger

Post 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?
Post Reply