php4-4.3.4 port with apache-2.0.48_1 instead of apache-1.3.29_1

Jez Hancock jez.hancock at
Fri Nov 28 23:59:03 PST 2003

On Sat, Nov 29, 2003 at 02:42:18AM -0500, Seamus Abshere wrote:
> I would like to use the php4-4.3.4 port with the apache-2.0.48_1 port, 
> but php4-4.3.4 lists apache-1.3.29_1 as a dependency.
Try building mod_php4 with the flag -DWITH_APACHE2:

cd /usr/ports/www/mod_php4/ && make clean install -DWITH_APACHE2

> I would still like the convenience of updating both 
> ports with a cron job.
If you use portupgrade you can specify that the mod_php port upgrades should 
include the relevant apache2 flag (-DWITH_APACHE2).  See the
pkgtools.conf manpage for more info after installing portupgrade from
the ports.

As an example my pkgtools.conf file includes:

	'www/mod_php4' => [

indicating that mod_php4 should be upgraded using those build options.
IN your case you'd just want to add 'WITH_APACHE2' to make sure it gets
built for apache2.


Jez Hancock
 - System Administrator / PHP Developer

More information about the freebsd-questions mailing list