Forum Moderators: coopster

Message Too Old, No Replies

php.ini problems

What to do when php.ini settings are ignored

         

panic

12:06 am on Sep 25, 2003 (gmt 0)

10+ Year Member



I've changed this line in my php.ini:
register_globals = Off

to
register_globals = On

My globals weren't being registered, so I checked
phpinfo(), and it said my local value was set to Off.

I tried changing a few other values, and it's still the same story.

Am I missing a step?

-panic

dmorison

5:32 am on Sep 25, 2003 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



1/ Make sure you are editing the right php.ini - the one in /etc

2/ Are you aware that if using php as an apache module you must restart apache for php.ini changes to take effect?

panic

5:34 pm on Sep 25, 2003 (gmt 0)

10+ Year Member



1/ Make sure you are editing the right php.ini - the one in /etc

In phpinfo(), it said the path to my php.ini file was in /usr/local/lib/php.ini , so that's the one I edited.

2/ Are you aware that if using php as an apache module you must restart apache for php.ini changes to take effect?

Yes, I'm very aware of that. I restarted Apache immediately after I edited the php.ini file each time.

-panic

coopster

9:42 pm on Sep 25, 2003 (gmt 0)

WebmasterWorld Administrator 10+ Year Member



register_globals is a per-directory configuration directive (PHP_INI_PERDIR) which means the entry can be set in:
  1. php.ini
  2. .htaccess
  3. httpd.conf

panic

12:33 am on Sep 26, 2003 (gmt 0)

10+ Year Member



After re-compiling PHP for about the umpteenth time, I finally got it to work. I honestly don't know what I did differently than when I first compiled PHP in the first place, but as long as it's working, I'm a happy guy. :D

-panic

coopster

12:58 am on Sep 26, 2003 (gmt 0)

WebmasterWorld Administrator 10+ Year Member



Well that won't work, now we don't know what caused it. Please restore until we figure this out ;)

panic

4:43 pm on Sep 26, 2003 (gmt 0)

10+ Year Member



nothx :\

-panic