Previous Topic

Next Topic

Book Contents

Deinstalling Plesk from Linux Systems

Important: following this procedure you will completely deinstall Plesk and erase all user data.

It is recommended that you have a Plesk distribution package on a local machine, because you will need to know the titles of RPM packages that your installation of Plesk comprises.

To deinstall Plesk from a Linux system:

  1. Log in to your Plesk server as user root.
  2. To deinstall packages, run the command rpm -e --nodeps <titles of packages separated by white spaces>. Example:

    #rpm -e --nodeps psa psa-proftpd psa-proftpd-xinetd

    The following is a list of packages included in Plesk 8 distribution:

  3. Delete all databases and database tables used by Plesk:

    #mysql -uadmin -p`cat /etc/psa/.psa.shadow`

    drop database psa;

    drop database horde;

  4. Find out in which directory virtual hosts reside. To do this, open /etc/psa/psa.conf file and look up the value assigned to the 'HTTPD_VHOSTS_D' variable. Delete this directory by running the following command:

    rm -rf /directory_name/*

  5. Erase all data related to mailboxes:

    #rm -rf /var/qmail/mailnames/*

  6. Delete other directories used by Plesk:

    #rm -rf /usr/local/psa/

    #rm -rf /etc/psa

    #rm -rf /var/mailman

    #rm -rf /var/drweb

    #rm -rf /var/lib/webalizer

    #rm -rf /usr/local/frontpage

    #rm -rf /var/tomcat4 (if you had Tomcat 5 installed, run rm -rf /var/tomcat5)

  7. Delete all references to DNS zones from the file /var/named/conf/named.conf, remove zone files from /var/named/run-root/var/, and modify the files in the directory /var/qmail/control appropriately.