Page 1 of 1

register_globals is being stubborn

Posted: Tue Nov 30, 2004 3:31 pm
by jtfish
Hello,

I've been wrestling with a couple apache/php installations on a couple of linux boxes and have been consistently running in to the same odd problem. I'm sure it's some ridiculous detail that is entirely my fault for tinkering with, but if someone could point me at some common pitfalls I'd appreciate it.

Ok, so the problem...

I can't convince register_globals to turn on. Please don't start out all replies by telling me how insecure it is to have it on

At any rate, I've tried turning it on in the php.ini file, I've tried using the .htaccess file, and since I'm configuring for an installation of gforge, adding ini_set("register_globals", "1"); in every .php file will probably drive me insane. Anyone have any suggestions or things I've missed?

I've been using phpinfo() to check the configuration of things, and so far only adding the ini_set calls has actually changed the "Local Value" of register_globals. the "Master Value" seems to correspond to my php.ini file.

Thanks greatly for any information anyone can share.

-Jeff

Posted: Tue Nov 30, 2004 3:44 pm
by John Cartwright
Have you restarted the server?

Posted: Tue Nov 30, 2004 3:45 pm
by jtfish
Phenom wrote:Have you restarted the server?
Is there a command to restart the php server? I've restarted the web server a number of times during these experiments, but if there's some way to restart php aside from recompiling libphp4.so, I don't know what it is.

I'm kindof new to this ;)

Posted: Tue Nov 30, 2004 3:53 pm
by rehfeld
reboot

Posted: Wed Dec 01, 2004 3:26 am
by hairyjim
Confirm the location of your php.ini file and make sure the one you are changing is the one PHP is using.

You should be able to check the location of the php.ini file that php is using by looking at the out put from phpinfo