php-install Digest 7 Mar 2003 05:15:51 -0000 Issue 1280
Topics (messages 10301 through 10308):
Re: php.ini changes not taking
10301 by: Stembridge, Michael
10302 by: Rich Gray
10303 by: Stembridge, Michael
10305 by: Stembridge, Michael
10306 by: Chris Hewitt
Problems compiling PHP for Servlet use
10304 by: Dave Townsend
PHP on Win2000 with IIS - CGI Error
10307 by: Jody Cleveland
need help with php and apache
10308 by: Stephen K Knight
Administrivia:
To subscribe to the digest, e-mail:
[EMAIL PROTECTED]
To unsubscribe from the digest, e-mail:
[EMAIL PROTECTED]
To post to the list, e-mail:
[EMAIL PROTECTED]
----------------------------------------------------------------------
--- Begin Message ---
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?
> -----Original Message-----
> From: Stembridge, Michael
> Sent: Thursday, March 06, 2003 8:11 AM
> To: Stembridge, Michael; [EMAIL PROTECTED]
> Subject: RE: [PHP-INST] php.ini changes not taking
>
>
> I'm not sure if my question was worded vaguely or if this is
> one of the mysteries of the great uknown. Am I asking this
> on the right list?
>
> Instead of troubleshooting this issue further is there a
> configuration option which will force register_globals to be
> "On" when I compile php? If there is I'll just rebuild and
> be done with it.
>
> Thanks for any and all assistance.
>
> - Mike
>
> > -----Original Message-----
> > From: Stembridge, Michael [mailto:[EMAIL PROTECTED]
> > Sent: Wednesday, March 05, 2003 7:48 PM
> > To: [EMAIL PROTECTED]
> > Subject: [PHP-INST] php.ini changes not taking
> >
> >
> > I'm almost at my wits end with this problem. This is a new install
> > of PHP 4.3 & Apache 1.3.27 on a Redhat 8.0 machine. Php works fine
> > with the exception of configuration file changes...
> >
> > This is a local network not seen by the rest of the world
> and I would
> > like to register_globals in the ini file as opposed to using ini_set
> > or recoding several large projects to use $_GET[var] and
> $_POST[var].
> >
> > On to the diagnosis.
> >
> > From phpinfo()...
> >
> > PHP Version 4.3.1
> >
> > Configure Command './configure' '--with-mysql'
> > '--with-informix=/opt/informix' '--enable-track-vars'
> > '--with-apache=/share/source/apache/apache_1.3.27'
> > '--with-config-file-path=/usr/local/apache/conf'
> >
> > Configuration File (php.ini) Path /usr/local/apache/conf
> >
> > register_globals Off Off
> >
> > ...........................
> >
> >
> > from command line...
> > ls -l /usr/local/apache/conf/php.ini
> > -rw-r--r-- 1 mstembri mstembri 23723 Mar 5 19:33 php.ini
> >
> > -- note apache runs as user mstembri (confirmed in httpd.conf)
> >
> > ...........................
> >
> > from /usr/local/apache/conf/php.ini ...
> >
> > register_globals = On
> >
> > ...........................
> >
> >
> > I've also tried using ini_set("register_globals", "On");
> but this also
> > doesn't work.
> >
> > For kicks I tried chowning the file to nobody then restarted apache,
> > however this did not help.
> >
> > Even though phpinfo() says apache looks for the file in
> > /usr/local/apache/conf I copied the php.ini to
> /usr/local/bin and /etc
> > - no luck there either.
> >
> > I also copied the working php.ini file from another RH server using
> > php 4.0.6, but still no luck with changing php configuration.
> >
> > I've spent the past two hours reading google and google
> groups trying
> > everything that has worked for others. I'm running out of options.
> >
> > Any other ideas or suggestions?
> >
> > Michael Stembridge
> >
> > --
> > PHP Install Mailing List (http://www.php.net/)
> > To unsubscribe, visit: http://www.php.net/unsub.php
> >
>
--- End Message ---
--- Begin Message ---
> 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
--- End Message ---
--- Begin 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:[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
>
--- End Message ---
--- Begin Message ---
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
>
--- End Message ---
--- Begin Message ---
Stembridge, Michael wrote:
I'm not sure if my question was worded vaguely or if this is one of the
mysteries of the great uknown. Am I asking this on the right list?
Right list. I could not see anything wrong so did not feel I could help.
I've got the standard RH8.0 installation with Apache2 and php 4.2.2, so
some things will differ, but I've confirmed that changing
register_globals in /etc/httpd/conf.d/php.conf does alter the setting of
register_globals as shown by phpinfo(). I assume you restarted Apache
after making the change and have set your browser to not cache anything
(that has caught me out before). Bit more below:
Instead of troubleshooting this issue further is there a configuration
option which will force register_globals to be "On" when I compile php? If
there is I'll just rebuild and be done with it.
Thanks for any and all assistance.
- Mike
-----Original Message-----
From: Stembridge, Michael [mailto:[EMAIL PROTECTED]
Sent: Wednesday, March 05, 2003 7:48 PM
To: [EMAIL PROTECTED]
Subject: [PHP-INST] php.ini changes not taking
I'm almost at my wits end with this problem. This is a new install
of PHP 4.3 & Apache 1.3.27 on a Redhat 8.0 machine. Php works fine
with the exception of configuration file changes...
This is a local network not seen by the rest of the world and I would
like to register_globals in the ini file as opposed to using ini_set
or recoding several large projects to use $_GET[var] and $_POST[var].
On to the diagnosis.
From phpinfo()...
PHP Version 4.3.1
Configure Command './configure' '--with-mysql'
'--with-informix=/opt/informix' '--enable-track-vars'
'--with-apache=/share/source/apache/apache_1.3.27'
'--with-config-file-path=/usr/local/apache/conf'
Configuration File (php.ini) Path /usr/local/apache/conf
register_globals Off Off
...........................
from command line...
ls -l /usr/local/apache/conf/php.ini
-rw-r--r-- 1 mstembri mstembri 23723 Mar 5 19:33 php.ini
-- note apache runs as user mstembri (confirmed in httpd.conf)
Mine has the same permissions but owner and group root. My apache runs
as user/group apache/apache. confirmed by "ps aux | grep httpd".
Sorry I can't think of anything more at present that may help.
Chris
--- End Message ---
--- Begin Message ---
Im trying to get PHP up and running for use with Tomcat. I have PHP 4.3.1
and Tomcat 4.1.18 and Java SDK 1.4.
I have figured out adding the java library paths, and am calling configure
with servlet and java. On running make I get the following errors:
/root/php-4.3.1/sapi/servlet/servlet.c: In function
`Java_net_php_servlet_startup':
/root/php-4.3.1/sapi/servlet/servlet.c:264: warning: passing arg 2 of
`php_module_startup' from incompatible pointer type
make: *** No rule to make target `sapi/servlet/java.c', needed by
`sapi/servlet/java.lo'. Stop.
Anybody know what the problem is?
Dave
--
Do or do not. There is no try. -- Yoda
--- End Message ---
--- Begin Message ---
Hello,
I apologize for asking this. I searched the archive, and found many people
asking the same thing, but not any solutions.
I just setup the latest version of php on windows 2000 with iis 5. I think I
set everything correctly in iis with all proper permissions.
Here's the error when trying to load a basic phpinfo page:
CGI Error
The specified CGI application misbehaved by not returning a complete set of
HTTP headers. The headers it did return are:
Nothing else is shown on the page. Do you have any idea what I've done wrong
or failed to setup or configure?
--
Jody Cleveland
([EMAIL PROTECTED])
Winnefox Library System
Computer Support Specialist
--- End Message ---
--- Begin Message ---
I am currently running on a Windows Box the OS is ME
I have installed apache 2.0.44 and I have downloaded the newest PHP download
for windows.
I have read the configuration manual repeatedly for getting the php into the
apache httpd.conf doc file. but I still cannot get php to be recognized.
Can anyone help me with this?
--- End Message ---