#40944 [Bgs]: PHP 4.4.6 as FastCGI on Apache2 problem.
| From: | mateusz at kreolabs dot com | Date: | Thu, 29 Mar 2007 09:34:50 +0000 |
| Subject: | #40944 [Bgs]: PHP 4.4.6 as FastCGI on Apache2 problem. | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-110914@lists.php.net to get a copy of this message | ||
ID: 40944
User updated by: mateusz at kreolabs dot com
Reported By: mateusz at kreolabs dot com
Status: Bogus
Bug Type: CGI related
Operating System: Debian Etch AMD64
PHP Version: 4.4.6
New Comment:
I believe it implies. Both PHP 4.3.10 compiled as module and PHP 5.2.1
as FastCGI work properly on the same machine. They run at the same time
and work just great.
Of course as described in sapi/cgi/README.FastCGI I tried disabling PHP
4.3.10 module while trying to run PHP 4.4.6 as FastCGI.
Previous Comments:
------------------------------------------------------------------------
[2007-03-29 08:16:46] tony2001@php.net
Sorry, but your problem does not imply a bug in PHP itself. For a
list of more appropriate places to ask for help using PHP, please
visit http://www.php.net/support.php as this bug system
is not the
appropriate forum for asking support questions. Due to the volume
of reports we can not explain in detail here why your report is not
a bug. The support channels will be able to provide an explanation
for you.
Thank you for your interest in PHP.
------------------------------------------------------------------------
[2007-03-29 08:12:39] mateusz at kreolabs dot com
Description:
------------
I reproduced example of setting up FastCGI PHP with Apache2 from PHP
source (sapi/cgi/README.FastCGI)...
PHP compiled as a cgi-fcgi:
# /usr/local/apache2/cgi-bin/php-cgi -v
PHP 4.4.6 (cgi-fcgi) (built: Mar 28 2007 18:26:30)
mod_fastcgi 2.4.2 configured as following:
#v+
FastCgiIpcDir /tmp/fcgi_ipc/
AddHandler fastcgi-script .fcgi
FastCgiConfig -autoUpdate -singleThreshold 100 -killInterval 300
-idle-timeout 240 -pass-header HTTP_AUTHORIZATION
#v-
FastCGI configuration:
#v+
ScriptAlias /php4/ /usr/local/apache2/cgi-bin/
<Location /php4/>
Options ExecCGI
SetHandler fastcgi-script
</Location>
AddType application/x-httpd-fastphp .php
Action application/x-httpd-fastphp /php4/php-cgi
#v-
Proper cut from Apache log:
#v+
[Thu Mar 29 11:01:06 2007] [notice] FastCGI: process manager
initialized (pid 5115)
[Thu Mar 29 11:01:10 2007] [warn] FastCGI: (dynamic) server
"/usr/local/apache2/cgi-bin/php-cgi" started (pid 5121)
#v-
Reproduce code:
---------------
<?php phpinfo(); ?>
Expected result:
----------------
Simple PHP info page.
Actual result:
--------------
Warning: Unexpected character in input: '' (ASCII=15) state=1 in
/usr/local/apache2/cgi-bin/php-cgi on line 974
Warning: Unexpected character in input: '' (ASCII=8) state=1 in
/usr/local/apache2/cgi-bin/php-cgi on line 974
Parse error: syntax error, unexpected T_STRING in
/usr/local/apache2/cgi-bin/php-cgi on line 974
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=40944&edit=1