Home Website Building Knowledge Standard Post

Standard Post

VPS Installation of Free Web Hosting Panel VestaCP_Integration with WHMCS Setup Tutorial

When building a website, we usually buy a VPS, but using a VPS alone is wasteful, so we can create several virtual hosts for others to share. The common Baota Panel can also partition virtual hosts for others, but they cannot log in to the panel for self-management, and the paid Cpanel is certainly not something amateur users want to buy. So this article recommends...

Published on November 12, 2019 About 5 minutes read
VPS安装免费虚拟主机面板VestaCP_对接WHMCS开通教程

Building a WebsiteWe usually buy a VPS, but using a VPS alone is wasteful, so we can create several virtual hosts for others to share.

The common Baota Panel can also partition virtual hosts for others, but they cannot log in to the panel for self-management, and the paid Cpanel is certainly not something amateur users want to buy. So this article recommends a free virtual host management panel called VestaCP.

VestaCP Introduction

VestaCP is an open-source virtual host control panel. Open source address: 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 address at the link below:

Download Link

VestaCP 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 VPS

Installation Interface:

VestaCP安装教程

Installation Completion Interface:

VestaCP安装教程After VestaCP installation is complete, the backend login address and account password information will be displayed.

Log in via browser to manage virtual hosts and users. (The browser will prompt an SSL certificate error; ignore it.)

If you want to customize the installation components, you can select them 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 WHMCS

VestaCP 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 above 3 commands mean: 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 toWHMCS Admin BackendSystem SettingsProduct SettingsServerAdd inside:

vestacp对接whmcs

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.

vestacp对接whmcs

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

vestacp对接whmcs

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.

vestacp对接whmcs

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

vestacp对接whmcs

Then return to the WHMCS management backend, clickSystem SettingsProduct SettingsProduct Settings. Add a product group, then add a product.

vestacp对接whmcs

In the product details, fill in the product name and product description; these can be arbitrary.

vestacp对接whmcs

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.

vestacp对接whmcs

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

NaibabijiNote that friends who usually tinker with Vesta panel integration with WHMCS will encounter some problems after using it for a while. If the official forum has no solution, they will most likely give up. So you can use the following command to uninstall the Vesta panel.

1. Stop services

service vesta stop

2. Delete Vesta packages and libraries

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

  1. What are the relationships and differences between cloud shared hosting, VPS, and Baota Panel
  2. Website building video tutorial: Baota Panel beginner installation and website setup tutorial
  3. #WebsiteBuilding# Beginner-friendly Baota Panel setup tutorial
  4. #Website Building# LNMP One-Click Package Installation Illustrated Tutorial
Rate this article post
Previous WP Website Navigation Menu Icon Adding Method_iconfont_Font Awesome Continue reading content around the same timeline. Next WordPress Multilingual Plugin Polylang Tutorial_Foreign Trade Multilingual Website Building View the next related tutorial or experience.

AI Website Building Assistant

🤖
Hello! I am the Naibabiji AI Assistant. How can I help you?
Quick Consultation: