From owner-freebsd-questions@FreeBSD.ORG Mon Jun 6 16:00:13 2005 Return-Path: X-Original-To: freebsd-questions@freebsd.org Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 9822516A41C for ; Mon, 6 Jun 2005 16:00:13 +0000 (GMT) (envelope-from kdk@daleco.biz) Received: from ezekiel.daleco.biz (southernuniform.com [66.76.92.18]) by mx1.FreeBSD.org (Postfix) with ESMTP id 3CF6F43D1F for ; Mon, 6 Jun 2005 16:00:12 +0000 (GMT) (envelope-from kdk@daleco.biz) Received: from [192.168.2.2] ([69.27.157.226]) by ezekiel.daleco.biz (8.13.1/8.13.1) with ESMTP id j56G0Aev041013; Mon, 6 Jun 2005 11:00:11 -0500 (CDT) (envelope-from kdk@daleco.biz) Message-ID: <42A472D1.1040004@daleco.biz> Date: Mon, 06 Jun 2005 10:59:13 -0500 From: Kevin Kinsey User-Agent: Mozilla/5.0 (X11; U; FreeBSD i386; en-US; rv:1.7.7) Gecko/20050428 X-Accept-Language: en-us, en MIME-Version: 1.0 To: philip@xms.co.za References: <1118083484.19699.6.camel@linux.site> In-Reply-To: <1118083484.19699.6.camel@linux.site> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Cc: freebsd-questions@freebsd.org Subject: Re: PHP on freebsd ports not working X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 06 Jun 2005 16:00:13 -0000 Philip Wege wrote: >Unable to get php to work through ports system: > > > > >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 DirectoryIndex index.php index.php3 index.html DirectoryIndex index.php3 index.html DirectoryIndex index.php index.html AddType application/x-httpd-php3 .php3 .html AddType application/x-httpd-php3-source .php3s 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.