Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 14 May 2004 17:01:25 -0500
From:      "Andras Kende" <andras@kende.com>
To:        "'Bruce Hunter'" <bhunter@solisix.com>, <freebsd-questions@freebsd.org>
Subject:   RE: Apache 2 / PHP Installation
Message-ID:  <20040514220123.3AA7743D1F@mx1.FreeBSD.org>
In-Reply-To: <40A51751.9070807@solisix.com>

next in thread | previous in thread | raw e-mail | index | archive | help


-----Original Message-----
From: owner-freebsd-questions@freebsd.org
[mailto:owner-freebsd-questions@freebsd.org] On Behalf Of Bruce Hunter
Sent: Friday, May 14, 2004 2:01 PM
To: freebsd-questions@freebsd.org
Subject: Apache 2 / PHP Installation

Hi all,
I installed Apache 2 from the ports collection. Does apache2 come with 
php support? Probably not, but not sure. I want to install php on the 
system. I'm not sure what port I need to install?? All the pre recks.. 
are for 1.* versions of Apache. What's the deal?

Thanks so much,
Bruce
_______________________________________________
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "freebsd-questions-unsubscribe@freebsd.org"




Bruce,

Cvsup the latest ports tree...

cd /usr/ports/lang/php4 ; make install clean

add this 2 lines to /usr/loca/etc/apache2/httpd.conf :
AddType application/x-httpd-php .php
AddType application/x-httpd-php-source .phps

/usr/local/etc/rc.d/apache2.sh stop
/usr/local/etc/rc.d/apache2.sh start

Create a php test file and see if its working....



Andras Kende
http://www.kende.com






Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20040514220123.3AA7743D1F>