Symptoms
-
Plesk packages were partially removed by mistake using
apt-get
oryum
commands; -
Plesk
psa
database was also removed as a consequence;
Cause
Plesk was removed by dependencies.
Resolution
-
Login to the server via SSH
-
Restore 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
-
Download Plesk Installer:
-
Add execution permissions to script:
# chmod +x plesk-installer
-
Launch Plesk Installer with the command below and follow the on-screen instructions selecting all default options:
# ./plesk-installer
- Scan and repair installation:
# plesk repair installation