Plesk upgrade failed: Cannot redeclare set_locale


2016-12-12 03:48:58 UTC


2017-08-08 13:40:41 UTC


Was this article helpful?

Have more questions?

Submit a request

Plesk upgrade failed: Cannot redeclare set_locale

Applicable to:

  • Plesk for Linux


  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/ /usr/lib/x86_64-linux-gnu/php/modules/sw- engine/ 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


Plesk upgrade has been interrupted due to unknown reason.


  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

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.