Apache 2 / PHP Installation

Andras Kende andras at kende.com
Fri May 14 15:01:24 PDT 2004



-----Original Message-----
From: owner-freebsd-questions at freebsd.org
[mailto:owner-freebsd-questions at freebsd.org] On Behalf Of Bruce Hunter
Sent: Friday, May 14, 2004 2:01 PM
To: freebsd-questions at 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 at freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "freebsd-questions-unsubscribe at 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






More information about the freebsd-questions mailing list