FreeBSD Ports: What Happened to mod_php5?

28 May 2006

I'm recompiling PHP5 on my server to add PostgreSQL support, and couldn't figure-out why all of the various mod_php* ports had disappeared from the ports/www. Turns out you need to enable PHP to do its own Apache support now. To have PHP build an SO for Apache:

bash-2.05b# cd /usr/ports/lang/php5 bash-2.05b# make config

Select the check box that mentions Apache, and you should be good to go.

Don't forget to do the same steps in lang/php5-extensions to install things such as MySQL support if you're upgrading or installing PHP5.

This change is kind of annoying as I'd rather be able to build mod_php independently since it's more intuitive, but oh well.