How to uninstall Vesta Control Panel on Linux

  Shared hosting

Introduction:

Vesta Control Panel (VestaCP) is a lightweight hosting control panel used to manage websites, email, DNS, and databases. However, there may be situations where you need to completely remove VestaCP from your server—such as migrating to another control panel or cleaning up unused services.

This guide provides step-by-step instructions to safely uninstall VestaCP from Linux systems like CentOS, RHEL, Ubuntu, and Debian.

Prerequisites:

Before proceeding, ensure you have:
1. Root or sudo access to the server
2. SSH access to the server
3. Basic knowledge of Linux command-line operations
4. Backup of important data (websites, databases, emails)

Implementation:

Follow the steps below to completely uninstall Vesta Control Panel:

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

Conclusion:

Uninstalling Vesta Control Panel involves stopping services, removing packages, deleting directories, and cleaning up cron jobs.
By following this guide, you can:

  1. Fully remove VestaCP from your server
  2. Prevent leftover configurations or background tasks
  3. Prepare your system for a fresh setup or alternative control panel


LEAVE A COMMENT