Articles in this section

Plesk was partially removed by mistake or dist-upgrade, along with the PSA database

Plesk for Linux kb: technical

Applicable to:

  • Plesk for Linux

Symptoms

  • Plesk packages were partially removed by mistake using apt-get or yum commands or dist-upgrade

    2025-02-20 21:18:53 remove plesk-core:amd64 18.0-v.ubuntu.16.04+p18.0.34.2+t210325.1052 <none>
    2025-02-20 21:19:13 remove psa-php-configurator:amd64 1.8.0-v.ubuntu.16.04+p18.0.34.2+t210325.1052 <none>
  • The Plesk PSA database was also removed as a consequence

Cause

Plesk was removed by dependencies.

Resolution

  1. Login to the server via SSH
  2. Restore the latest valid psa database dump from /var/lib/psa/dumps/:

    Note: A dump with name mysql.plesk.core.prerm is created before the removal of Plesk

    # zcat /var/lib/psa/dumps/mysql.plesk.core.prerm.xxxxxxx.dump.gz | MYSQL_PWD=`cat /etc/psa/.psa.shadow` mysql -uadmin

  3. Download Plesk Installer:

    # wget https://autoinstall.plesk.com/plesk-installer

  4. Add execution permissions to script:

    # chmod +x plesk-installer

  5. Launch Plesk Installer with the command below and follow the on-screen instructions selecting all default options:

    # ./plesk-installer

  6. Scan and repair installation:

    # plesk repair installation

Was this article helpful?

Comments

0 comments

Please sign in to leave a comment.