RE: [PHP-INST] php.ini changes not taking
| From: | Stembridge, Michael | Date: | Thu, 06 Mar 2003 14:43:27 +0000 |
| Subject: | RE: [PHP-INST] php.ini changes not taking | ||
| Groups: | php.install | ||
| Request: | Send a blank email to php-install+get-10303@lists.php.net to get a copy of this message | ||
Thanks, I found that in the manual a little while ago.
As a last chance I tried restarting the server. Half of the problem was
resolved. register_globals is On for the global setting, but Off for the
local setting. I'm not sure how that could happen since it can't be changed
with ini_set. I did add this line to an .htaccess file "php_value
register_globals on" previously.
The root problem is Apache not restarting properly. I issued
/usr/local/apache/bin/apachectl restart - even though it appeared to stop
and start based on what was on the screen it didn't pick up the ini file
changes I made.
Hopefully I'll crack this today.
> -----Original Message-----
> From: Rich Gray [mailto:rich@f1central.net]
> Sent: Thursday, March 06, 2003 9:35 AM
> To: Stembridge, Michael; php-install@lists.php.net
> Subject: RE: [PHP-INST] php.ini changes not taking
>
>
> > This is strange. I just changed the local value of
> > session.gc.maxlifetime
> > from 1400 to 12345 with ini_set.
> >
> > ini_set("session.gc_maxlifetime",12345);
> > ini_set("register_globals",1);
> >
> > register_globals continues to remain "Off".
> >
> > (ps, I tried passing "on" and "On" and "1" as arguments,
> > none work).
> >
> > Is there another security setting I'm overlooking?
> >
>
> AFAIK you can't reset the register_globals setting via
> ini_set... by the
> time your script is run the register_globals setting has already taken
> effect... same goes for settings such as magic_quotes_gpc etc
>
> HTH
> Rich
>