#20888 [Opn->Asn]: Installation instructions for Apache CGI mode missing/misleading

From: Date: Mon, 09 Dec 2002 10:25:48 +0000
Subject: #20888 [Opn->Asn]: Installation instructions for Apache CGI mode missing/misleading
References: 1  Groups: php.doc 
Request: Send a blank email to phpdoc+get-969350242@lists.php.net to get a copy of this message
ID: 20888 Updated by: betz@php.net Reported By: jpl@remotejava.com -Status: Open +Status: Assigned Bug Type: Documentation problem PHP Version: 4.3.0RC2 -Assigned To: +Assigned To: betz New Comment: Thanks for your report. I am on the way to update the docs. They will show up soon on the website. Previous Comments: ------------------------------------------------------------------------ [2002-12-08 15:29:14] jpl@remotejava.com I tried installing 4.3.0RC2 in CGI mode for Apache, following the documentation at http://www.php.net/manual/en/install.commandline.php Result: one hour wasted. Reason: the page does not contain any hint as to what directives need to be added to the httpd.conf to enable processing of *.php files by the interpreter. There is a user-provided docnote which handles this, suggesting to use something like this: AddType application/x-httpd-php .php4 ScriptAlias /php4/ "/home/king/php-4.1.2/" Action application/x-httpd-php /php4/php Unfortunately, this is dangerously outdated: you must use /php4/php-cgi, not /php4/php. Failing to do so results in the very difficult to debug "Premature end of script headers" message in server's error log. That "php-cgi" thing is mentioned NOWHERE on the CGI installation page - I only managed to solve it through advice on IRC. ------------------------------------------------------------------------ -- Edit this bug report at http://bugs.php.net/?id=20888&edit=1

« previous php.doc (#969350242) next »