WDlinux官方论坛's Archiver

zhanjun 发表于 2012-7-15 11:10

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

[i=s] 本帖最后由 zhanjun 于 2012-7-15 20:18 编辑 [/i]

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

刚才试了一下,在系统设置--[b]web引擎切换--选择了
[/b][color=#000][font=Tahoma, Arial, Helvetica, sans-serif][size=12px]1 apache    表示apache+php+mysql
[/size][/font][/color][color=#000][font=Tahoma, Arial, Helvetica, sans-serif][size=12px]3 nginx+apache 表示nginx+apache+php+mysql的组合
都可以访问,
但是就是[/size][/font][/color][color=#000][font=Tahoma, Arial, Helvetica, sans-serif][size=12px]2 nginx     表示nginx+php+mysql出现[/size][/font][/color][font=Tahoma, Arial, Helvetica, sans-serif][color=#000000][size=12px]502 Bad Gateway
求解释[/size][/color][/font]

admin 发表于 2012-7-15 13:24

1 对应版块,提供系统版本位数,wdcp版本,lamp,lnmp,lnamp是哪个环境,rpm或编译安装

zhanjun 发表于 2012-7-15 19:13

[b]回复 [url=http://www.wdlinux.cn/bbs/redirect.php?goto=findpost&pid=10179&ptid=2796]2#[/url] [i]admin[/i] [/b]

VPS 1G  双核
安装的是 [url=http://www.wdlinux.cn/bbs/thread-2528-1-1.html]lanmp_wdcp_v2.4快速安装RPM包[/url][size=12px]
只能使用[/size][b]web引擎
[/b][color=#000][font=Tahoma, Arial, Helvetica, sans-serif][size=12px]1 apache    表示apache+php+mysql
[/size][/font][/color][color=#000][font=Tahoma, Arial, Helvetica, sans-serif][size=12px]3 nginx+apache 表示nginx+apache+php+mysql的组合
------------------------------
[/size][/font][/color][b]web引擎
2[/b][color=#000][font=Tahoma, Arial, Helvetica, sans-serif][size=12px]nginx     表示nginx+php+mysql 访问就会 出现[/size][/font][/color][font=Tahoma, Arial, Helvetica, sans-serif][color=#000000][size=12px]502 Bad Gateway[/size][/color][/font]

admin 发表于 2012-7-15 21:55

在SSH连接登录后
service nginxd restart
看看

zhanjun 发表于 2012-7-15 22:37

[b]回复 [url=http://www.wdlinux.cn/bbs/redirect.php?goto=findpost&pid=10202&ptid=2796]4#[/url] [i]admin[/i] [/b]


   

[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重启了好几次还是不行

huzs1622 发表于 2012-9-1 16:38

**** 作者被禁止或删除 内容自动屏蔽 ****

页: [1]

Powered by Discuz! Archiver 7.2  © 2001-2009 Comsenz Inc.