Loading... > 配置说明: > > WHMCS: centos8 开心版7.7.1 > > SolusVM Master: centos7 伪授权 > > SolusVM Slave: centos6 伪授权 ## 一. WHMCS配置 1. 安装宝塔面板7.4.5 ``` yum install -y wget && wget -O install.sh http://download.bt.cn/install/install_6.0.sh && sh install.sh ``` 2. 解除新版宝塔强制绑定 ``` sed -i "s|if (bind_user == 'True') {|if (bind_user == 'REMOVED') {|g" /www/server/panel/BTPanel/static/js/index.js ``` 如果需要还原,如下: ``` sed -i "s|if (bind_user == 'REMOVED') {|if (bind_user == 'True') {|g" /www/server/panel/BTPanel/static/js/index.js ``` 3. 登录宝塔,安装基础环境 * php 7.0 (扩展:ionCube)(宝塔默认开启OpenSSl、cURL) * pureftpd 1.0.49 * phpmyadmin 4.9 * mysql 5.6 * nginx 1.18 4. 添加站点同时创建数据库(可自行配置ssl证书) 5. 上传[whmcs安装包](https://down.fuju.life/OneManIDC/whmcs-7.7.1-release.1.zip)到站点目录并解压,解压后删除压缩包 6. 将开心补丁上传到目录`/vendor/whmcs/whmcs-foundation/lib`下 7. 将`configuration.php.new`重命名为`configuration.php` 8. 访问[https://yourdomain/install/](https://yourdomain/install/)进行安装(授权随便输入即可) 9. 删除`install`目录 10. 设置自动任务`php -q /www/wwwroot/mjj.fujuv2.xyz/crons/cron.php`(每5分钟运行一次) 11. 可自行部署进一步的安全步骤:[https://docs.whmcs.com/Further_Security_Steps](https://docs.whmcs.com/Further_Security_Steps) 12. 访问[https://yourdomain/admin](https://yourdomain/admin)进入后台进行配置 13. 添加并配置插件(包括开心补丁、汉化、对接SolusVM、支付网关) 1. [whmcs开心补丁](https://down.fuju.life/OneManIDC/WHMCS%E5%BC%80%E5%BF%83%E8%A1%A5%E4%B8%81byAlphaeva.zip) 2. [汉化](https://down.fuju.life/OneManIDC/WHMCS-CN-translations-master.zip) 3. [对接SolusVM插件](https://down.fuju.life/OneManIDC/SolusVM-WHMCS-Module-master.zip) 4. [支付网关](https://down.fuju.life/OneManIDC/whmcs-alipay-master.zip)(我使用的[52fancy的当面付](https://github.com/52fancy/whmcs-alipay)) 14. 对接SolusVM Master的API 15. 添加产品服务器 16. 添加产品(需要添加自定义字段vserverid并设置为Admin Only,否则无法显示小鸡的状态) ## 二. SolusVM Master 配置 1. 安装Master(选择UI) ``` curl -o install.sh https://files.solusvm.com/install.sh && sh install.sh ``` 2. 记录下登录信息 3. 编辑hosts文件进行伪授权 ``` vim /etc/hosts ``` 以下二选一: SolusVM Enterprise (NOC) ``` 150.95.9.225 soluslabs.com 150.95.9.225 www.soluslabs.com 150.95.9.225 licensing1.soluslabs.net 150.95.9.225 licensing2.soluslabs.net 150.95.9.225 licensing3.soluslabs.net 150.95.9.225 licensing4.soluslabs.net 150.95.9.225 licensing5.soluslabs.net 150.95.9.225 licensing6.soluslabs.net ``` SolusVM Enterprise (RS) ``` 150.95.9.221 soluslabs.com 150.95.9.221 www.soluslabs.com 150.95.9.221 licensing1.soluslabs.net 150.95.9.221 licensing2.soluslabs.net 150.95.9.221 licensing3.soluslabs.net 150.95.9.221 licensing4.soluslabs.net 150.95.9.221 licensing5.soluslabs.net 150.95.9.221 licensing6.soluslabs.net ``` 4. 添加节点 5. 添加ip 6. 添加默认安装的系统文件 7. 添加产品计划 8. 获得API与WHMCS对接 ## 三. SolusVM Slave 配置 1. 安装Master(选择OpenVZ) ``` curl -o install.sh https://files.solusvm.com/install.sh && sh install.sh ``` 2. 记录下ID以及API信息 ## 四. 参考资料 1. [https://wzfou.com/whmcs-jiaocheng/](https://wzfou.com/whmcs-jiaocheng/) 2. [https://www.hostloc.com/forum.php?mod=viewthread&tid=746068&highlight=whmcs](https://www.hostloc.com/forum.php?mod=viewthread&tid=746068&highlight=whmcs) 3. [http://www.yehes.com/fuli/847.html](http://www.yehes.com/fuli/847.html) 4. [https://lula.fun/1370.html](https://lula.fun/1370.html) Last modification:October 21, 2020 © Allow specification reprint Like