Set PHP FPM Version per Directory
Hello,
How can I set different PHP FPM version in directory for .php files?
It works for .html files if I add to .htaccess:
AddType application/x-httpd-ea-php56 .php .html
But .php files are still served as php 7, that is domain wide setting.
The directory isn't separate subdomain on its own.
-
Hello @rch7 You can only configure PHP-FPM on a per-domain basis. If you need to configure a specific directory to use PHP-FPM with a different PHP version, then you'd need to setup a subdomain or addon domain with the document root associated with the specific directory. Once you do that, you can assign a specific PHP version to that subdomain or addon domain using WHM >> MultiPHP Manager or cPanel >> MultiPHP Manager. Thank you. 0 -
I've removed my addition to this thread and started a new. new thread here Sorry and Thank You, John 0
Please sign in to leave a comment.
Comments
2 comments