Date: Thu, 25 Jul 2002 00:11:50 +0200 From: Mark Rowlands <mark.rowlands@minmail.net> To: Steve Mazerski <smazerski@yahoo.co.jp>, "MET" <met@uberstats.com>, <freebsd-questions@FreeBSD.ORG> Subject: Re: PHP Apache Assistance ~ like a moron Message-ID: <200207250011.50938.mark.rowlands@minmail.net> In-Reply-To: <200207242321.01059.smazerski@yahoo.co.jp> References: <003201c23353$7cc7db90$6801a8c0@SURVIVAL> <200207242321.01059.smazerski@yahoo.co.jp>
next in thread | previous in thread | raw e-mail | index | archive | help
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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200207250011.50938.mark.rowlands>