Could not get admin password, error: "The file index.php is part of Plesk distribution. It cannot be run outside of Plesk environment"

Refers to:

  • Plesk 11.0 for Linux
  • Plesk

Created:

2016-11-16 13:05:12 UTC

Modified:

2016-12-21 19:55:26 UTC

0

Was this article helpful?


Have more questions?

Submit a request

Could not get admin password, error: "The file index.php is part of Plesk distribution. It cannot be run outside of Plesk environment"

Symptoms

When getting the Parallels Plesk Panel (Plesk) admin password or accessing the Plesk interface, the following error occurs:

# /usr/local/psa/bin/admin --show-password
The file <some file> is part of Plesk distribution. It cannot be run outside of Plesk environment.

The " pp-sitebuilder " and " plesk-core " packages versions are different:

    # rpm -qa |egrep  'plesk-core|pp-sitebuilder'
plesk-core-11.0.9
pp-sitebuilder-11.5.6
pp-sitebuilder-default-templates-11.5.6
pp-sitebuilder-skins-11.5.6

These versions should be the same: 11.0.x for Plesk and 11.0.x for Parallels Presence Builder (PPB) packages. For Plesk 11.5, both versions should be 11.5.x

Cause

The packages conflict with each other due to the failed upgrade. PPB should have the same package version as the Plesk packages.

Resolution

Remove PPB packages with the incorrect version and install the correct one.

  1. Create backups of the Plesk and PPB databases:

    # mysqldump -uadmin -p`cat /etc/psa/.psa.shadow ` psa > /root/psa.`date +%Y%m%d.%H%M%S`.sql
    # mysqldump -uadmin -p`cat /etc/psa/.psa.shadow ` apsc > /root/apsc.`date +%Y%m%d.%H%M%S`.sql
    # mysqldump -uadmin -p`cat /etc/psa/.psa.shadow ` sitebuilder5> /root/sitebuilder5.`date +%Y%m%d.%H%M%S`.sql
  2. Remove the incorrect packages from the rpm database. For example:

    # rpm -e --nodeps --justdb pp-sitebuilder-11.5.6 pp-sitebuilder-default-templates-11.5.6 pp-sitebuilder-skins-11.5.6
  3. Update the psa-11.0.9 , psa-core-11.0.9 , psa-base-11.0.9 packages. For example, for CentOS 6 x64:

    # wget http://autoinstall.plesk.com/PSA_11.0.9/dist-rpm-CentOS-6-x86_64/base/psa-11.0.9-cos6.build110120608.16.x86_64.rpm
    # wget http://autoinstall.plesk.com/PSA_11.0.9/dist-rpm-CentOS-6-x86_64/base/plesk-core-11.0.9-cos6.build110120608.16.x86_64.rpm
    # wget http://autoinstall.plesk.com/PSA_11.0.9/dist-rpm-CentOS-6-x86_64/base/plesk-base-11.0.9-cos6.build110120608.16.x86_64.rpm
    # rpm -Uhv --force psa-11.0.9-cos6.build110120608.16.x86_64.rpm plesk-core-11.0.9-cos6.build110120608.16.x86_64.rpm plesk-base-11.0.9-cos6.build110120608.16.x86_64.rpm
  4. Install PPB using the autoinstaller utility:

    # /usr/local/psa/admin/bin/autoinstaller
Have more questions? Submit a request
Please sign in to leave a comment.