lang/php4 Apache module not matched by IfModule

Clement Laforet sheep.killer at cultdeadsheep.org
Fri Mar 4 02:25:22 PST 2005


On Fri, Mar 04, 2005 at 11:04:45AM +0100, Jean-Baptiste Quenot wrote:
> Hello,
> 
> I have FreeBSD 5.3-RELEASE with apache-2.0.53 and php4-4.3.10_2
> 
> In httpd.conf:
> 
> LoadModule php4_module        libexec/apache2/libphp4.so
> 
> <IfModule mod_php4.c>
>   AddType application/x-httpd-php .php
>   DirectoryIndex index.php
> </IfModule>
> 
> The instructions inside the IfModule are not evaluated.  If I
> comment out the opening and closing IfModule it works:
> 
> #<IfModule mod_php4.c>
>   AddType application/x-httpd-php .php
>   DirectoryIndex index.php
> #</IfModule>
> 
> What's wrong?

Correct value actually is:
<IfModule sapi_apache2.c>
AddType application/x-httpd-php .php
AddType application/x-httpd-php-source .phps
</IfModule>


clem


More information about the freebsd-ports mailing list