can pkg install mod_php5 (ie. libphp5.so) ?

Saifi Khan saifi at sina.cn
Tue Mar 4 17:10:30 UTC 2014


On Mon, 3 Mar 2014, Thierry Thomas wrote:

> Le lun  3 mar 14 à 17:48:29 +0100, saifi at sina.cn <saifi at sina.cn>
> écrivait :
>
>> Hi:
>
> Hello,
>
>> apache24-2.4.6_1 was installed using 'pkg'.
>>
>> subsequently, php55-5.5.9 and almost all the modules were installed
>> using 'pkg install'.
>>
>> However, 'pkg search' did not turn in any 'mod_php5'.
>>
>> Is building php from the '/usr/ports/lang/php5' the only option to
>> configure 'APACHE' PHP_SAPI ?
>
> Yes, it is. But note that PHP-FPM (FastCGI Process Manager) is enabled.
> -- 
> Th. Thomas.
>

Thanks Thomas for the suggestion.

Indeed PHP-FPM is a very useful approach since we dont need to worry 
about suexec or mod_php.

This helps apache and php stock installations and packaging to 
evolve in a modular way.

However, the 'ProxyPassMath' directive cannot be used on a 
<Directory> section.

This effectively means that i cannot have configuration like

<Directory "/home/*/public_html">
     Options All
     AllowOverride All
     Require all granted
     ProxyPassMatch ^/(.*\.php(/.*)?)$ fcgi://127.0.0.1:9000/home/*/public_html/$1
</Directory>

How do i effectively use 'ProxyPassMatch' directive ?

thanks
Saifi.


More information about the freebsd-ports mailing list