|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
[2002-12-08 15:29 UTC] jpl at remotejava dot 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. PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Wed Nov 19 09:00:01 2025 UTC |
Actually, it's: {phpdir}/php.exe (CGI) {phpdir}/cli/php.exe (CLI) This is documented at features.commandline.php