Solved How to install PHP Apache module (libphp5.so) from ports?

I'm setting up a new FreeBSD 9.3-p8 system and can't figure out how to get the PHP5 apache (2.4) module installed. There used to be an option for Apache in make config (/usr/ports/lang/php5) but it's gone. I have Apache already 2.4 installed. What's the trick?
 
There should now be a mod_php port or something similar. (I'm not on FreeBSD right now and I'm too lazy to boot it. There is probably mention in UPDATING somewhere.
Aha, there is. A quick google indicates
20140327:
AFFECTS: users of lang/php5 and lang/php55 with Apache module
AUTHOR: ale@FreeBSD.org

The Apache PHP module has been separated from the main PHP port.
If you had the APACHE OPTION selected, you have to perform the
following steps:

1) update your lang/php* options (i.e. 'make config')
2) rebuild lang/php* port
3) install www/mod_php* port

It is *mandatory* to build both ports with the same DEBUG and ZTS
options, so if you have a threaded Apache (i.e. worker or event MPM)
you have to select the ZTS option in lang/php* port.
 
Back
Top