bsdzone BSDZone - FreeBSD help, how-to guides, and articles.

  [ Home ]   [ Current News ]   [ Howto Archive ]   [ Books ]   [ Search ]   [ Links ]   [ Contact ]  [ About ]  


Apache 1.3x + PHP4 from ports.
Apache - 08 Mar 05

Install Apache 1.3x with ModSSL + PHP4 + PHP Extensions from the ports.

This is really quite trivial but I have had several people ask me lately so here goes.
The benfits to installing with the ports is that when you cvsup your ports, you can use portupgrade to install the newest versions.

First to explain… You usually don’t need to recompile PHP to add support for something that you want.
PHP has support for modules that will be loaded at run time, which are specified by extensions.ini.

To install
# cd /usr/ports/www/apache13+modssl
# make install clean

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

# cd /usr/ports/lang/php4-extensions
# make install clean

I menu should come up asking you what extensions you would like to compile.
Choose what you would like and then hit okay.

Add apache_enable=”YES” to /etc/rc.conf
# /usr/local/etc/rc.d/apache.sh start

Add what you would like to /usr/local/etc/apache/httpd.conf, and get your ssl certs installed.
Now you are up and running.


Leave a Reply