On samedi, 18 mars 2017 21.57:07 h CET Robert Kaiser wrote:
Bruno Friedmann schrieb:
In fact the only conflicting package in mod_php, you can't have both of them installed under apache2, but normally you're already using php-fpm engine ;-) Does openSURE have a way of setting up the php-fpm engine reasonably easily? When I investigated it a very few months ago, it sounded rather difficult to get set up properly and even more to migrate eixsting installs that have quite a bit of PHP stuff running.
It would be interesting to be able to easily switch to php-fpm to also be able to switch to a different MPM than prefork.
KaiRo
Under tumbleweed php 5.6 php-fpm package has a ready to use systemd service.
And also under Leap (42.1).
I've adjusted two values in a copy in /etc/systemd/system with those values.
+ExecStart=/usr/sbin/php-fpm --nodaemonize --php-ini /etc/php5/php.ini --fpm-
config /etc/php5/fpm/php-fpm.conf
+LimitNOFILE=4096
Then you adjust the global value you need in
/etc/php5/fpm/php-fpm.conf
I recommend to then create as many as needed configuration in pools.d
where you can setup the VARIABLE etc.
You setup the socket you want to open, for example my www pool is listening
there.
listen = '/run/php-fpm-www.socket'
and in apache2 (I use event MPM) I use this kind of definition
ProxyRequests Off
ProxyTimeout 300
# Mod_Proxy_Handler