ss-panel部署

发布于 2018-02-13  425 次阅读


参考

https://blessing.studio/build-shadowsocks-sharing-site-with-ss-panel/

https://mechanus.io/yi-ge-xin-shou-xiang-de-ss-panel-bu-shu-jiao-cheng/

https://dreamcreator108.com/dreams/shadowsocks-web/

http://www.xuxiaobo.com/?p=2024

遇到的问题

ss-panel版本问题

刚开始是下载master分支的版本

https://github.com/orvice/ss-panel/tree/master

部署时发现需要php7

所以改为v3.4.6

https://github.com/orvice/ss-panel/releases/tag/v3.4.6

并将php从5.4 升级至5.6

http://blog.csdn.net/cdnight/article/details/72851309

php的一些模块要安装,否则php composer.phar install的时候会有报错:

比如:php56w-xml php56w-mcrypt php56w-mysql php56w-pdo php56w-pecl-redis php56w-fpm等等

php从5.4升级到5.6后问题

php从5.4升级到5.6后重新修改配置文件并启动,但是nginx访问info.php一直502

检查nginx错误日志后

tail -f /var/log/nginx/error.log

报错如下

error connect to php5-fpm.sock failed (13: Permission denied)

google后发现是权限问题

https://stackoverflow.com/questions/23443398/nginx-error-connect-to-php5-fpm-sock-failed-13-permission-denied

http://blog.csdn.net/liangpz521/article/details/40112013

所以

chmod 0666 /var/run/php5-fpm.sock

安装后报错 Slim Application Error A website error has occurred. Sorry for the temporary inconvenience.

权限问题,更改ss-panel权限

chmod -R 755 sspanel

后台运行并启用日志

nohup python server.py > /var/log/shadowsocks.log 2>&1 &

梦想还是要有的,万一实现了呢