Plesk - Error Message When Logging In

Product versions this article applies to:

  • Plesk 7.6 for Windows

 

SYMPTOMS:

When you attempt to log in to Plesk Panel you get a message:

 

The file filename.php is part of Plesk distribution. It cannot be run outside of Plesk environment.

 

CAUSE:

 

A *.php file can not be decrypted by Plesk engine. A *.php file can not be decrypted if:

  1. Plesk key installed is not valid. It means that you could install key for Plesk for Linux not for Windows or something else.
  2. Plesk php environment is corrupt.

 

RESOLUTION:

 

To fix the first case you need to do the following:

 

  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%PrivateTemp
  4. Reset current Plesk to default PLSK.00000000.0000. You can do it using defpkey.reg attached to this article.
  5. 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 second case you need to do the following:

Switch Plesk web server to another.

If IIS is used as Plesk web server switch it to Apache:

%plesk_bin%\reconfigurator.exe --switch-plesk-web-server --new-provider=apache

If Apache is used as Plesk web server switch it to IIS:

%plesk_bin%\reconfigurator.exe --switch-plesk-web-server --new-provider=iis

Check how you Panel works. If it shows the same message it means that PHP files were changed. In this case you need to ran Plesk Repair.