This Article will show you how to Configure PHP for Virtual Directories in Windows Plesk
To select PHP version for a virtual directory within a website:
Step 1. Go to Websites & Domains and find the website’s domain name.
Step 2. Click Virtual Directories.
Step 3. Browse to the required directory and click a link with its name.
Step 4. In the Tools group, click PHP Settings.
Step 5. Select the required version of PHP and click OK.