I have been trying to use nginx + PHP-FPM as much as possible on my server because of its efficiency, but have run into an issue. When Apache URL re-writing is used, Apache takes over the handling of the PHP script. I understand this (and setting up nginx URL re-writing is a whole another issue). The problem is, if a virtual host is set up to use nginx + PHP-FPM but a request ends up going to Apache, Apache uses PHP 5.4 to handle the request, even though PHP 7 is installed on the server! If I switch handling to Apache + FastCGI PHP, it uses PHP 7. But if I switch back to nginx + PHP-FPM, Apache starts using PHP 5.4 again. PHP 5.4 is of course far less efficient than PHP 7
I am considering simply setting up a symlink from /usr/bin/php-cgi to /opt/plesk/php/7.0/bin/php-cgi. Would this work to resolve the issue?
I am considering simply setting up a symlink from /usr/bin/php-cgi to /opt/plesk/php/7.0/bin/php-cgi. Would this work to resolve the issue?