From owner-freebsd-questions Wed Jul 24 15:12: 1 2002 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 D5EA337B400 for ; Wed, 24 Jul 2002 15:11:58 -0700 (PDT) Received: from rush.telenordia.se (mail.telenordia.se [194.213.64.42]) by mx1.FreeBSD.org (Postfix) with SMTP id B9AF043E84 for ; Wed, 24 Jul 2002 15:11:57 -0700 (PDT) (envelope-from mark.rowlands@minmail.net) Received: (qmail 14745 invoked from network); 25 Jul 2002 00:10:51 +0200 Received: from bb-62-5-36-29.bb.tninet.se (HELO pcmarpxy.tninet.se) (62.5.36.29) by mail.telenordia.se with SMTP; 25 Jul 2002 00:10:51 +0200 Content-Type: text/plain; charset="iso-8859-1" From: Mark Rowlands To: Steve Mazerski , "MET" , Subject: Re: PHP Apache Assistance ~ like a moron Date: Thu, 25 Jul 2002 00:11:50 +0200 User-Agent: KMail/1.4.2 References: <003201c23353$7cc7db90$6801a8c0@SURVIVAL> <200207242321.01059.smazerski@yahoo.co.jp> In-Reply-To: <200207242321.01059.smazerski@yahoo.co.jp> MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Message-Id: <200207250011.50938.mark.rowlands@minmail.net> Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG On Wed July 24 2002 23:21, Steve Mazerski wrote: > On Wednesday 24 July 2002 22:48, MET wrote: > > (...) > > > Here's what I've done so far. > > > > cd /usr/local/httpd-2.0.39 > > ./configure --prefix=3D/usr/local/apache --enable-module=3Dall > > --with-mpm=3Dworker > > make > > make install > > > > cd /usr/local/php-4.2.2 > > ./configure --with-apxs2=3D/usr/local/apache/bin/apxs --with-mysql > > --with-xml --enable-ftp --enable-short-tags --enable-calendar > > --enable-track-vars --with-tsrm-pth > > > > make > > make install > > > > I then get a nice little PHP Liscense notice as well as a warning for > > register_globals being off. > > I'm not entirely sure, but it looks like you are building > PHP as a DSO-module (i.e. dynamically loadable, > not statically compiled in). This is perfectly reasonable, > but... > > > So I continue: > > > > ee /usr/local/apache/conf/httpd.conf > > > > I then append the line: AddType application/x-httpd-php .php > > does Apache know about the PHP module? Somewhere in > the httpd.conf there should be two sections (can't recall > off-hand) where the modules-to-be-loaded are explictly > mentioned. You may need to add PHP in both. > I think you will need to add least least...... LoadModule php4_module libexec/apache2/libphp4.so AddType application/x-httpd-php .php AddType application/x-httpd-php-source .phps and you may wish to add this or similar..... DirectoryIndex index.html index.php=20 To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message