2021年SSPANEL-UIM搭建入门级教程
准备工具:
1:VPS 1 台;配置建议2H4C;
2:域名1个;
3:CF帐号一个;
tips:域名自行解析
2:登陆VPS运行以下命令安装BT
1 | wget -O install.sh http://www.aapanel.com/script/install-ubuntu_6.0_en.sh && bash install.sh |
2:登陆宝塔安装LNMP
配置参考如下:Nginx 1.15;;Mysql 5.7;PHP 7.1;phpMyAdmin(选装) 4.7
3:添加网站目录
4:设置PHP
4.1 关闭 display_errors
4.2 删除system;putenv;proc_open函数,同时将性能模式调成静态
5:进入网站目录选择安装版本Master或Dev
Master版
1 | git clone -b master https://github.com/Anankke/SSPanel-Uim.git tmp && mv tmp/.git . && rm -rf tmp && git reset --hard |
Dev版
1 | git clone -b dev https://github.com/Anankke/SSPanel-Uim.git tmp && mv tmp/.git . && rm -rf tmp && git reset --hard |
6:面板源码下载后安装Composer
Master版本须修改composer.json文件
6.1将composer.json 中 charlottedunois/yasmin改为laravel-discord/yasmin,以保证正确安装
6.2 安装Composer
1 | cp config/.config.example.php config/.config.php |
7:在网站设置【网站目录】里把【防跨站攻击(open_basedir)】取消,将【运行目录】改为【/public】
添加【伪静态】
1 | location / { |
8:创建并导入数据库
将sql文件中的glzjin_all.sql导入数据库
9:添加管理员
1 | php xcat createAdmin |
10:下载相关数据
1 | php xcat syncusers |
11:配置定时任务
1 | 30 22 * * * php /www/wwwroot/域名/xcat sendDiaryMail |
12:支付对接
下载支付SDK文件并配置.config.php文件即可
USDT-TRC20结算支付平台