Board logo

标题: [分享] 阿里云 Centos 7.3 官方纯静版 安装 WDCP V3.21 过程 [打印本页]

作者: nohacks    时间: 2017-5-11 05:17     标题: 阿里云 Centos 7.3 官方纯静版 安装 WDCP V3.21 过程

本帖最后由 nohacks 于 2017-5-11 05:25 编辑

阿里云 Centos 7.3 64位  共享版 (纯静版)

刚开始用最新安装代码:
  1. wget http://dl.wdlinux.cn/files/lanmp_v3.2.tar.gz
  2. tar zxvf lanmp_v3.2.tar.gz
  3. sh lanmp.sh
复制代码
最后出现下图提示:

1.png


WDCP安装失败了,8080端口无法访问!

我接着 单独安装WDCP面板,可以正常使用。

但是紧接着创建FTP用户时,出现未找到FTP服务的提示,不信你可以去看看官方的测试站点,问题一样!!
  1. wget http://down.wdlinux.cn/in/install_v3.sh
  2. sh install_v3.sh
复制代码
最后经反复折腾,发现使用旧版安装代码不会重新WDCP安装不上以及新建FTP出错的问题
  1. wget http://dl.wdlinux.cn/files/lanmp_v3.tar.gz
  2. tar zxvf lanmp_v3.tar.gz
  3. sh lanmp.sh
复制代码
安装完后,8080可以正常访问,然后在后台升级为3.2,FTP新建用户没有发生错误,完美。


接下来看,SSL 支持

也是反复折腾,发现没用,相关配置文件也没有添加443端口监听 server 段 ,也上传了对应文件,不知何故??


最后,实在没法,手动修改吧,文管 ,找到站点配置文件 ,在后面添加,保存
  1. server {
  2.         listen       443;
  3.         server_name xx.com;
  4.         root /www/web/xx.com/public_html;
  5.         index  index.html index.php index.htm;
  6.         error_page  400 /errpage/400.html;
  7.         error_page  403 /errpage/403.html;
  8.         error_page  404 /errpage/404.html;
  9.         error_page  503 /errpage/503.html;
  10.    
  11.     ssl on;
  12.     ssl_certificate   cert/xx.com.pem;
  13.     ssl_certificate_key  cert/xx.com.key;
  14.     ssl_session_timeout 5m;
  15.     ssl_ciphers ECDHE-RSA-AES128-GCM-SHA256:ECDHE:ECDH:AES:HIGH:!NULL:!aNULL:!MD5:!ADH:!RC4;
  16.     ssl_protocols TLSv1 TLSv1.1 TLSv1.2;
  17.     ssl_prefer_server_ciphers on;



  18.         location ~ \.php$ {
  19.                 proxy_pass http://127.0.0.1:88;
  20.                 include naproxy.conf;
  21.         }
  22.         location ~ /\.ht {
  23.                 deny  all;
  24.         }
  25.         location / {
  26.                 try_files $uri @apache;
  27.         }
  28.         location @apache {
  29.                  proxy_pass http://127.0.0.1:88;
  30.                  include naproxy.conf;
  31.         }
  32. }
复制代码
重启WEB服务,查看端口,出现443端口,说明配置无问题。

注意:请替换代码中的xx.com为你的域名

访问测试,还是不行,尝试在在防火墙添加443端口,成功!

图片附件: 1.png (2017-5-11 05:04, 23.15 KB) / 下载次数 3750
http://www.wdlinux.cn/bbs/attachment.php?aid=7319&k=cd76ba6b21b2cc97efa633fafcc35956&t=1714058376&sid=I0qUio






欢迎光临 WDlinux官方论坛 (http://www.wdlinux.cn/bbs/) Powered by Discuz! 7.2