Wondering how to Install Vesta control panel in Ubuntu? We can help you.
VestaCP offers a simple web-based interface for its users. With VestaCP, we can install more than 439 apps with one click installer.
As part of our Server Management Services, we assist our customers with several Ubuntu queries.
Today, let us see how to install the Vesta control panel in Ubuntu 18.04.
Vesta control panel in Ubuntu
A free, open-source, and powerful website control panel that comes with website, email, database, and DNS functionalities, VestaCP is lightweight, resource-friendly, and easy to install compared to other control panels.
VestaCP offers us:
- A very neat Web interface open-source and written in PHP. So compatibility is a guarantee.
- Vesta core is written in bash. Hence, we can execute 381 commands on Core.
- Its license is GNU GPL3. Its source code can be studied and modified
- A powerful CLI ready to give us control of what happens on the server.
- Commercial plugins.
In order to begin, our Support Techs suggest having a server running Ubuntu 18.04.0 and a root password set up on our server.
Install Vesta control panel in Ubuntu
Initially, we update the system completely to have everything ready.
$ apt update -y
$ apt upgrade -y
Next, we change the hostname of the server since it can be an issue later.
nano /etc/hostname
Then we change the entry from “localhost” to the name of the domain.
Now, we change the hosts’ file to reflect the changes we made:
nano /etc/hosts
Next to the line after “localhost” we add the IP address, hit the tab key then add the domain name.
VestaCP has a pretty competent installer that we have to download using curl.
$ curl -O http://vestacp.com/pub/vst-install.sh
Once we download it, we can run it with the following command:
$ bash vst-install.sh
This will start the wizard.
The first thing it will ask is our Email and the FQDN of the server.
Then, it will start the whole installation, which will take a while.
When the installation is complete we will be met with a congratulatory message and that you may log in at the address listed above with the username and password provided.
-
Test VestaCP on Ubuntu 18.04
Now in order to access the tool, open any web browser and go to https://your-server:8083 where we will see the login screen.
Since it is using a self-signed certificate, we will get an SSL warning. Click to proceed anyway. The exact steps may vary by the web browser.
For Chrome, click Advanced and then click Proceed. Once we’re at the login screen, enter the two credentials displayed in the server console after installation. These credentials will also be emailed to us using the email we entered at the beginning of the install.
-
Configure VestaCP
Within the administration console, there are a few changes that we need to make, to get VestaCP to work properly.
We must change the nameserver entries to match the nameservers we created through the domain registrar’s website.
- Hover the mouse over the admin user and click on edit.
- Change the Default parameters into the nameservers we created earlier, then save the changes.
- Now move over to the DNS tab, click on “edit”.
- Here we must change the “Template” to “child-ns” and the SOA to the first nameserver and save changes. Go back to the DNS tab.
- Hover once again over your domain but this time click on “List Records”.
- Scroll all the way down and make sure NS records reflect the nameservers; if not do change them now.
- On the right side of the top bar is “Packages”, click on that and edit all the tabs.
- Scroll down to the Name Server options and make the necessary changes.
- Now go to the domain tab and edit your domain.
- Check the box labeled “SSL support”, then check the box labeled “Lets Encrypt Support”; then click save, this will generate an SSL certificate.
Note that we may have to wait for up to 72 hours for the DNS records to fully propagate from the domain registrar. Once done, move on to the next step.
Now we will create the SSL certificate for the control panel itself, to do this we need to go back to the SSH terminal and key in the code below.
source /etc/profile PATH=$PATH:/usr/local/vesta/bin && export PATH v-add-letsencrypt-domain ‘admin’ domainname ” ‘yes’ v-update-host-certificate admin domainname
Now we can access the admin page from our domain name, just be sure to append the port number to it.
We should see no errors by the browser as the SSL certificate has been installed.
Few common errors
Moving ahead, let us have a look at a few errors we may come across during these processes.
-
Error: apt-get upgrade failed
While installing VestaCP on Ubuntu, after inputting the install command we may encounter:
Error: apt-get upgrade failed
In order to solve this, we run the command:
# apt-get -f install
Then reinstall the Vesta control panel.
-
Connection to IMAP Server Failed
After installing the Vesta control panel, we may receive the following error while accessing the mail account using Roundcube:
Connection to IMAP Server Failed Authentication is working fine.
In order to solve this:
- Check whether “inbox=yes” in /etc/dovecot/conf.d/15-mailboxes.conf
- If it is not, run the command:
# sed -i “s#namespace inbox {#namespace inbox {\n inbox = yes#” /etc/dovecot/conf.d/15-mailboxes.conf
- Then restart dovecot
[Stuck with any error? We’d be happy to assist]
Conclusion
In short, VestaCP is a control panel for Linux with many features that facilitate the administration of a server. Today, we saw how our Support Techs install Vesta control panel in Ubuntu in a very simple way.
0 Comments