We run our .htm and .html files through PHP on our website. We'd like to move to PHP-FPM and I'm uncertain on how to make that happen.
Our server details:
/etc/redhat-release:CentOS Linux release 7.3.1611 (Core)
/usr/local/cpanel/version:11.66.0.24
/var/cpanel/envtype:virtuozzo
CPANEL=release
I have root access.
I see the following in httpd.conf:
I tried overriding with a domain specific include file and then regenerating httpd.conf. But my include file was included before the above entry, so I'm assuming the above will override my override, if that makes sense.
What is the best way for me to have something that looks like this for my VirtualHost:
Our server details:
/etc/redhat-release:CentOS Linux release 7.3.1611 (Core)
/usr/local/cpanel/version:11.66.0.24
/var/cpanel/envtype:virtuozzo
CPANEL=release
I have root access.
I see the following in httpd.conf:
Code:
<IfModule proxy_fcgi_module>
<FilesMatch \.(phtml|php[0-9]*)$>
SetHandler proxy:unix:/opt/cpanel/ea-php70/root/usr/var/run/php-fpm/####.sock|fcgi://DOMAIN.com
</FilesMatch>
</IfModule>
What is the best way for me to have something that looks like this for my VirtualHost:
Code:
<IfModule proxy_fcgi_module>
<FilesMatch \.(htm|html|phtml|php[0-9]*)$>
SetHandler proxy:unix:/opt/cpanel/ea-php70/root/usr/var/run/php-fpm/####.sock|fcgi://DOMAIN.com
</FilesMatch>
</IfModule>