Easy guide to install Vesta Control Panel (CP)

0
22

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.

As a developer, I prefer the services of Alibaba Cloud to create my VestaCP hosting. Alibaba Elastic Compute (ECS) is highly scalable and flexible. You can upgrade the hardware resources anytime when required. Alibaba Cloud can also provide you technical support and assistance in order to launch any of your system.

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. You must have Alibaba Cloud Elastic Compute Service (ECS) activated and verified your valid payment method. If you are a new user, you can get free $300-$1200 credits in your Alibaba Cloud account. If you don’t know about how to setup your ECS instance, you can refer to this tutorial or quick-start guide.
  2. A domain name registered from Alibaba Cloud. If you have already registered a domain from Alibaba Cloud or any other host, you can update its domain nameserver records.
  3. Domain name must be pointed to your Alibaba Cloud ECS’s IP address.
  4. You should setup your server’s hostname.
  5. Access to VNC console in your Alibaba Cloud or SSH client installed in your PC.
  6. Login as root user.

Let’s update your 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.

Step 1:

# yum update

how to install Vesta CP

how to install Vesta CP

Let’s 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

how to install Vesta CP

For installation:

# bash vst-install.sh

how to install Vesta CPhow to install Vesta CP

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

how to install Vesta CP

 

  1. Now you will be asked to enter an email address.

how to install Vesta CP

  1. Now enter hostname (Fully Qualified Domain Name).

how to install Vesta CP

  1. Now, wait for 15 minutes. VestaCP usually takes 15 minutes for installation on HDD and 5-6 minutes on SSD.

how to install Vesta CP

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.

how to install Vesta CP

 

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

how to install Vesta CP

 

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

how to install Vesta CP

  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

how to install Vesta CP

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

how to install Vesta CP

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

how to install Vesta CP

  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

how to install Vesta CP

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

how to install Vesta CP

 

  1. Set your hostname.

how to install Vesta CP

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

how to install Vesta CP

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

how to install Vesta CP

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

how to install Vesta CP

# 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 of your Alibaba Cloud ECS 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.

how to install Vesta CP

how to install Vesta CP

Here you will be redirected to login url of VestaCP.

how to install Vesta CP

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

how to install Vesta CP

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

Let’s 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

how to install Vesta CP

Step 2:

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

# cd /opt/letsen

how to install Vesta CP

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

how to install Vesta CP

# systemctl stop httpd

how to install Vesta CP

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

how to install Vesta CP

Step 5:

Accept the terms and conditions and proceed.

how to install Vesta CP

Step 6:

After successful installation, you will see the following screen.

how to install Vesta CP

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

# ./certbot-auto certificates

how to install Vesta CP

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

how to install Vesta CP

# systemctl start httpd

how to install Vesta CP

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

Previous articleHow to get FREE SSL certificate for any website?
Next articleHistory of English Language
I'm a Software Engineer by profession. I had been certified as Cloud Computing Specialist by Alibaba Cloud. I started my career by working on freelance projects related to Facebook App Development, Mobile App development, Web development, and Software development. I voluntarily edited Facebook Map and Google Maps. During my blogging career, I experienced Affiliate Marketing, Google AdWords, Facebook Ads, Facebook Audience Network, Google Adsense and Media.net by Microsoft. I am also the founder of cloud-based Centralized Queue Management System (CQMS) which has been deployed in COMSATS University's student service center and admission cell for managing their queues. CQMS has also been awarded 3rd best project in DICE -IET 2017 (a national level exhibition and competition). Besides, I am a technical author at Alibaba Cloud. I had written many tutorials on Alibaba Cloud Focus. Moreover, I have published my book on Amazon. Currently, I am writing my next book that is expected to be published soon.

LEAVE A REPLY

Please enter your comment!
Please enter your name here