- Plesk for Linux
Is it possible to have different versions of PHP for two different folders under a domain hosted in Plesk?
No, it is not possible to run two different PHP versions on two different directories under the same domain.
The PHP version that is selected for a domain is applied to all sub-directories under
Please vote for this feature request here, as most voted requests are more likely to be included in newer versions of Plesk.
There's an old forum thread about this: https://talk.plesk.com/threads/two-php-versions-linux-plesk-howto.259084/
Warning: Steps from the forum are under your own risk and will, because they are not covered by Plesk Support, moreover it may be possible that future Plesk updates breaks the customizations made, as well as running
plesk repair or Webserver Configuration Troubleshooter might also revert those files to the default settings. For further support on forum topics, please reply on the forum thread for community support.