Date: Wed, 4 Jun 2008 15:47:59 GMT From: Till Klampaeckel <till@php.net> To: freebsd-gnats-submit@FreeBSD.org Subject: www/124274: php5 port misses to add some directives to httpd.conf Message-ID: <200806041547.m54FlxeJ071493@www.freebsd.org> Resent-Message-ID: <200806041550.m54Fo20t051374@freefall.freebsd.org>
next in thread | raw e-mail | index | archive | help
>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@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:
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200806041547.m54FlxeJ071493>