#41120 [Bgs]: PHP 5.2.1 -- FastCGI wrapper script echoed back
ID: 41120
User updated by: dsimic99 at gmail dot com
Reported By: dsimic99 at gmail dot com
Status: Bogus
Bug Type: CGI related
Operating System: Linux
PHP Version: 5.2.1
Assigned To: dmitry
New Comment:
Ok, and what happens when you point the browser to
http://.../cgi-bin/php.fpl/random-garbage ?
Btw, are you using Apache 2.0.x, maybe that matters? Also, I had the
problems I described only with PHP5.
Previous Comments:
------------------------------------------------------------------------
[2007-05-11 10:31:05] dmitry@php.net
The following configuration works for me.
httpd.conf
==========
...
LoadModule fastcgi_module libexec/mod_fastcgi.so
AddHandler php-fcgi .php
Action php-fcgi /cgi-bin/php.fpl
<Location /cgi-bin/php.fpl/*>
Options ExecCGI
SetHandler fastcgi-script
Order Allow,Deny
Allow from All
</Location>
/usr/local/apache/cgi-bin/php.fpl
=================================
#!/bin/sh
export PHP_FCGI_CHILDREN=0
export PHP_FCGI_MAX_REQUESTS=1000
exec /usr/local/apache/cgi-bin/php
===
It is nothing to fix in PHP!
------------------------------------------------------------------------
[2007-05-11 09:39:21] dsimic99 at gmail dot com
As I can see, you're using Static FastCGI server, while I have to use
Dynamic FastCGI servers. Could you try using the configuration I
provided, just for testing purposes?
------------------------------------------------------------------------
[2007-05-11 09:31:37] dmitry@php.net
As I said, I wasn't able to reproduce your configuration.
I use mod_fastcgi in some different way.
LoadModule fastcgi_module libexec/mod_fastcgi.so
FastCgiServer /usr/local/apache/cgi-bin/php -pass-header
HTTP_AUTHORIZATION -flush -idle-timeout 60 -initial-env
PHP_FCGI_CHILDREN=4
Action application/x-httpd-php /cgi-bin/php
AddType application/x-httpd-php .php
------------------------------------------------------------------------
[2007-05-11 08:35:51] dsimic99 at gmail dot com
I completely agree that my "fix" is a really dirty one and things
generally aren't supposed to be fixed that way -- you can see that I
wrote "dirty" as a comment with that fix. I had to push the server
setup into production and couldn't wait any longer either for responds
here, or for digging through the entire PHP's FastCGI interface source
finding out the actual bug.
Could you, please, point out what's the actual problem with mod_fcgi
configuration, so I could get it fixed the right way?
------------------------------------------------------------------------
[2007-05-11 08:16:07] dmitry@php.net
The problem is not in PHP, but in mod_fcgi configuration.
I wasn't able to reproduce it, but your fix is definitely wrong.
PHP must not fix configuration problems in such a way.
------------------------------------------------------------------------
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/41120
--
Edit this bug report at http://bugs.php.net/?id=41120&edit=1
Thread (9 messages)