Sorry I was no accurate: - First see the blue note at http://www.apachelounge.com/download/ , the 2.2.6 from http://httpd.apache.org is buggy
- Replace SetHandler fcgid-script with: AddHandler fcgid-script .php - Replace FCGIWrapper "c:/php/php.exe" .php with: FCGIWrapper "c:/php/php-cgi.exe" .php - And remove: LoadModule php5_module c:/php/php5apache2_2.dll PHPIniDir "C:/php" Steffen ----- Original Message ----- From: Xiaoyu Huang To: mod-fcgid-users@lists.sourceforge.net Sent: Wednesday, 10 October, 2007 11:39 Subject: [Mod-fcgid-users] Need help: mod_fcgid: read timeout from pipe I run apache_2.2.6-win32-x86-openssl-0.9.8e.msi + mod_fcgid-2.2-w32 on Windows 2003 with Visual C++ 2005 SP1 Redistributable Package. Put a index.php: <? echo phpinfo(); ?> in htdocs/ and htdocs/php/. My httpd.conf: LoadModule fcgid_module modules/mod_fcgid.so LoadModule php5_module c:/php/php5apache2_2.dll PHPIniDir "C:/php" <IfModule mod_fcgid.c> DefaultInitEnv PHPRC "c:/php/" DefaultInitEnv PATH "c:/php;C:/WINDOWS/system32;C:/WINDOWS;C:/WINDOWS/System32/Wbem;" DefaultInitEnv SystemRoot "C:/Windows" DefaultInitEnv SystemDrive "C:" DefaultInitEnv TEMP "C:/TEMP" DefaultInitEnv TMP "C:/TEMP" DefaultInitEnv windir "C:/WINDOWS" <Directory "C:/Program Files/Apache Software Foundation/Apache2.2/htdocs/php/"> SetHandler fcgid-script Options execCGI AllowOverride None Order allow,deny Allow from all FCGIWrapper "c:/php/php.exe" .php </Directory> </IfModule> Starting apache, visit http://127.0.0.1/index.php is ok, bug visit http://127.0.0.1/php/index.php I get error.log in apache: [Wed Oct 10 16:11:06 2007] [notice] mod_fcgid: call C:/Program Files/Apache Software Foundation/Apache2.2/htdocs/php/index.php with wrapper c:/php/php.exe [Wed Oct 10 16:11:46 2007] [warn] mod_fcgid: read timeout from pipe [Wed Oct 10 16:11:46 2007] [error] [client 127.0.0.1] Premature end of script headers: index.php I try to use php-cgi.exe instead and get the same error.log. How can I fix it? with Best regards ------------------------------------------------------------------------- This SF.net email is sponsored by: Splunk Inc. Still grepping through log files to find problems? Stop. Now Search log events and configuration files using AJAX and a browser. Download your FREE copy of Splunk now >> http://get.splunk.com/ _______________________________________________ Mod-fcgid-users mailing list Mod-fcgid-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/mod-fcgid-users ------------------------------------------------------------------------- This SF.net email is sponsored by: Splunk Inc. Still grepping through log files to find problems? Stop. Now Search log events and configuration files using AJAX and a browser. Download your FREE copy of Splunk now >> http://get.splunk.com/ _______________________________________________ Mod-fcgid-users mailing list Mod-fcgid-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/mod-fcgid-users