#40944 [NEW]: PHP 4.4.6 as FastCGI on Apache2 problem.

From: Date: Thu, 29 Mar 2007 08:12:39 +0000
Subject: #40944 [NEW]: PHP 4.4.6 as FastCGI on Apache2 problem.
Groups: php.bugs 
Request: Send a blank email to php-bugs+get-110905@lists.php.net to get a copy of this message
From: mateusz at kreolabs dot com Operating system: Debian Etch AMD64 PHP version: 4.4.6 PHP Bug Type: CGI related Bug description: PHP 4.4.6 as FastCGI on Apache2 problem. 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 bug report at http://bugs.php.net/?id=40944&edit=1 -- Try a CVS snapshot (PHP 4.4): http://bugs.php.net/fix.php?id=40944&r=trysnapshot44 Try a CVS snapshot (PHP 5.2): http://bugs.php.net/fix.php?id=40944&r=trysnapshot52 Try a CVS snapshot (PHP 6.0): http://bugs.php.net/fix.php?id=40944&r=trysnapshot60 Fixed in CVS: http://bugs.php.net/fix.php?id=40944&r=fixedcvs Fixed in release: http://bugs.php.net/fix.php?id=40944&r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=40944&r=needtrace Need Reproduce Script: http://bugs.php.net/fix.php?id=40944&r=needscript Try newer version: http://bugs.php.net/fix.php?id=40944&r=oldversion Not developer issue: http://bugs.php.net/fix.php?id=40944&r=support Expected behavior: http://bugs.php.net/fix.php?id=40944&r=notwrong Not enough info: http://bugs.php.net/fix.php?id=40944&r=notenoughinfo Submitted twice: http://bugs.php.net/fix.php?id=40944&r=submittedtwice register_globals: http://bugs.php.net/fix.php?id=40944&r=globals PHP 3 support discontinued: http://bugs.php.net/fix.php?id=40944&r=php3 Daylight Savings: http://bugs.php.net/fix.php?id=40944&r=dst IIS Stability: http://bugs.php.net/fix.php?id=40944&r=isapi Install GNU Sed: http://bugs.php.net/fix.php?id=40944&r=gnused Floating point limitations: http://bugs.php.net/fix.php?id=40944&r=float No Zend Extensions: http://bugs.php.net/fix.php?id=40944&r=nozend MySQL Configuration Error: http://bugs.php.net/fix.php?id=40944&r=mysqlcfg

« previous php.bugs (#110905) next »