Ability to set PHP version per directory inside the same webspace
A customer would like to be able to assign different PHP versions for different directories inside one the the same webspace.
For example,
/var/www/vhosts/example.com/httpdocs - php5.3.3
/var/www/vhosts/example.com/httpdocs/test - php5.2.17
/var/www/vhosts/example.com/httpdocs/test2 - php5.6.12
Thank you for your input. We will consider this functionality in upcoming releases, if it will be popular.
Everyone, please continue voting for this feature if you consider it important.
- SU
-
Gab T commented
This is a must have feature. A very common usage of this is when we have a corporate website and we want to host an eshop in a subdirectory for SEO purposes instead of a subdomain.
If we have different platforms for website and eshop it could impose restrictions. For example main website is old and needs php5.3 and shop will require php 7.In CPanel it's possible already by using an .htaccess rule like
AddHandler application/x-httpd-php56 .php5 .php4 .php .php3 .php2 .phtml
which is really versatile but it would be best if a GUI was available too. Sites using such setups are impossible to host in Plesk at the moment.
-
scysys commented
This would be great!