www/124274: php5 port misses to add some directives to httpd.conf
Till Klampaeckel
till at php.net
Wed Jun 4 15:50:03 UTC 2008
>Number: 124274
>Category: www
>Synopsis: php5 port misses to add some directives to httpd.conf
>Confidential: no
>Severity: non-critical
>Priority: medium
>Responsible: freebsd-www
>State: open
>Quarter:
>Keywords:
>Date-Required:
>Class: change-request
>Submitter-Id: current-users
>Arrival-Date: Wed Jun 04 15:50:02 UTC 2008
>Closed-Date:
>Last-Modified:
>Originator: Till Klampaeckel
>Release: 6.1-RELEASE
>Organization:
>Environment:
FreeBSD XXX 6.1-RELEASE FreeBSD 6.1-RELEASE #0: Sun May 7 04:42:56 UTC 2006 root at opus.cse.buffalo.edu:/usr/obj/usr/src/sys/SMP i386
>Description:
After the port is installed, httpd.conf has directives for mod_php3 and mod_php4, but none for mod_php5 (which is the current version).
Not sure if this is actually added by lang/php5, but it wouldn't hurt if it would add my suggestion (see diff below).
>How-To-Repeat:
cd /usr/ports/lang/php5 && make && make install
>Fix:
To illustrate what needs to be added, a simple diff:
--- httpd.conf.orig Wed Jun 4 10:40:29 2008
+++ httpd.conf Wed Jun 4 10:38:50 2008
@@ -447,7 +447,12 @@ DocumentRoot "/usr/local/www/data"
DirectoryIndex index.php index.html
</IfModule>
<IfModule !mod_php4.c>
- DirectoryIndex index.html
+ <IfModule mod_php5.c>
+ DirectoryIndex index.php index.html
+ </IfModule>
+ <IfModule !mod_php5.c>
+ DirectoryIndex index.html
+ </IfModule>
</IfModule>
</IfModule>
</IfModule>
@@ -846,6 +851,10 @@ ServerSignature On
<IfModule mod_php4.c>
AddType application/x-httpd-php .php
AddType application/x-httpd-php-source .phps
+ </IfModule>
+ <IfModule mod_php5.c>
+ AddType application/x-httpd-php .php
+ AddType application/x-httpd-php-source .phps
</IfModule>
>Release-Note:
>Audit-Trail:
>Unformatted:
More information about the freebsd-www
mailing list