mod_php5 does not configure Apache httpd.conf
Jose Borquez
bsdlists at sbcglobal.net
Thu Dec 15 23:50:56 PST 2005
The FreeBSD handbook says if you install mod_php5 it should modify the
httpd.conf file to enable support for php5, but it does not happen. The
handbooks says it should add this:
<IfModule mod_php5.c>
DirectoryIndex index.php index.html
</IfModule>
I only see:
<IfModule mod_dir.c>
<IfModule mod_php3.c>
<IfModule mod_php4.c>
DirectoryIndex index.php index.php3 index.html index.htm
</IfModule>
<IfModule !mod_php4.c>
DirectoryIndex index.php3 index.html index.htm
</IfModule>
</IfModule>
<IfModule !mod_php3.c>
<IfModule mod_php4.c>
DirectoryIndex index.php index.html index.htm
</IfModule>
<IfModule !mod_php4.c>
DirectoryIndex index.html
</IfModule>
</IfModule>
</IfModule>
Do I need to enter it manually? It should also add this:
<IfModule mod_php5.c>
AddType application/x-httpd-php .php
AddType application/x-httpd-php-source .phps
</IfModule>
I only see this in the config:
</IfModule>
<IfModule mod_php3.c>
AddType application/x-httpd-php3 .php3
AddType application/x-httpd-php3-source .php3s
</IfModule>
<IfModule mod_php4.c>
AddType application/x-httpd-php .php
AddType application/x-httpd-php-source .phps
</IfModule>
I'm quite confused. Could someone please shed some light on this?
Thanks in advance,
Jose
More information about the freebsd-questions
mailing list