Date: Mon, 06 Jun 2005 10:59:13 -0500 From: Kevin Kinsey <kdk@daleco.biz> To: philip@xms.co.za Cc: freebsd-questions@freebsd.org Subject: Re: PHP on freebsd ports not working Message-ID: <42A472D1.1040004@daleco.biz> In-Reply-To: <1118083484.19699.6.camel@linux.site> References: <1118083484.19699.6.camel@linux.site>
next in thread | previous in thread | raw e-mail | index | archive | help
Philip Wege wrote:
>Unable to get php to work through ports system:
>
>
>
>
<snip>
>I got a feeling im missing config lines that needs to be added to
>httpd.conf , can anyone help ?
>
>
You need "AddModule" in addition to "LoadModule"; and
the real crux of the issue is probably the lack of "AddType"
directives. Maybe this will help?
==============================
# grep php /usr/local/etc/apache/httpd.conf
LoadModule php5_module libexec/apache/libphp5.so
AddModule mod_php5.c
<IfModule mod_php3.c>
<IfModule mod_php4.c>
DirectoryIndex index.php index.php3 index.html
<IfModule !mod_php4.c>
DirectoryIndex index.php3 index.html
<IfModule !mod_php3.c>
<IfModule mod_php4.c>
DirectoryIndex index.php index.html
<IfModule !mod_php4.c>
<IfModule mod_php3.c>
AddType application/x-httpd-php3 .php3 .html
AddType application/x-httpd-php3-source .php3s
<IfModule mod_php4.c>
AddType application/x-httpd-php .php .html .asp .php3
AddType application/x-httpd-php-source .phps
AddType application/x-httpd-php .php .html .asp
=================================
Kevin Kinsey
DaleCo, S.P.
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?42A472D1.1040004>
