How to uninstall Vesta Control Panel on Linux

  Shared hosting

How to uninstall Vesta Control Panel on Linux

Date:16.04.2020

Step – 1: Connect to your server as root via SSH.

ssh root@your server IP and port

Step – 2: Stop vesta service by using the following command.

service vesta stop

Step – 3: Remove vesta packages and software repository.

For RHEL/CentOS:
yum remove vesta*

and you will get the below information.

[root@testing ~]# yum remove vesta*
Loaded plugins: fastestmirror
Resolving Dependencies
--> Running transaction check
---> Package vesta.x86_64 0:0.9.8-17 will be erased
---> Package vesta-nginx.x86_64 0:0.9.8-17 will be erased
---> Package vesta-php.x86_64 0:0.9.8-17 will be erased
--> Finished Dependency Resolution

Dependencies Resolved

========================================================================================================================================================================
 Package                                    Arch                                  Version                                   Repository                             Size
========================================================================================================================================================================
Removing:
 vesta                                      x86_64                                0.9.8-17                                  @vesta                                 11 M
 vesta-nginx                                x86_64                                0.9.8-17                                  @vesta                                1.3 M
 vesta-php                                  x86_64                                0.9.8-17                                  @vesta                                 36 M

Transaction Summary
========================================================================================================================================================================
Remove  3 Packages

Installed size: 49 M
Is this ok [y/N]: y
Downloading packages:
Running transaction check
Running transaction test
Transaction test succeeded
Running transaction
  Erasing    : vesta-0.9.8-17.x86_64                                                                                                                                1/3
  Erasing    : vesta-php-0.9.8-17.x86_64                                                                                                                            2/3
  Erasing    : vesta-nginx-0.9.8-17.x86_64                                                                                                                          3/3
  Verifying  : vesta-nginx-0.9.8-17.x86_64                                                                                                                          1/3
  Verifying  : vesta-php-0.9.8-17.x86_64                                                                                                                            2/3
  Verifying  : vesta-0.9.8-17.x86_64                                                                                                                                3/3

Removed:
  vesta.x86_64 0:0.9.8-17                             vesta-nginx.x86_64 0:0.9.8-17                             vesta-php.x86_64 0:0.9.8-17

Complete!


And we can run this command:
rm -f /etc/yum.repos.d/vesta.repo

For Debian/Ubuntu : We can use the following commands.

apt-get remove vesta*
rm -f /etc/apt/sources.list.d/vesta.list

Step – 4: Delete data directory and cron.

We want to remove /usr/local/vesta folder by using the below command.

rm -rf /usr/local/vesta

We have to remove the cron jobs for the user admin.
Let’s list first the cron jobs by using the below command.
crontab -u admin -l

[root@testing]# crontab -u admin -l
MAILTO=info@pheonixsolutions.com
CONTENT_TYPE="text/plain; charset=utf-8"
15 02 * * * sudo /usr/local/vesta/bin/v-update-sys-queue disk
10 00 * * * sudo /usr/local/vesta/bin/v-update-sys-queue traffic
30 03 * * * sudo /usr/local/vesta/bin/v-update-sys-queue webstats
*/5 * * * * sudo /usr/local/vesta/bin/v-update-sys-queue backup
10 05 * * * sudo /usr/local/vesta/bin/v-backup-users
20 00 * * * sudo /usr/local/vesta/bin/v-update-user-stats
*/5 * * * * sudo /usr/local/vesta/bin/v-update-sys-rrd
40 2 * * * sudo /usr/local/vesta/bin/v-update-sys-vesta-all
03 3 * * * sudo /usr/local/vesta/bin/v-update-letsencrypt-ssl
[root@testing]#

Remove the cron jobs. Save and exit.

crontab -u admin -e

Thank you!!!

LEAVE A COMMENT