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:
parent
65cc3fd6cf
commit
6a5f4c3f23
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=203351
@ -1,5 +1,5 @@
|
|||||||
--- doc/suphp.conf-example.orig 2005-11-26 11:29:02.000000000 -0800
|
--- 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 @@
|
@@ -6,7 +6,7 @@
|
||||||
loglevel=info
|
loglevel=info
|
||||||
|
|
||||||
@ -24,7 +24,7 @@
|
|||||||
[handlers]
|
[handlers]
|
||||||
;Handler for php-scripts
|
;Handler for php-scripts
|
||||||
-x-httpd-php=php:/usr/bin/php
|
-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
|
;Handler for CGI-scripts
|
||||||
x-suphp-cgi=execute:!self
|
x-suphp-cgi=execute:!self
|
||||||
|
@ -38,8 +38,8 @@ you used the following Apache directives:
|
|||||||
In suPHP 0.6.x, you should use the following:
|
In suPHP 0.6.x, you should use the following:
|
||||||
|
|
||||||
suPHP_Engine on
|
suPHP_Engine on
|
||||||
AddType x-httpd-php .php
|
AddType application/x-httpd-php .php
|
||||||
suPHP_AddHandler x-httpd-php
|
suPHP_AddHandler application/x-httpd-php
|
||||||
|
|
||||||
Otherwise, Apache will begin serving PHP files as downloadable
|
Otherwise, Apache will begin serving PHP files as downloadable
|
||||||
content, rather than parse them with the PHP interpreter.
|
content, rather than parse them with the PHP interpreter.
|
||||||
|
Loading…
Reference in New Issue
Block a user