Symptoms
When attempting to log into Plesk Panel the following message is displayed:The file filename.php is part of Plesk distribution. It cannot be run outside of Plesk environment.
Cause
A *.php file cannot be decrypted by Plesk engine. This ould happened in:1. Plesk key installed is invalid. It means that you could install key for Plesk for Linux not for Windows or the other way round.
2. Plesk php environment is corrupted.
Resolution
To fix the issue in the first case you need to complete the following steps:1. Close your browser. Or just make sure that your browser does not show cached web pages.
2. Stop Plesk Control Panel Service.
3. Remove all files from within %plesk_dir%PrivateTempd. Reset current Plesk to default PLSK.00000000.0000. You can do it using defpkey.reg attached to this article.
4. Start Plesk Control Panel Service.
6. Re-upload valid Plesk key straight via Plesk Panel. You can upload PLSK.XXXXXXXX.XXXX.exe key.
To fix the issue in the second case you need to follow the steps:
1. Switch Plesk web server to another provider.
If IIS is used as Plesk web server switch it to Apache:
%plesk_bin%\reconfigurator.exe --switch-plesk-web-server --new-provider=apacheIf Apache is used as Plesk web server switch it to IIS:
%plesk_bin%\reconfigurator.exe --switch-plesk-web-server --new-provider=iisCheck if Plesk works correctly once these steps are completed. Plesk PHP files were corrupted if the same error is displayed. . In this case you need to run Plesk Repair in Add or Remove Programs.