Vesta Control Panel (VestaCP) is a free, open-source web hosting control panel that allows users to manage websites, domains, email accounts, and more from a single interface. In this guide, we will walk through the steps to install VestaCP on a Ubuntu 20.04 server with the Apache2 web server.
Prerequisites:
Before proceeding, make sure you have the following:
- A server running Ubuntu 20.04.
- SSH access to your server with sudo privileges.
- A fully qualified domain name (FQDN) pointed to your server’s IP address.
Step 1: Update System Packages
First, ensure your system packages are up to date by running the following commands:
sudo apt update
sudo apt upgrade
Step 2: Download and Run VestaCP Installation Script
VestaCP provides a simple installation script that automates the installation process. Download and execute the script using the following commands:
curl -O http://vestacp.com/pub/vst-install.sh
sudo bash vst-install.sh --apache yes --nginx no --phpfpm no --named yes --remi yes --vsftpd yes --proftpd no --iptables yes --fail2ban yes --quota no --exim yes --dovecot yes --spamassassin yes --clamav yes --softaculous yes --mysql yes --postgresql no
This command will install VestaCP with Apache2, Exim mail server, Dovecot IMAP/POP3 server, SpamAssassin, ClamAV antivirus, Softaculous auto-installer, MySQL database server, and various other components.
Step 3: Access VestaCP Web Interface
Once the installation is complete, you can access the VestaCP web interface by navigating to https://your_server_ip:8083
in your web browser. You will be prompted with a security warning since VestaCP uses a self-signed SSL certificate. Ignore this warning and proceed to the login screen.
Step 4: Log in to VestaCP
Log in to VestaCP using the default username admin
and the password provided during the installation process.
Step 5: Configure DNS
Before you can start hosting websites, you need to configure DNS records for your domains. Go to the DNS section in VestaCP and add the necessary A records to point your domains to your server’s IP address.
Step 6: Create a Website
To host a website, go to the Web section in VestaCP and click on the Add Web Domain
button. Enter your domain name, choose Apache as the web server, and configure any additional settings as needed.
Step 7: Upload Website Files
Upload your website files to the directory specified during the domain creation process. By default, this will be /home/admin/web/your_domain/public_html
.
Step 8: Test Your Website
Once you’ve uploaded your website files, you can test your website by navigating to your domain in a web browser.
Conclusion
In this guide, we have covered the steps to install VestaCP on Ubuntu 20.04 with Apache2. VestaCP provides a user-friendly interface for managing web hosting services, making it an excellent choice for both beginners and experienced users alike.