Vestacp Hosting Control Panel Setup

Vestacp Hosting Control Panel Setup. Many of you don’t know how to do Vestacp Hosting Control Panel Setup. So, here it is for those, who have a system with a terminal and ssh access only.

# ——————————————–
# Vestcp Setup – Debian 8
# ——————————————–
> sudo apt-get update
> sudo apt-get upgrade
> sudo apt-get install curl
> sudo apt-get install git
> sudo apt-get install vim
> sudo apt-get install mlocate (For using the locate command. Usage here.)

Now, let’s start the VestaCP Hosting Control Panel Installation

> curl -O http://vestacp.com/pub/vst-install.sh
> bash vst-install.sh

There will be an error like the following, in most of the cases. You can ignore that, or use the following message.

Warning : exim4 was already installed.Remove it before proceed.
> sudo apt-get remove exim4

Following software will be installed on your system:
– Nginx Web Server
– Apache Web Server (as backend)
– Bind DNS Server
– Exim mail server + Antivirus Antispam
– Dovecot POP3/IMAP Server
– MySQL Database Server
– Vsftpd FTP Server
– Iptables Firewall + Fail2Ban

When the terminal ask for the FQDN or fullu qualified domain name, give your intended domain name.For example in my case, it was preprogrammer.com

Eg : FQDN : preprogrammer.com

Also, you will get a bunch of error like the following. You can fix them using the following procedure ( Debian based distro’s) or you can leave that. It is not necessary to set the locale and all.

Fix the following at last :
locale: Cannot set LC_CTYPE to default locale: No such file or directory
locale: Cannot set LC_MESSAGES to default locale: No such file or directory
locale: Cannot set LC_ALL to default locale: No such file or directory
COmmands to fix above:
> sudo locale-gen en_US.ISO-8859-1
> export LANGUAGE=en_US.UTF-8
> export LC_ALL=en_US.UTF-8
> export LANG=en_US.UTF-8
> export LC_TYPE=en_US.UTF-8

How to set Name Server / Setting Name Server on vestaCP
Step 1 : Set the custom name servers by editing the default package. go to packages->edit->update name server

Step 2 : Add name server name, like ns1, ns2 etc. In my case I used something like ns1.preprogrammer.com and ns2.preprogrammer.com

Step 3 : Now register the name server for your domain. (Most of the domain vendor provide procedures for that.)

Example :
Host IP Addresses Actions
ns1 104.251.219.3
ns2 104.251.219.3

Add the name servers with the IP, showed above.

ns1.yourdomain.com > point to your VPS IP
ns2.yourdomain.com > point to your VPS IP

Also, you can ping to your name servers to make sure that, it works.

>ping ns1.yourdomain.com

NB : Allow some time for this to update. This may even take up to 24 hours.

Step 4: Inside VestaCP Hosting panel, go to DNS menu and click “EDIT” for yourdomain.com and change the template to “child-ns”.

Note: Changing the template to child-NS is a very important step, if you don’t do this, it will not work.

I hope you understand all of the Vestacp Hosting Control Panel Setup procedure. Drop your comments below.