centos 6.5 x86_64下安裝sspanel v3php
1,參見http://www.javashuo.com/article/p-mgvlrgqt-q.html
安裝好lnmp(nginx1.10.2,mysql5.6.34,php7.0.12)html
2,安裝配置sspanel
cd /var/www/html前端
yum install -y git
git clone https://github.com/orvice/ss-panel.git
mv ss-panel/* ./
cp ss-panel/.env.example .env
curl -sS https://getcomposer.org/installer | php
php composer.phar install
chown -R nginx storagemysql
新建sspanel數據庫
mysql -u root -p
create database sspanel;
grant all privileges on *.* to sspanel@"%" identified by "789sama";
flush privileges;
exitnginx
導入sspanel數據表
mysql -u casper -p
use sspanel;
source db.sql;
exitgit
vi .envgithub
appName = 'sseye' //站點名稱
baseUrl = 'https://serverip' // 站點地址,若是有你有域名就輸域名sql
// mu key 用於校驗ss-go mu的請求
muKey = '789sama' 回頭節點上'API_PASS ='須要這個密碼
db_driver = 'mysql'
db_host = 'localhost'
db_port = '3306'
db_database = 'sspanel' sspanel數據名,你創建時能夠本身定
db_username = 'sspanel' 數據庫用戶
db_password = '789sama' 數據用戶的密碼
db_charset = 'utf8'
db_collation = 'utf8_general_ci'
db_prefix = ''數據庫
修改nginx配置文件,添加如下兩條
vi /etc/nginx/conf.d/default.confcentos
root /home/www/ss-panel/public;
location / {
try_files $uri $uri/ /index.php$is_args$args;
}
service nginx restart
建立管理員帳號:郵箱和密碼
php xcat createAdmin
隨意輸入郵箱地址和密碼,回車便可
http://serverip/admin登陸
醬紫sspanel前端即搭建成了