Admin Life Errors, Fixes, and Encounters

30Jan/15Off

How to build php5 module into apache22 with freebsd

The Apache module is no longer inside ports/lang/php5. there is no option to build php with apache.

The fix:

use www/mod_php5 to get apache to run php

Also note that

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.

 

if you have this error

===>  mod_php55-5.5.17_1 is marked as broken: : Error from bsd.apache.mk. apache22 is installed (or APACHE_PORT is defined) and port requires apache.
*** [install] Error code 1

then make sure you add this line to /etc/make.conf
DEFAULT_VERSIONS=apache=2.2

Filed under: Errors Comments Off
Comments (0) Trackbacks (0)

Sorry, the comment form is closed at this time.

Trackbacks are disabled.