Plesk error: The file is part of Plesk distribution. It cannot be run outside of Plesk environment.

Created:

2016-11-16 12:39:06 UTC

Modified:

2017-04-24 11:33:27 UTC

0

Was this article helpful?


Have more questions?

Submit a request

Plesk error: The file is part of Plesk distribution. It cannot be run outside of Plesk environment.

Applicable to:

  • Plesk 12.5 for Linux
  • Plesk 11.0 for Linux
  • Plesk 11.5 for Linux
  • Plesk 12.0 for Linux

Symptoms

The error occurred while trying to login after Plesk upgrade:

Error:  The file /opt/psa/admin/htdocs/login.php3 is part of Plesk distribution. It cannot be run outside of Plesk environment

OR

Attempt to reconfigure websites results in error:

# /usr/local/psa/admin/sbin/httpdmng --reconfigure-all
The file /usr/local/psa/admin/sbin/httpdmng is part of Plesk distribution. It cannot be run outside of Plesk environment.
Releasing semaphore 4 in request cleanup

Cause

Corrupted plesk-core package.

Resolution

Create all Plesk related databases dump before applying changes:

# MYSQL_PWD=`cat /etc/psa/.psa.shadow` mysqldump -uadmin psa > psa.dump.`date +%F.%s`.sql
# MYSQL_PWD=`cat /etc/psa/.psa.shadow` mysqldump -u admin apsc > apsc.dump.`date +%F.%s`.sql
# MYSQL_PWD=`cat /etc/psa/.psa.shadow` mysqldump -u admin billing > billing.dump.`date +%F.%s`.sql
# MYSQL_PWD=`cat /etc/psa/.psa.shadow` mysqldump -u admin task_manager > task_manager.dump.`date +%F.%s`.sql
# MYSQL_PWD=`cat /etc/psa/.psa.shadow` mysqldump -u admin sitebuilder5 > sitebuilder5.dump.`date +%F.

For Debian and Ubuntu systems:

  1. Download the plesk-core package for your Plesk version from repository :

    # wget http://autoinstall.plesk.com/PSA_12.0.18/dist-deb-Ubuntu-XX.04-x86_64/base/plesk-core_12.0.18-ubuntuXX.04.build1200140606.15_amd64.deb
  2. Remove the package without dependencies:

    # dpkg -r --force-depends plesk-core
  3. Install the downloaded package without dependencies:

    # dpkg -i --force-depends plesk-core_12.0.18-ubuntuXX.04.build1200140606.15_amd64.deb
  4. Restore databases from the backup, created during removing plesk-core package.

    Note : The dump file name have the following format:

    mysql.plesk.core.prerm.<plesk_version>.<yyyymmdd-hhmmss>.dump.gz .

    For example:

    mysql.plesk.core.prerm.12.0.18.20150428-194030.dump.gz

    # zcat /var/lib/psa/dumps/mysql.plesk.core.prerm.12.0.18.20150428-194030.dump.gz   | MYSQL_PWD=`cat /etc/psa/.psa.shadow` mysql -u admin
  5. Reinstall sw-cp-server and sw-engine packages also if Plesk still shows the error.

  6. Restart sw-cp-server :

    # /etc/init.d/sw-cp-server restart

For CentOS, Red Hat and CloudLinux systems:

  1. Download the plesk-core package for your Plesk version from repository :

    # wget http://autoinstall.plesk.com/PSA_12.0.18/dist-rpm-CentOS-X-x86_64/base/plesk-core-12.0.18-cosX.build1200140606.15.x86_64.rpm
  2. Remove the package without dependencies:

    # rpm -e --nodeps --noscripts plesk-core
  3. Install the downloaded package without dependencies:

    # rpm -Uhv --force --nodeps plesk-core-12.0.18-cosX.build1200140606.15.x86_64.rpm
  4. Restart sw-cp-server :

    # /etc/init.d/sw-cp-server restart
  5. Reinstall sw-cp-server and sw-engine packages also if Plesk still shows the error.

Have more questions? Submit a request
Please sign in to leave a comment.