php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #40944 PHP 4.4.6 as FastCGI on Apache2 problem.
Submitted: 2007-03-29 08:12 UTC Modified: 2007-03-29 09:34 UTC
Votes:1
Avg. Score:2.0 ± 0.0
Reproduced:0 of 1 (0.0%)
From: mateusz at kreolabs dot com Assigned:
Status: Not a bug Package: CGI/CLI related
PHP Version: 4.4.6 OS: Debian Etch AMD64
Private report: No CVE-ID: None
View Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
If you reported this bug, you can edit this bug over here.
(description)
Block user comment
Status: Assign to:
Package:
Bug Type:
Summary:
From: mateusz at kreolabs dot com
New email:
PHP Version: OS:

 

 [2007-03-29 08:12 UTC] 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

Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2007-03-29 08:16 UTC] 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 09:34 UTC] mateusz at kreolabs dot com
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.
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Thu Oct 31 23:01:28 2024 UTC