How to install VestaCP (cPanel alternative) on your server
VestaCP is another open source hosting control panel that provides a set of features to manage domains, DNS, mail, databases, cron jobs, backups and much more. Compared with other control panels, it’s a very lightweight web hosting control panel that runs smoothly even with very low system specifications. In this article, We will look at how to install VestaCP and configure its various services in Ubuntu 16.04.
- You will require a fresh Ubuntu 16.04 machine with at least 1 GB of RAM.
- A valid DNS name pointing its A record to the IP address of your Ubuntu machine.
hostnamectlwill directly update the kernel about the change in the hostname, and you don’t need to reboot the machine afterward.
Next, edit the file
$ sudo hostnamectl set-hostname dwijadasdey
/etc/hostsand add the following line at the end. The format is
IP_ADDRESS HOSTNAME.TLD HOSTNAME. This is an example using a domain of mine and a fake IP.
Run the command below to restart the network manager and apply these changes:
$ sudo vi /etc/hosts 123.456.78.9 dwijadasdey.tk dwijadasdey
Check the hostname and FQDN of the host:
$ sudo systemctl restart networking
Now that your FQDN has been set let’s proceed toward the process of installing VestaCP in detail.
$ hostname dwijadasdey $ hostname -f dwijadasdey.tk
$ sudo apt-get update $ sudo apt-get upgrade
http://vestacp.com/install/, scroll down the page a little bit, and find the Advanced Install Settings section. Now, judiciously choose the advanced install settings according to your requirements.
$ curl -O http://vestacp.com/pub/vst-install.sh $ sudo chmod u+x vst-install.sh
- For Web options, choose
nginx + apacheif you plan to use a reverse proxy at a later stage.
namedin the DNS section if you want a DNS server, too. Otherwise, choose
- If you want an extra repository for packages, then select
- Type in the FQDN that we configured in Step 1.
- VestaCP does not provide a file system browser of its own, so choose either
proftpdas a FTP server for easy file upload and download.
- Next is the firewall. You can choose whether to use
iptablesonly, or no firewall at all. It is advisable to use at least one of the options for a secure system.
- If you are going to use VestaCP as Shared Web Hosting service then choose
File System Quota, to
yes. Otherwise, choose
- Provide your email.
- For the email server, choose
Exim + dovecot + SpamAssassin + ClamAV. SpamAssassin will protect the email server from spam. ClamAV will mitigate virus activity in your.... Read More