How to install VestaCP on Debian 9?


VestaCP is a simple yet fantastic control panel hosting, but at the same time very intuitive and easy to use. It is used to manage user accounts, domains, web directories, FTP, Email, SSL Certificates, backups, etc.. VestaCP is very simple, but at the same time very intuitive and easy to use. You can install vestaCP on many GNU/LINUX distributions, especially those focused on servers, such as Debian or CentOS.

It also offers an excellent webmail tool called RoundCube. With it, you can organize several hosting packages in VestaCP and classify your customers.

Main features of VestaCP

Despite being simple and intuitive, it is also a powerful tool with many utilities. VestaCP offers us:

  • A very neat Web interface open source and written in PHP. So compatibility is guaranteed.
  • Vesta core is written in bash. It is native programming language of Linux server administrators. You can execute 381 commands on Core.
  • Its license is GNU GPL3. Its source code can be studied and modified
  • A powerful CLI ready to give you control of what happens on the server.
  • Commercial plugins extend the functionality of VestaCP.

As you can see, it’s a ready-to-use application for everyday work.


VestaCP is an application that consumes few resources, however, you should keep in mind that it requires a server running GNU/LINUX, 20gb of hard disk and at least 512mb of ram memory.

For this tutorial, I will install VestaCP on a Debian 9 server, with 4gb of Ram and 80gb of Hard Disk. We should have a very fluid user experience.

Let’s install VestaCP

Installing VestaCP is really simple, but you must use the terminal and have administrator privileges. Open a Terminal and run:

:~$ sudo -i
1.- Getting root access
1.- Getting root access

When you press enter, you will be prompted to enter your password. Then, you will be root.

I recommend that before installing these types of applications, you perform a system update to obtain the latest security patches. Run:

:~# apt update && apt upgrade
2.- Upgrading the system
2.- Upgrading the system

Next, you must install curl. It’s probably already installed, but it’s good to be sure.

:~# apt install curl


3.- Installing Curl
3.- Installing Curl

When finished, you must now download the VestaCP installation script. Run:

:~# curl -O
4.- Downloading the installation script
4.- Downloading the curl script to install VestaCP

To the script you just downloaded, you must give it execution permissions:

:~# chmod +x
5.- Giving executing permission to the script
5.- Giving executing permission to the script

Now, you must choose between 3 installation modes, according to your need. You must modify, the parameters inside <>:

  • Nginx with PHP-FPM. Run:
:~# bash --nginx yes --phpfpm yes --apache no --vsftpd yes --proftpd no --exim yes --dovecot yes --spamassassin yes --clamav yes --named yes --iptables yes --fail2ban yes --mysql yes --postgresql no --remi yes --quota no --hostname <SERVER_HOSTNAME> --email <ADMIN_EMAIL> --password <ADMIN_PASSWORD>
  • Nginx with Apache:
:~# bash --nginx yes --apache yes --phpfpm no --vsftpd yes --proftpd no --exim yes --dovecot yes --spamassassin yes --clamav yes --named yes --iptables yes --fail2ban yes --mysql yes --postgresql no --remi yes --quota no --hostname <SERVER_HOSTNAME> --email <ADMIN_EMAIL> --password <ADMIN_PASSWORD>
  • Apache only
:~# bash --nginx no --apache yes --phpfpm no --vsftpd yes --proftpd no --exim yes --dovecot yes --spamassassin yes --clamav yes --named yes --iptables yes --fail2ban yes --mysql yes --postgresql no --remi yes --quota no --hostname <SERVER_HOSTNAME> --email <ADMIN_EMAIL> --password <ADMIN_PASSWORD>

Again, don’t forget to put your data in the commands before executing them.

6.- Running the script
6.- Running the script

When you run it, it will notify you that it is going to install other software components for your server.

7.- Running the installation script
7.- Running the installation script

You must say yes, and it will take a while completing the installation.

8.- The installation will take a while
8.- The installation will take a while

At the end, if everything was correct, you must observe at the end, the information of your connection.

Access the VestaCP web interface

At the end of the installation, open your browser and access with the ip address of your server and port 8083. Enter your username and password.

9.- VestaCP web interface. Login screen.
9.- After install VestaCP. Login screen.

Once logged in, it will show you the dashboard of the application.

10.- VestaCP Dashboard
10.- VestaCP Dashboard

It only remains for you to explore all the possibilities of this tool.

We’re done.

As a conclusion we can say that, the constant monitoring of servers and hostings, becomes an elementary task to prevent and correct failures. Therefore, fast and efficient applications are needed and VestaCP combines simplicity with robustness.

Share this article through your social networks and tell us about your experience in the comments.




Please enter your comment!
Please enter your name here