php-fpm pool per virtual host?
Hello,
I am wondering if it is possible to configure cpanel and php-fpm with different pool per virtual host?
Atm I am using configuration similar to this post
# SetHandler php-fastcgi-virt
# Action php-fastcgi-virt /usr/sbin/php-fpm.fcgi virtual
#
Action php-fastcgi /usr/sbin/php-fpm.fcgi
ScriptAlias /usr/sbin/php-fpm.fcgi /usr/sbin/php-fpm
Options ExecCGI FollowSymLinks
SetHandler fastcgi-script
Order allow,deny
Allow from all
I would like to change tcp ports per virtual host individually, or even use unix sockets: FastCGIExternalServer /usr/sbin/php-fpm -host 127.0.0.1:9000 to FastCGIExternalServer /usr/sbin/php-fpm -host 127.0.0.1:9001 So where can I set up custom tcp port for vh? Can I just reuse that snippet at /usr/local/apache/conf/userdata/std/2/$user/$domain/$includename.conf or? Thanks!
I would like to change tcp ports per virtual host individually, or even use unix sockets: FastCGIExternalServer /usr/sbin/php-fpm -host 127.0.0.1:9000 to FastCGIExternalServer /usr/sbin/php-fpm -host 127.0.0.1:9001 So where can I set up custom tcp port for vh? Can I just reuse that snippet at /usr/local/apache/conf/userdata/std/2/$user/$domain/$includename.conf or? Thanks!
-
Hi, You can use /https://support.sysally.net/projects/cphstack to get seperate pool per user 0
Please sign in to leave a comment.
Comments
1 comment