Install VestaCP on Ubuntu 18.04
By Jithin on July 11th, 2020
VestaCP (Vesta Control Panel) is a free, powerful, and open-source website hosting control panel that helps you to manage your multiple websites, email, DNS, and database functionalities. VestaCP offers an interactive and simple web-based interface for your users. The Vesta control panel used the 8083 port by default, and it provides a multilingual interface. In this tutorial, we are going to check how to install VestaCP on Ubuntu.
- A server that is running with Ubuntu OS.
- A user with root privileges using sudo.
To install VestaCP on your Ubuntu server, follow the below steps:
1) Update the System Packages
First, you need to update and upgrade your OS package lists by running the following commands.
$ sudo apt-get update $ sudo apt-get upgrade
2) Install curl Package
To install VestaCP, you should have a new VPS server as it installs the inbuilt services by default. If the OS is already available, then you can stop and uninstall MySQL, Apache, etc to make it a minimal install base OS package, or you can re-install a new OS on the server. To stop and uninstall Apache, MySQL, etc on your server, run the following commands as a root user.
# systemctl stop apache2 # systemctl stop mysql # apt-get purge apache* libapache2* mysql-common* mysql-server* mysql-client* # apt autoremove
Now the server has minimal install base OS packages. Next, install the ‘curl’ package.
# apt-get install curl
3) Install VestaCP
For the installation of Vesta control panel on your Ubuntu server, follow the below steps.
Log in to the server as a root user via SSH.
Next, download the installation script by running the following command.
# curl -O http://vestacp.com/pub/vst-install.sh
Execute the downloaded script using the following command.
# bash vst-install.sh
You can use the advanced settings at ‘https://vestacp.com/install’ to customize and generate the installation script. Run the following installation script to install php-fpm, exim, nginx, proftpd, spamassassin, dovecot, iptables, MySQl, and to use the quote of the file system.
# bash vst-install.sh --phpfpm yes --nginx yes --apache no --named yes --remi no --vsftpd no --proftpd yes --iptables yes --fail2ban no --quota yes --exim yes --dovecot yes --spamassassin yes --clamav no --mysql yes --postgresql no --hostname <your_domain.com> --email <email@example.com> --password <admin_password>
Replace the <your_domain.com>, <admin@your_domain.com> and <admin_password> flags with your domain name, admin name and password. If everything is fine, you receive an output similar to the one shown below:
Vesta Control Panel Following software will be installed on your system: - Nginx Web Server - PHP-FPM Application Server - Bind DNS Server - Exim mail server + Antispam - Dovecot POP3/IMAP Server - MySQL Database Server - ProFTPD FTP Server - Iptables Firewall Would you like to continue [y/n]:
If everything is fine, click the ‘Y’ button to continue with the installation. Once the VestaCP installation completes, you should receive an email similar to the one shown below in the mentioned email address with the Vesta control panel URL, username, and password.
Congratulations, you have just successfully installed Vesta Control Panel. https://<your_server_IP>:8083 username: admin password: <your_admin_password>
Now, you can hit the following URL in any browser to open the Vesta control panel. You can use the username and password you received in the email to log in to the VestaCP panel.
Vesta Control Panel
After the installation, you use the Vesta control panel to add a domain, create new databases, email accounts, FTP accounts, DNS records, and more.
1) Add New Domain
To add a new domain in VestaCP, follow the below steps:
1) Log in to the VestaCP panel as an admin user.
2) Select the ‘WEB’ option and then click the ‘+ ADD WEB DOMAIN’ button.
3) Then, add the domain name and click the ‘Add’ button.
2) Add New Email Account
To create new email accounts, follow the below steps:
Log in to the VestaCP panel as an admin user and click on the ‘MAIL’ tab at the top of the screen.
On the mail screen, hover over the domain name in which you want to add the new email account.
Then, click the ‘ADD ACCOUNT’ button.
Enter the required details, such as username and password for the email account.
Then, click the ‘Advanced Options’ to fill the following three fields:
- Set up the mailbox size limit in the ‘Quota’ field. To allow unlimited storage, click the infinity symbol.
- If you want to add any email addresses that forward to the main account, then you can add them to the ‘Aliases’ field.
- You can fill the ‘Forward to’ with the email address to which you want to forward all the emails.
Then, click the ‘Add’ button to create the email account.
You can access all the email accounts created using VestaCP by accessing the following URL.
VestaCP (Vesta Control Panel) is a free, powerful, and open-source website hosting control panel that helps you to manage your multiple websites, email, DNS, and database functionalities. We hope this knowledge base was helpful to you. Please comment below for any questions or queries. If you are an InterServer customer, please reach out to our support team for further help.