How can I fix the error: The file index.php is part of Plesk distribution. It cannot be run outside of the Plesk environment?

Plesk recently updated the PHP encoder that they use to protect Plesk extensions and you will get this error if your panel is not fully updated. To fix the error you need to update Plesk to the latest microupdate:

To update Plesk though the Plesk Interface

 1. In Plesk, go to Tools & Settings and click Updates and Upgrades.
 2. On the Updates and Upgrades page, click Update Components.

To update Plesk from the command line (run as root)

plesk installer update

More information on how to update Plesk

What Plesk update is currently installed on the system?

You can view what version your panel is on the "System Overview" section of your home screen after logging in.  Alternatively, execute the following command in a command-line interface:

plesk version

At the time this article was written here are the latest updates for each branch:

Plesk Onyx 17.0.17 - Update 76
Plesk Onyx 17.5.3 - Update 83
Plesk Onyx 17.8.11 - Update 68

Plesk Changelog



  • encoder
  • 1 Users Found This Useful
Was this answer helpful?

Related Articles

Can I use Juggernaut Firewall to block Wordpress bruteforce attacks?

Yes we support blocking attacks like these very easily. See the howto for how to enable a custom...

How can I fix the error: The domain limit of this license key has been reached?

The admin and pro versions of our products are limited to the number of domains you can have in...

How can I disable the logging of iptables to the console?

To permanently disable all low level kernel messages (iptables etc) from flooding the console do...

Why isn't autolearning working for me (autolearn=no) ?

Lots of people seem to be confused by the "autolearn=no" statement in the default X-Spam-Status...

How can I disable the firewall from the command line?

You can disable and enable the firewall from the command line using the following commands:To...