This is my solution:
First edit /usr/local/apps/php56/bin/fpmctl56
Code sudo vi /usr/local/apps/php56/bin/fpmctl56 And modify it like this:Code pidfile=/var/run/php-fpm56.pid
OPTIONS="-R --pid /var/run/php-fpm56.pid --fpm-config /usr/local/apps/php56/etc/php-fpm.conf -c /usr/local/apps/php56/etc/php.ini"
After that run:Code sudo /usr/local/apps/php56/bin/fpmctl56 start
Then edit your .htaccess and add this:Code # Use PHP5.6 as default
<FilesMatch \.php$>
<If "-f %{REQUEST_FILENAME}">
SetHandler "proxy:unix:/usr/local/apps/php56/var/php56_9000.sock|fcgi://localhost"
</If>
</FilesMatch>
This works for me, and it keeps going with updates to Apache (but of course will not with updates to PHP 5.6 - you will have to make the /usr/local/apps/php56/bin/fpmctl56 edits again then).
Reason: I had set the default PHP to 7.2 due to security reasons, but one subdomain needed PHP 5.6 to work.
|