#11430 [Ver->Csd]: PHP-CGI executing PHP-CGI thru Apache
| From: | edink@php.net | Date: | Tue, 20 Aug 2002 12:39:38 +0000 |
| Subject: | #11430 [Ver->Csd]: PHP-CGI executing PHP-CGI thru Apache | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-17288@lists.php.net to get a copy of this message | ||
ID: 11430
Updated by: edink@php.net
Reported By: allanh@netcentralen.dk
-Status: Verified
+Status: Closed
Bug Type: Program Execution
Operating System: Linux 2.4 (RH7.3 upd kernel)
PHP Version: 4.3.0-dev
New Comment:
The problem is that php-cgi reads the environmental variables set by
apache, to find the correct script to execute, etc. This means that the
php-cgi binary that is executed from the cgi script will also try to
execute the original cgi scripts.
The solution is to use php-cgi binary for executing cgi scripts through
apache and php-cli binary for executing command line scripts (including
those called withing the cgi script).
Previous Comments:
------------------------------------------------------------------------
[2002-07-04 01:15:02] allanh@netcentralen.dk
yes
------------------------------------------------------------------------
[2002-07-03 19:10:37] sniper@php.net
I tried it too..and almost had my server crashed.
I guess the php binary used in httpd.conf is same as
in the 'test' script?
------------------------------------------------------------------------
[2002-07-03 08:29:33] allanh@netcentralen.dk
When I reported the bug I used the latest version.
I just tested again and this now it no longer terminates by itself. It
crashed the server. Error messages on the screen saying out of memory
-- killed httpd.
It is a different server.
------------------------------------------------------------------------
[2002-07-03 07:26:34] sander@php.net
Thank you for taking the time to report a problem with PHP.
Unfortunately your are not using a current version of PHP --
the problem might already be fixed. Please download a new
PHP version from http://www.php.net/downloads.php
If you are able to reproduce the bug with one of the latest
versions of PHP, please change the PHP version on this bug report
to the version you tested and change the status back to "Open".
Again, thank you for your continued support of PHP.
------------------------------------------------------------------------
[2001-06-12 13:12:37] sniper@php.net
I can reproduce this with 4.0.6RC3 too.
------------------------------------------------------------------------
The remainder of the comments for this report are too long. To view
the rest of the comments, please view the bug report online at
http://bugs.php.net/11430
--
Edit this bug report at http://bugs.php.net/?id=11430&edit=1