Plesk upgrade failed: Cannot redeclare set_locale

Created:

2016-12-12 03:48:58 UTC

Modified:

2017-08-08 13:40:41 UTC

0

Was this article helpful?


Have more questions?

Submit a request

Plesk upgrade failed: Cannot redeclare set_locale

Applicable to:

  • Plesk for Linux

Symptoms

  1. Plesk upgrade has failed. When logging in to Plesk the following error is shown:

    500 Internal Error
  2. Running Plesk autoinstaller results in the error message:

    ERROR: Failed to execute an external command: exec() operation failed.
  3. The following error is shown during reconfiguration of domains or when using Plesk CLI commands:

    # /usr/local/psa/admin/bin/httpdmng --reconfigure-all
    Failed loading /usr/lib/x86_64-linux-gnu/php/modules/sw-engine/ioncube_loader_lin_5.5.so: /usr/lib/x86_64-linux-gnu/php/modules/sw- engine/ioncube_loader_lin_5.5.so: cannot open shared object file: No such file or directory
    PHP Fatal error: Cannot redeclare set_locale() (previously declared in /opt/psa/admin/plib/common_func.php3:535) in /opt/psa/admin/plib/functions.php on line 639

Cause

Plesk upgrade has been interrupted due to unknown reason.

Resolution

  1. Install Plesk base packages manually from Plesk repository > Plesk version you are upgrading to > OS version > base > * , e.g. for Plesk 12.5, CentOS 7, plesk-core package:
    # rpm -Uvh --force http://autoinstall.plesk.com/PSA_12.5.30/dist-rpm-CentOS-7-x86_64/base/plesk-core-12.5.30-cos7.build1205150826.19.x86_64.rpm

Note, that in some cases, for Plesk 12.5 it is required to manually upgrade psa-vhost package which is placed in contrib directory in Plesk repository

  1. Proceed with the installation using Plesk autoinstaller:
    # /usr/local/psa/admin/bin/autoinstaller
Have more questions? Submit a request
Please sign in to leave a comment.