From owner-freebsd-questions@FreeBSD.ORG Mon Nov 15 20:11:22 2004 Return-Path: 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 C83A616A4D5 for ; Mon, 15 Nov 2004 20:11:22 +0000 (GMT) Received: from tyven.la3sg.net (la3sg.net [217.13.29.172]) by mx1.FreeBSD.org (Postfix) with ESMTP id A084B43D31 for ; Mon, 15 Nov 2004 20:11:21 +0000 (GMT) (envelope-from tyven@tyven.la3sg.net) Received: from tyven.la3sg.net (tyven@localhost.la3sg.net [127.0.0.1]) by tyven.la3sg.net (8.13.1/8.13.1) with ESMTP id iAFKBEhZ005267; Mon, 15 Nov 2004 21:11:14 +0100 (CET) (envelope-from tyven@tyven.la3sg.net) Received: (from tyven@localhost) by tyven.la3sg.net (8.13.1/8.13.1/Submit) id iAFKBDnf005266; Mon, 15 Nov 2004 21:11:13 +0100 (CET) (envelope-from tyven) Date: Mon, 15 Nov 2004 21:11:13 +0100 From: Kjell Midtseter To: "Kevin D. Kinsey, DaleCo, S.P." Message-ID: <20041115201113.GA4855@tyven.la3sg.net> Mail-Followup-To: "Kevin D. Kinsey, DaleCo, S.P." , freebsd-questions@freebsd.org References: <20041115115631.GA2804@tyven.la3sg.net> <4198D750.5090506@daleco.biz> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <4198D750.5090506@daleco.biz> User-Agent: Mutt/1.4.2.1i cc: freebsd-questions@freebsd.org Subject: Re: How do I 'activate' mod_php5? X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list Reply-To: junkmail@sensewave.com List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 15 Nov 2004 20:11:22 -0000 On Monday, 15 November 2004 at 10:20:32 -0600, Kevin D. Kinsey, DaleCo, S.P. wrote: > Kjell Midtseter wrote: > > >After installing lang/php4-extensions with apache13, > >I can start using embedded php in my web pages right away. > >When installing lang/php5-extensions, the embedded php > >is passed as if it were html without being interpreted. > >Any initialization required fro php5? > >The required modules seems to be in place in httpd.conf > >I get the same results when I make a new clean and cvsup'ed install from > >the 5.3R CD Kjell > > > > > > > > The procedure is the same for PHP5 as it was for PHP4, > with no variations *that I have noticed*. > > So, the first question ... have you added/modified/created > the necessary AddModule, LoadModule, and AddHandler > (or is it AddType?) lines in your httpd.conf? > What I have done is: 1) Loaded a system from the 5.3R CD, cvsup'ed and built world etc, cvsup'ed ports and upgraded. Then installed lang4-extensions/apache13 2) Repeated 1) on a second box, but installing lang5-extensions/apache13 3) Repeated 1) on the second box, but installing lang5-extensions/apache2 Used the same options in all 3 cases. (slight diffs in the apache2 case) 1) works as always. I find LoadModule php4_module libexec/apache/libphp4.so AddModule mod_php4.c in httpd.conf (No need to add anything) 2) does not work. I find LoadModule php5_module libexec/apache/libphp5.so AddModule mod_php5.c in httpd.conf 3) does not work. I find LoadModule php5_module libexec/apache2/libphp5.so in httpd.conf (no AddModule) In both steps 1) and 2) I find DirectoryIndex index.php index.php3 index.html DirectoryIndex index.php3 index.html DirectoryIndex index.php index.html DirectoryIndex index.html in httpd.conf, but this (oversighth?) is probably not important for php5 to work, and editing makes no difference. Kjell > When we moved from PHP v4 to v5, all we had to do was > replace the "4" with the "5" in all those locations. > > Of course, it could be something else ... > <#include disclaimer.h> > > Kevin Kinsey