无标题文档
wdCP系统 (介绍,功能特性,运行环境,安装说明,演示,常见问题,使用教程) wdCDN系统 (介绍,功能特性,运行环境,安装说明,演示,常见问题,使用手册)
wdOS系统 (介绍,功能特性,运行环境,安装说明,演示,常见问题,使用教程) wdDNS系统 (介绍,功能特性,运行环境,安装说明,演示,常见问题,使用手册)
注册 发贴 提问 回复-必看必看 wddns免费智能 DNS 开通 本地或虚拟机使 用wdcp 一键包在mysql编 译时"卡住"
【300G高防】双线 无视攻击 wdcp官方技术支持/服务 阿里云8折优惠券 无敌云 腾讯云优惠中,现注册更有260代金额券赠送
返回列表 发帖
提问三步曲: 提问先看教程/FAQ索引(wdcp,wdcp_v3,一键包)及搜索,会让你更快解决问题
1 提供详细,如系统版本,wdcp版本,软件版本等及错误的详细信息,贴上论坛或截图发论坛
2 做过哪些操作或改动设置等

温馨提示:信息不详,很可能会没人理你!论坛有教程说明的,也可能没人理!因为,你懂的

[BUG反馈] centos5.6 32位wdcp_v2.4RPM包LNMP 创建站点成功,上传程序出现502 Bad Gateway

本帖最后由 zhanjun 于 2012-7-15 20:18 编辑

wdcp_v2.4创建站点成功,域名打开是官方默认的创建站长成功html界面,但是我自己上传程序上去打开访问却是502 Bad Gateway,无法安装网站程序,求解决测试页面http://test.znsmw.com/
用的nginx web,没有选择伪静态

刚才试了一下,在系统设置--web引擎切换--选择了
1 apache    表示apache+php+mysql
3 nginx+apache 表示nginx+apache+php+mysql的组合
都可以访问,
但是就是
2 nginx     表示nginx+php+mysql出现502 Bad Gateway
求解释
wdlinux.cn

1 对应版块,提供系统版本位数,wdcp版本,lamp,lnmp,lnamp是哪个环境,rpm或编译安装
看清提问三步曲及多看教程/FAQ索引(wdcp,v3,一键包,wdOS),益处多多.wdcp工具集 阿里云主机8折优惠码

TOP

回复 2# admin

VPS 1G  双核
安装的是 lanmp_wdcp_v2.4快速安装RPM包
只能使用
web引擎
1 apache    表示apache+php+mysql
3 nginx+apache 表示nginx+apache+php+mysql的组合
------------------------------
web引擎
2
nginx     表示nginx+php+mysql 访问就会 出现502 Bad Gateway
wdlinux.cn

TOP

在SSH连接登录后
service nginxd restart
看看
看清提问三步曲及多看教程/FAQ索引(wdcp,v3,一键包,wdOS),益处多多.wdcp工具集 阿里云主机8折优惠码

TOP

回复 4# admin


   

[root@centos ~]# service nginxd restart
Stopping nginx: nginx: [warn] conflicting server name "123.znsmw.com" on 0.0.0.0:80, ignored
nginx: [error] open() "/www/wdlinux/nginx-1.0.15/logs/nginx.pid" failed (2: No such file or directory)
                                                           [  OK  ]
Shutting down php_fpm warning, no pid file found - php-fpm is not running ?
Starting nginx: nginx: [warn] conflicting server name "123.znsmw.com" on 0.0.0.0:80, ignored
nginx: [emerg] bind() to 0.0.0.0:80 failed (98: Address already in use)
nginx: [emerg] bind() to 0.0.0.0:80 failed (98: Address already in use)
nginx: [emerg] bind() to 0.0.0.0:80 failed (98: Address already in use)
nginx: [emerg] bind() to 0.0.0.0:80 failed (98: Address already in use)
nginx: [emerg] bind() to 0.0.0.0:80 failed (98: Address already in use)
nginx: [emerg] still could not bind()
                                                           [FAILED]
Starting php_fpm Error in argument 1, char 1: no argument for option -
Usage: php-cgi [-q] [-h] [-s] [-v] [-i] [-f <file>]
       php-cgi <file> [args...]
  -a               Run interactively
  -b <address:port>|<port> Bind Path for external FASTCGI Server mode
  -C               Do not chdir to the script's directory
  -c <path>|<file> Look for php.ini file in this directory
  -n               No php.ini file will be used
  -d foo[=bar]     Define INI entry foo with value 'bar'
  -e               Generate extended information for debugger/profiler
  -f <file>        Parse <file>.  Implies `-q'
  -h               This help
  -i               PHP information
  -l               Syntax check only (lint)
  -m               Show compiled in modules
  -q               Quiet-mode.  Suppress HTTP Header output.
  -s               Display colour syntax highlighted source.
  -v               Version number
  -w               Display source with stripped comments and whitespace.
  -z <file>        Load Zend extension <file>.
  -T <count>       Measure execution time of script repeated <count> times.
................................... failed
重启nginx失败,VPS重启了好几次还是不行
wdlinux.cn

TOP

本帖最后由 huzs1622 于 2012-9-1 16:39 编辑

我的也出这问题,在APACHE作为web服务器的时候,php是正常的。切换到NGINX后,php就无法运行了。
huzs.net

TOP

返回列表