Fix for previous commit; user reported privately that Apache would print

"Cannot get media type from 'x-httpd-php'" as a warning in the ErrorLog.  Issue
caused by incorrect AddType syntax.

This commit fixes the pkg-message syntax described, as well as the example
suphp.conf to reflect the proper type (value "application/x-httpd-php", not
"x-httpd-php").

Submitted by:	<dark@aspu.ru>
This commit is contained in:
Jeremy Chadwick 2007-12-12 17:27:49 +00:00
parent 65cc3fd6cf
commit 6a5f4c3f23
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=203351
2 changed files with 4 additions and 4 deletions

View File

@ -1,5 +1,5 @@
--- doc/suphp.conf-example.orig 2005-11-26 11:29:02.000000000 -0800
+++ doc/suphp.conf-example 2007-11-11 02:36:02.000000000 -0800
+++ doc/suphp.conf-example 2007-12-12 09:21:02.000000000 -0800
@@ -6,7 +6,7 @@
loglevel=info
@ -24,7 +24,7 @@
[handlers]
;Handler for php-scripts
-x-httpd-php=php:/usr/bin/php
+x-httpd-php=php:/usr/local/bin/php-cgi
+application/x-httpd-php=php:/usr/local/bin/php-cgi
;Handler for CGI-scripts
x-suphp-cgi=execute:!self

View File

@ -38,8 +38,8 @@ you used the following Apache directives:
In suPHP 0.6.x, you should use the following:
suPHP_Engine on
AddType x-httpd-php .php
suPHP_AddHandler x-httpd-php
AddType application/x-httpd-php .php
suPHP_AddHandler application/x-httpd-php
Otherwise, Apache will begin serving PHP files as downloadable
content, rather than parse them with the PHP interpreter.