The Vesta Control Panel is a light control panel made with an emphasis on speed. It offers a variety of features including the ability to manager your server from a built in command line interface, Softaculous support, a slick interface to manage everything from Users to Cron Jobs. This article will walk you through installing and configuring Vesta on Ubuntu 18.04 as well as securing the installation with a security certificate from Let’s Encrypt.
$ sudo wget https://vestacp.com/pub/vst-install.sh
$ sudo bash vst-install.sh --force
Type ‘y’ to Continue Through the Script
Enter An Admin Email Address
Enter the Domain Name You Would Like to Use With VestaCP
The Install Script Will Now Run.
It could take up to 15 minutes. You should see a message indicating the install was successful and give you your admin password.
Now you can login but you’ll notice you will get a security warning from your browser upon pulling up the login page. We’re going to solve this by installing a security certificate from Let’s Encrypt. These certificates expire every 90 days but they’re free and it is easy to do.
Login to VestaCP and Enable SSL and Lets Encrypt Support to Setup The Security Certificates
Click “Web” and then click “Edit” next to your domain and check the “SSL Support” and “Lets Encrypt Support” Checkboxes. Click “Save” at the bottom after this.
Symlink the New Security Certificates With the Ones Vesta Uses.
Vesta doesn’t place the keys it just created for the domain in the same place as the keys that Vesta itself uses. Rename the certificate files that Vesta uses.
$ sudo mv /usr/local/vesta/ssl/certificate.crt /usr/local/vesta/ssl/oldcertificate.crt $ sudo mv /usr/local/vesta/ssl/certificate.key /usr/local/vesta/ssl/oldcertificate.key
Create symlinks to point to the newly created certs.
$ sudo ln -s /home/vestaadminusername/conf/web/ssl.DOMAINNAME.com.crt /usr/local/vesta/ssl/certificate.crt $ sudo ln -s /home/vestaadminusername/conf/web/ssl.DOMAINNAME.com.key /usr/local/vesta/ssl/certificate.key
$ sudo systemctl restart vesta
Now open a browser window and go to the Vesta control panel login screen on port 8083. You will see you have a valid security certificate and https is enabled. Now remember the certificate is only valid for 90 days so you may want to setup a cron job to renew it automatically. Luckily the Vesta control panel makes this easy!
Check out these top 3 cPanel hosting services: