#20888 [NEW]: Installation instructions for Apache CGI mode missing/misleading
| From: | jpl at remotejava dot com | Date: | Sun, 08 Dec 2002 21:29:14 +0000 |
| Subject: | #20888 [NEW]: Installation instructions for Apache CGI mode missing/misleading | ||
| Groups: | php.doc | ||
| Request: | Send a blank email to phpdoc+get-969350239@lists.php.net to get a copy of this message | ||
From: jpl@remotejava.com
Operating system:
PHP version: 4.3.0RC2
PHP Bug Type: Documentation problem
Bug description: Installation instructions for Apache CGI mode missing/misleading
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 bug report at http://bugs.php.net/?id=20888&edit=1
--
Try a CVS snapshot: http://bugs.php.net/fix.php?id=20888&r=trysnapshot
Fixed in CVS: http://bugs.php.net/fix.php?id=20888&r=fixedcvs
Fixed in release: http://bugs.php.net/fix.php?id=20888&r=alreadyfixed
Need backtrace: http://bugs.php.net/fix.php?id=20888&r=needtrace
Try newer version: http://bugs.php.net/fix.php?id=20888&r=oldversion
Not developer issue: http://bugs.php.net/fix.php?id=20888&r=support
Expected behavior: http://bugs.php.net/fix.php?id=20888&r=notwrong
Not enough info: http://bugs.php.net/fix.php?id=20888&r=notenoughinfo
Submitted twice: http://bugs.php.net/fix.php?id=20888&r=submittedtwice
register_globals: http://bugs.php.net/fix.php?id=20888&r=globals
PHP 3 support discontinued: http://bugs.php.net/fix.php?id=20888&r=php3
Daylight Savings: http://bugs.php.net/fix.php?id=20888&r=dst
IIS Stability: http://bugs.php.net/fix.php?id=20888&r=isapi