Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

php5.5 FreeBSD port apache module

I have an issue with lang/php5(5) FreeBSD 10 port. I need to build it with apache module, but i don't see this option in configure section. It offers only cli, cgi and fpm version, though I strictly remember that I have already built php5 with this module. Both lang/php5 and lang/php55 have this problem. Port collection is fresh (from 31 March). I cannot run my apache without php.

P.S. My installed apache version is 2.4.

lang/php5 port configure screenshot

like image 568
iwakura Avatar asked Mar 30 '14 22:03

iwakura


Video Answer


2 Answers

You want the new www/mod_php5 port.

like image 98
Steve Wills Avatar answered Oct 14 '22 01:10

Steve Wills


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.

like image 38
Pétur Ingi Egilsson Avatar answered Oct 13 '22 23:10

Pétur Ingi Egilsson