I have this CentOS 6.9 VPS server with cpanel and WHM, running Apache 2 with PHP 5.6
Ive enabled PHP-FPM on WHM and it shows as active in both WHM and Cpanel (in the MultiPHP manager sections)
To be sure, I even copied it to the conf where Im setting my vhost.
And PHP-FPM seems to be running, according to its logs ("NOTICE: ready to handle connections" on the php-fpm error.log)
But when I go see phpinfo(), it still says:
Server API CGI/FastCGI
So what am I missing? How to debug this? Ive restarted apache and php-fpm many times, and even rebooted the server, to no avail
EDIT: actually, I was wrong: I didint have that on my vhost config:
<IfModule proxy_fcgi_module> <FilesMatch \.(phtml|php[0-9]*)$> SetHandler proxy:unix:/opt/cpanel/ea-php56/root/usr/var/run/php-fpm/fc680a9025c37fd635d3cad33dda11786afdf8c0.sock|fcgi://domain.tld </FilesMatch> </IfModule>
It must have been overwrote by something. Now if I place it there I get an error:
No input file specified.
Even when I try to access the script with just phpinfo() on it