RESOLVED.

Problem was that apache was not reloading configuration files when apachectl
restart was issued.   Manually sent kill -HUD [apache pid#], then started
apache with apachectl start.  register_globals is now on (again this is a
local intranet secure from the outside world - "off" is the normal desired
option).  

The problem was complicated by an .htaccess file which contained this line:

php_value register_globals on

For reasons unknown this caused the local setting of register_globals to be
"off" (the global setting was "on").   After deleting the .htaccess file the
local setting of register_globals matched the global setting. 

Thanks for any and all pointers along the way.  

Michael


> -----Original Message-----
> From: Stembridge, Michael [mailto:[EMAIL PROTECTED]
> Sent: Thursday, March 06, 2003 9:43 AM
> To: [EMAIL PROTECTED]
> Subject: RE: [PHP-INST] php.ini changes not taking
> 
> 
> 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:[EMAIL PROTECTED]
> > Sent: Thursday, March 06, 2003 9:35 AM
> > To: Stembridge, Michael; [EMAIL PROTECTED]
> > 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
> > 
> 
> -- 
> PHP Install Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
> 

-- 
PHP Install Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to