|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2007-03-29 08:16 UTC] tony2001@php.net
[2007-03-29 09:34 UTC] mateusz at kreolabs dot com
|
|||||||||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Wed Nov 05 07:00:01 2025 UTC |
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