Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 15 Dec 2005 23:50:45 -0800
From:      Jose Borquez <bsdlists@sbcglobal.net>
To:        FreeBSD Questions group <freebsd-questions@freebsd.org>
Subject:   mod_php5 does not configure Apache httpd.conf
Message-ID:  <43A271D5.9030403@sbcglobal.net>

next in thread | raw e-mail | index | archive | help
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




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?43A271D5.9030403>