Re: [PHP] Re: php-fpm and apache
- Date: Fri, 29 Dec 2017 12:45:48 -0500
- From: Vince LaMonica <vjl@xxxxxxxxxxxxx>
- Subject: Re: [PHP] Re: php-fpm and apache
Hi, I hate to repost, but I did not receive this message back from the list, so I am unsure it got posted. So it's not a complete repeat, I've added a little information.
I have php working within Apache 2.4 by adding the Proxy method to the virtual host, but am holding off on doing this for all the virtual hosts if I can avoid it.
ProxyPassMatch ^/(.*\.php)$ fcgi://127.0.0.1:9000/usr/local/www/roundcube/$1
I'd recommend creating a socket instead [lower overhead]. I do this for
a few dozen virtual domains and it's been running smoothly for a few years.
Protocols h2 http/1.1
SuexecUserGroup web_example1 web_example1
Require ip 188.8.131.52
The "184.108.40.206" IP should be your public IP that the proxy can use
[otherwise anyone can use your host as a proxy].
Then edit your /etc/php/7.0/fpm/pool.d/www.example1.com.conf with your
path to the UNIX socket along with the rest of the php-fpm settings for
your virtual domain.
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php