Building a WebsiteWe usually purchase a VPS, but using a VPS alone is too wasteful. Therefore, we can create several web hosting accounts for others to share. The common Baota Panel can also partition web hosting for others to use, but there is no way to log into the panel for self-management. The paid cPanel is definitely not what amateur users want to purchase. So, this article recommends this free web hosting management panel called VestaCP.
VestaCP Introduction
VestaCP is an open-source web hosting control panel. The open-source address is: https://github.com/serghey-rodin/vesta. VestaCP can be installed on CentOS, Debian, and Ubuntu systems, supports custom installation scripts, and optionally installs nginx, apache, vsftpd, proftpd, exim, dovecot, spamassassin, clamav, named, iptables, fail2ban, softaculous, mysql, postgresql, etc. VestaCP supports Chinese. See the demo link below:
Download LinkVestaCP Installation Tutorial
Installing VestaCP is very simple. The default installation method is just three steps:
# 使用ssh连接上你的vps
ssh root@your.server
# 下载安装脚本
curl -O http://vestacp.com/pub/vst-install.sh
# 运行安装脚本
bash vst-install.sh
Related articles:
#建站#Xshell 6 Basic Tutorial: Connecting to a VPSInstallation Interface:

Installation Completion Interface:

After VestaCP installation is complete, it will display the backend login URL and account password information. Log in via a browser to manage web hosting and users. (The browser will prompt an SSL certificate error, which can be ignored.) If you want to customize the installation components, you can make your own selection at the bottom of the official installation page.
Official website address Switch to Chinese: After logging in, click your username in the top right corner, then select the language 'cn'.
VestaCP Integration with WHMCS for Automatic Setup
WHMCS is a very popular financial system. Most VPS providers we purchase from online use WHMCS. You can refer to previous articles:
Building a Hosting Sales Website Using WHMCSVestaCP supports integration with WHMCS to automatically set up web hosting. The official provides WHMCS interface files. The specific usage method is as follows:
cd /home/user/web/billing-site.ltd/public_html/modules/server
mkdir vesta
wget http://c.vestacp.com/0.9.8/rhel/whmcs-module.php -O vesta.php
The meaning of the above three commands is: switch to the 'server' folder under the WHMCS installation directory, create a 'vesta' folder, then download the whmcs-module.php file and rename it to vesta.php. Then go to the
WHMCS Admin Backend-
System Settings-
Product Settings-
ServerAdd inside:

The server name can be arbitrary; for the hostname and IP address, fill in the IP of the server where you installed the Vesta Panel.

For the type below, select Vesta, then enter the username and password for your Vesta management backend.

After adding, click 'Login to Control Panel' in the server list to see if you can log in successfully, testing whether the server settings are correct. If unsuccessful, check the account credentials and firewall permissions.

In the Vesta Panel backend, click User Plans, then modify or add a plan content yourself, and remember the plan name.

Then return to the WHMCS management backend, click
System Settings -
Product Settings -
Product Settings. Add a product group, then add a product.

In the product details, fill in the product name and product description; these can be arbitrary.
The key pointis that in the interface settings here, the Package Name must match the plan name from your Vesta Panel backend exactly to enable integration and provisioning.

Once all configurations are complete, you can save the product and test purchasing a web hosting service on the WHMCS frontend to see if it is automatically provisioned.
How to Uninstall the VestaCP Panel
Naibabijinotes that friends who tinker with integrating Vesta Panel with WHMCS often encounter some issues after using it for a while. If there are no solutions on the official forums, many give up. Therefore, you can use the following commands to uninstall Vesta Panel. 1. Stop services
service vesta stop
2. Remove Vesta packages and repositories RHEL/CentOS:
yum remove vesta*
rm -f /etc/yum.repos.d/vesta.repo
Debian/Ubuntu:
apt-get remove vesta*
rm -f /etc/apt/sources.list.d/vesta.list
3. Delete data directory
rm -rf /usr/local/vesta
Finally, delete the cron automatic tasks.
Related Articles
- What are the relationships and differences between cloud shared hosting, VPS, and Baota Panel
- Website building video tutorial: Baota Panel beginner installation and website setup tutorial
- #WebsiteBuilding# Beginner-friendly Baota Panel setup tutorial
- #Website Building# LNMP One-Click Package Installation Illustrated Tutorial
Comments are closed
The comment function for this article is closed. If you have any questions, please feel free to contact us through other channels.