Easy guide to install Vesta Control Panel

Vesta Control Panel is an open source software to host your websites. When you are tired of using command line for making any changes to your hosting or you want to work instantly and faster, VestaCP is best option. Most of the web hosting software are expensive. You can only afford them if you are running a web hosting selling business, otherwise, for personal use, I won’t recommend to use any paid hosting control panel software. VestaCP is available for using free and for personal use, it is one of the best options available to you.

VestaCP allows you to manage your websites, ftp accounts, databases, email and DNS settings. The web interface of VestaCP is developed in PHP and JS. Vesta Open API is used for CLI calls. Vesta Open API has 381 commands available in console. Vesta core has been written in bash which is native programming language in Linux operating system.

VestaCP is open source, hence, you can change, update and redistribute the code under GPL GNU General Public License Version 3.

VestaCP supports multilingual web-interface. You can make firewall settings for iptables and fail2ban. You can host Apache + NGINX, Apache and NGINX + php-fpm. For email, SpamAssasin, ClamAV, Dovecot and Exim are available. For database administration, phpMyAdmin is available for MySQL and phpPgAdmin is available for PostgreSQL.

VestaCP does not support all operating systems. Currently, it supports RHEL, CentOS, Debian and Ubuntu.

In this tutorial, I will be using Alibaba Cloud Elastic Compute Service (ECS) with Ubuntu CentOS installed on it; however, the installation steps would vary according to the choice of operating system.

Hardware Requirements:

Following are the minimal requirements for installing VestaCP on your server. If you need to host more number of websites, manage your hardware requirements according to your usage.

  1. You will need 1 core processor.
  2. You will need 512 MB RAM. I will recommend to use 1 GB.
  3. You will need 20 GB HDD hard disk. Alibaba cloud offers HDD hard disk as well as SSD hard disk. You can use any of them as per your choice.

Prerequisites:

  1. A registered domain name and VPS.
  2. You should setup your VPS’s hostname.
  3. Login as root user.

Update CentOS System:

Before proceeding with installation of any kind of package, use the following command to update your Ubuntu system. To execute this command, remember to login from non-root user with sudo privileges. After execution of this command, you will be prompted to Is this ok? Type ‘y’ and hit Enter key.

# yum update

Install VestaCP:

You have 2 ways to install VestaCP.

Basic Installation:

For basic installation follow the steps below:

  1. Open https://vestacp.com/install/ . This link will open the installation page of VestaCP official website. Scroll down and find the heading Install Instructions. Execute the following commands to install VestaCP.

For downloading installation script:

# curl -O

http://vestacp.com/pub/vst-install.sh

For installation:

# bash vst-install.sh

install vesta control panel

  1. You will be prompted to the following screen. Type y and hit enter key.

install vesta control panel

  1. Now you will be asked to enter an email address.
  2. Now enter hostname (Fully Qualified Domain Name).
  3. Now, wait for 15 minutes. VestaCP usually takes 15 minutes for installation on HDD and 5-6 minutes on SSD.

install vesta control panel

Advanced Installation Settings:

Skip this section if you have followed basic installation steps above.

For generating advanced installation command follow the steps below:

  1. Open https://vestacp.com/install/ . This link will open the installation page of VestaCP official website. Scroll down and find the heading Advance install settings.

install vesta control panel

  1. Choose web settings. You can choose only one of the options below.
  • Nginx + apache
  • Apache
  • Nginx + php-fpm
  • No

install vesta control panel

 

  1. Choose FTP settings. You can choose only one options from the list below.
  • Vsftpd
  • Proftpd
  • No

install vesta control panel

  1. Choose Mail settings. You can choose only one options from the list below.
  • Exim + dovecot + spamassassin + clamav
  • Exim + dovecot + spamassassin
  • Exim + dovecot + clamav
  • Exim + dovecot
  • Exim
  • No

install vesta control panel

  1. Choose DNS. You can choose only one option from the list below.
  • Named
  • No

install vesta control panel

  1. Choose firewall settings. You can choose only one option from the list below.
  • iptables + fail2ban
  • iptables
  • no

install vesta control panel

  1. Choose do you want to install Softaculous or not? Softaculous installer allows to you install your required CMS like WordPress, Joomla, Drupal, AbanteCart, PrestaShop, phpBB, WHMCS, MyBB, Open Real Estate, Dolphin and much more, easily on your host. You can choose only one option from the list below.
  • Yes
  • No

install vesta control panel

  1. Choose other settings and select your database. You can either choose one database or both.
  • MySQL
  • PostgreSQL

install vesta control panel

  1. Set your hostname.

install vesta control panel

  1. Setup email and password for logging in your VestaCP as admin.

install vesta control panel

  1. Click Generate Install Command and use this command for installation of VestaCP.

install vesta control panel

  1. Now commands will be generated for you. You can see the following screen showing you the commands for installation of VestaCP.

install vesta control panel

# curl -O

http://vestacp.com/pub/vst-install.sh

# bash vst-install.sh --nginx yes --apache yes --phpfpm no --named yes --remi yes --vsftpd yes --proftpd no --iptables yes --fail2ban yes --quota yes --exim yes --dovecot yes --spamassassin yes --clamav yes --softaculous yes --mysql yes --postgresql yes --hostname imarslan --email test@example.com --password 654321Ab

Now your VestaCP is ready to be accessed via IP address or domain name.

As you can’t install SSL certificate to IP address, on accessing VestaCP via IP Address, you will see the following warning. Click Advance and then click proceed.

install vesta control panel

install vesta control panel

Here you will be redirected to login url of VestaCP.

install vesta control panel

Use your login credentials, you will be redirected to VestaCP dashboard.

install vesta control panel

Let’s install Git

For installation of Let’s Encrypt SSL certificate, you will need to install Git to fetch Let’s Encrypt form official GitHub Repository. I will use /opt/letsen directory for this purpose.

Step 1:

Execute the following command to install git.

# yum install git

Install SSL certificate for your VestaCP installation:

To allow https to your VestaCP, you will need to install SSL certificate. For free SSL certificate, I will use Let’s Encrypt SSL. Follow the steps below to install Let’s Encrypt SSL Certificate.

Step 1:

Execute the following command to fetch and clone Let’s Encrypt.

# git clone https://github.com/letsencrypt/letsencrypt /opt/letsen

Step 2:

Navigate to directory /opt/letsen by using the following command.

# cd /opt/letsen

Step 3:

Before asking for issuance of SSL, you will need to stop your apache and nginx server because issuance of certificate will utilize port 80.

To do so, execute the following commands.

# service nginx stop
# systemctl stop httpd

Step 4:

Execute the following command to install SSL certificate on your domain.

# sudo -H ./letsencrypt-auto certonly --standalone -d softpedia.xyz -d www.softpedia.xyz

Step 5:

Accept the terms and conditions and proceed.

Step 6:

Confirm or verify the installation of your SSL certificate by executing the following command.

# ./certbot-auto certificates

Step 7:

After successful issuance of SSL certificate, you will need to start nginx and apache server again by using the commands below.

# service nginx start
# systemctl start httpd

Here you go, now you can access your VestaCP using https. Thanks!

Leave a Reply

Your email address will not be published. Required fields are marked *