Board logo

标题: [教程] 新开站点或绑定域名打不开或无法访问的问题 [打印本页]

作者: admin    时间: 2012-1-14 13:04     标题: 新开站点或绑定域名打不开或无法访问的问题

新开站点或绑定域名打不开或无法访问的问题,可以按如下方法或顺序检查
以下几种情况

一 用IP可以打开,但用域名打开网站显示到默认页面
1  站点列表里是否有相应的网站信息

2  检查有没站点配置文件后台 》系统管理 》文件管理器 》虚拟主机站点文件(nginx,apache)  点击进去,进入到vhost目录,看是否有相应的配置文件
文件名以创建站点时用的域名加后缀.conf,如wdlinux.conf

3 检查网站目录下有没文件后台 》 网站管理 》 站点列表 相应网站右边的 “文件管理”,点击进去查看是否有public_html目录以及public_html目录下是否有文件
你有没装你的网站文件或程序上传到public_html下目录下

4 后台 》系统管理 》重起web服务

系统管理 》命令运行 里执行
service nginxd restart
service httpd restart
如果还不行,把错误信息贴上来

说明:很可能是没生效,一般重起下服务就可以

用IP也打不开默认首页

1 确定是否安装成功,主要是在安装过程中是否有中断或错误信息

2 检查是否有80端口
可以系统管理 》端口管理 看是否有80端口
如果没有80端口, 在 启动服务 列表页里找到相应的nginxd或httpd,点击后面的启动
或者
系统管理 》命令运行 里执行
service nginxd restart
service httpd restart
注意看提示信息
或者用ssh连接到服务器上执行service nginxd restart
service httpd restart
把错误信息贴上来

说明:
1 如果是新安装完就打不开,应该是没安装完成
2 如果是在新建站点或操作站点后打不开,99%都是伪静态规则问题,也就是伪静态规则导致nginx或apache无法启动
此时可以取消刚添加的站点的伪静态,再重起下服务,然后进一步检查伪静态规则
作者: ainan    时间: 2012-1-19 13:13

网站安装程序是传到每个站点目录下的public_html文件夹下吗???
作者: admin    时间: 2012-1-19 13:39

是的
作者: 网络飞车    时间: 2012-3-5 16:45

完了 现在80端口都打不开了 咋的 重启了几次服务器和WEB 都不行
作者: bullhat    时间: 2012-3-8 23:24

楼主我的情况属于:一 用IP可以打开,但用域名打开网站显示到默认页面,进入到vhost目录,没有发现有vhost对应的配置文件,重启了几次还没有不行
作者: kiah    时间: 2012-3-9 01:21

我擦 不早说    我现在又重装了  唉
作者: lanbao888    时间: 2012-3-9 11:12

重装10多次也没解决,能创建配置文件,但不能创建目录
作者: cynet8    时间: 2012-3-24 16:49

新建了一个站点,安装了DZ论坛X2 安装好后,域名访问正常,输入IP地址确不能打开默认站点,而是打开新安装的DZX2论坛,请问问题出在那里?
注:没启动伪静态 也是同样的问题,只有把站点关闭了,输入IP才能打开默认站点
作者: admin    时间: 2012-3-24 20:01

创建一个默认站点就可以
可参考
http://www.wdlinux.cn/bbs/thread-1376-1-2.html
作者: cynet8    时间: 2012-3-26 10:57

本帖最后由 cynet8 于 2012-3-26 11:07 编辑

回复 9# admin

【未解决】    我尝试了建立一个默认站点default  
但是打开IP,还是直接打开新安装的DZ X2论坛,
论坛都是新安装,该站点都未启动伪静态规则...
请问具体问题出在那里?

刚又尝试把新建的默认站点default 关闭,同时也关闭新安装的DZ X2论坛,打开IP,确直接打开了另外一个站点(之前不会有这样的情况) ,如果新安装的DZ X2论坛,如果启动,输入IP,就直接打开新安装的DZ X2论坛了...都搞糊涂了...求教...
作者: shufujia    时间: 2012-4-1 16:54

回复 1# admin

QQ截图20120401152905.png
2012-4-1 16:54


老大 这个是什么原因

图片附件: QQ截图20120401152905.png (2012-4-1 16:54, 4.87 KB) / 下载次数 9119
http://www.wdlinux.cn/bbs/attachment.php?aid=515&k=b662e2b0600a6ceccd65a12ccc236f58&t=1711656375&sid=Z73XL7


作者: yidaweb    时间: 2012-5-8 17:09

[root@296587 ~]# service nginxd restart
nginxd: unrecognized service
[root@296587 ~]# service httpd restart
Stopping httpd: [FAILED]
Starting httpd: httpd: Syntax error on line 421 of /www/wdlinux/httpd-2.2.22/conf/httpd.conf: Syntax error on line 10 of /www/wdlinux/httpd-2.2.22/conf/vhost/chssf.com.conf: Could not open configuration file /www/wdlinux/httpd-2.2.22/conf/rewrite/dzx15_nginx.conf: No such file or directory
[FAILED]
作者: yidaweb    时间: 2012-5-8 17:13

1.jpg
2012-5-8 17:13

80端口没有了。要怎么处理呢

图片附件: 1.jpg (2012-5-8 17:13, 31.46 KB) / 下载次数 9184
http://www.wdlinux.cn/bbs/attachment.php?aid=643&k=33072cc51fd73a8d94d00d530b69ae93&t=1711656375&sid=Z73XL7


作者: zhao2002yf    时间: 2012-11-23 22:14

自己添加就可以了,如果要重启也保留,就何存一下,然后重启一下 httpd 就可以了!
作者: alvintony    时间: 2012-12-1 15:49

正在启动 httpd:httpd: Syntax error on line 422 of /www/wdlinux/httpd-2.2.22/con                                                                                        f/httpd.conf: Syntax error on line 11 of /www/wdlinux/httpd-2.2.22/conf/vhost/bb                                                                                        s.594zz.com.conf: Could not open configuration file /www/wdlinux/httpd-2.2.22/co                                                                                        nf/rewrite/dz25nginx.conf: No such file or directory
                                                           [失败]
作者: odin1718@qq.com    时间: 2013-4-3 18:20

使用的是WDOS1.0, lanmp,部署完成后访问域名或IP地址,发现CSS无法加载和部分目录无法访问,如:提示“You don't have permission to access /bbs/ on this server.” 请指导如何修改?
备注:各项服务启动正常
作者: odin1718@qq.com    时间: 2013-4-3 18:35

请查看图片,目录权限已分配755,所属组和用户都为root。

图片附件: bbs.jpg (2013-4-3 18:34, 49.81 KB) / 下载次数 5507
http://www.wdlinux.cn/bbs/attachment.php?aid=2736&k=4c2b671981a896194ce8d0a1f93c3b5e&t=1711656375&sid=Z73XL7



图片附件: css.jpg (2013-4-3 18:34, 79.37 KB) / 下载次数 5551
http://www.wdlinux.cn/bbs/attachment.php?aid=2738&k=cf68c9ee58aaabfdec18c2338e22f3d0&t=1711656375&sid=Z73XL7


作者: ctmedia    时间: 2013-6-1 12:12

执行下面的语句时候
service httpd restart

出现下列问题
Stopping httpd: [FAILED]
Starting httpd: [FAILED]   

请问这是什么原因呢。
作者: zhanjun    时间: 2013-6-1 12:35

回复 1# admin


   还有一个不起眼的问题就是:你的域名备案没有?你的空间商域名给你加入白名单没有?如果没有加入一样打不开的!
作者: elwinsheng    时间: 2013-7-5 16:59

我这边也遇到这个问题,不过后来自己解决了,不知道是不是BUG ,这边反馈下
http://www.wdlinux.cn/bbs/thread-6417-1-1.html
作者: kangphp    时间: 2013-7-15 23:03

老大 绑定其他域名可以 我这个域名以前在服务器绑定过 结果网站删除了  我又从新建立了一个 然后绑定域名  带WWW就显示404 不加www就可以访问 绑定其他域名都可以  我怀疑是不是以前的绑定还残留 求老大解决
作者: marquis    时间: 2013-7-16 11:31

回复 21# kangphp

应该是不会残留的。。有没有添加www主机名?
作者: tszfzz    时间: 2013-7-17 01:36

新建站点 路径我都填好的了 public_html也有  服务也重启了 访问实际路径是 /www/web/default 奇了怪了
作者: marquis    时间: 2013-7-17 11:16

回复 23# tszfzz


   你是怎么新建的站点
作者: tszfzz    时间: 2013-7-17 14:50

就是菜单里面新建站点啊
作者: tszfzz    时间: 2013-7-17 14:51

.conf  路径也对的
作者: tszfzz    时间: 2013-7-17 14:53

不知道是不是 httpd.conf  文件有问题  谁有这个原文件 httpd.conf
作者: marquis    时间: 2013-7-17 16:53

回复 27# tszfzz
一般没做修改是没问题的,这个是我的。
httpd.conf.rar (5.23 KB)

附件: httpd.conf.rar (2013-7-17 16:53, 5.23 KB) / 下载次数 20
http://www.wdlinux.cn/bbs/attachment.php?aid=3234&k=52569ca60f25e553d5e220ad02a7e117&t=1711656375&sid=Z73XL7
作者: tszfzz    时间: 2013-7-17 17:05

你修改了没有啊
作者: tszfzz    时间: 2013-7-17 17:24

所有网站都是这样了
作者: marquis    时间: 2013-7-17 18:14

回复 30# tszfzz


   我的是ip访问的站点。
作者: tszfzz    时间: 2013-7-17 18:26

Syntax error on line 9 of /www/wdlinux/httpd-2.2.22/conf/vhost/www.kuio53.com.conf:
Invalid command 'php_admin_value', perhaps misspelled or defined by a module not included in the server configuration
作者: hadals    时间: 2013-10-21 09:31

本帖最后由 hadals 于 2013-10-21 09:44 编辑

老大,我求助。
错误.JPG
2013-10-21 09:29


安装成功之后新建站点(默认站点),用IP可以打开默认首页,用域名不行(二级域名)。

我上传文件(搬家,直接上传的原主机全部文件)到public_html 目录。数据库建好,用户建好等操作之后。
接着就打不开了 IP不行 域名不行。重启服务器 重启web服务。。都不行。(你提到的检查我都有检查)
我安装的一键包 当前版本: wdcp_v2.5.8(20130804)

图片附件: 错误.JPG (2013-10-21 09:29, 35.46 KB) / 下载次数 5851
http://www.wdlinux.cn/bbs/attachment.php?aid=3775&k=d51c23d2fbdeff19fd6b69ccc0d53693&t=1711656375&sid=Z73XL7


作者: jxyk2007    时间: 2013-10-21 10:12

回复 1# admin
[root@ebs-21482 ~]# service nginxd restart
停止 nginx:nginx: [error] open() "/www/wdlinux/nginx-1.0.12/logs/nginx.pid" failed (2: No such file or directory)
[确定]
正在启动 nginx: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()
[失败]

作者: inyhow    时间: 2013-11-17 20:08

回复 1# admin


   老大,提示错误
  1. Stopping httpd:                                            [FAILED]
  2. Starting httpd: httpd: Syntax error on line 54 of /www/wdlinux/httpd-2.2.22/conf                                                                             /httpd.conf: Cannot load /www/wdlinux/httpd-2.2.22/modules/libphp5.so into serve                                                                             r: libmcrypt.so.4: cannot open shared object file: No such file or directory
  3.                                                            [FAILED]
复制代码

作者: william_lai    时间: 2013-11-19 17:32

回复 1# admin
老大,同一IP不同端口如何做域名解析跟域名绑定?
作者: william_lai    时间: 2013-11-19 17:42

回复 36# william_lai

时代互联云主机,只有一个IP,想在同一主机、IP下建立多个网站站,删除了网站默认路径/www/web/default下所有文件跟文件;修改了web端口,在防火墙有增加对应端口并放行,……现在的情况就是直接IP无法访问任何东西,域名解析已经成功,多ping已经能看到对应IP……求空间域名绑定跟直接IP就能打开的方法?
作者: railhood    时间: 2013-12-14 00:16

回复 37# william_lai


   同问。我用的阿里云,同一个ip,现在开始新建第二个站。第一个网站用的default目录,第二个新建之后访问也跳转到第一个站了,不知道哪里的问题。
作者: admin    时间: 2013-12-15 11:15

没生效吧
作者: markeseo    时间: 2014-3-20 23:24

回复 32# tszfzz


   正在启动 httpd:Syntax error on line 10 of /www/wdlinux/httpd-2.2.22/conf/vhost/XXX.com.conf:Invalid command 'php_admin_value', perhaps misspelled or defined by a module not included in the server configuration
你这个解决了没
作者: myluoliang    时间: 2014-4-13 07:22

本帖最后由 myluoliang 于 2014-4-13 08:18 编辑
创建一个默认站点就可以
可参考
admin 发表于 2012-3-24 20:01



   这个是及时雨啊,找了一晚上才看到,感谢!
作者: y0710353    时间: 2014-6-1 20:47

重启了服务器,网站打开全部502,擦啊
作者: Dizzly    时间: 2014-12-17 01:48

httpd:httpd: Syntax error on line 425 of /www/wdlinux/httpd-2.2.22/con       f/httpd.conf: Could not open configuration file /etc/ApacheSafeDog/SafeDogSiteAp       acheFilter.Conf: No such file or directory
作者: idtdi    时间: 2014-12-31 18:59

说一下我的情况吧
阿里云ECS一个独立IP建了2个网站 都用自定义路径 /www/网站A;/www/网站B,建完站 路径和public_html文件夹都正常,且public_html文件夹下自带3个文件(index.html errpage之类的吧)都没在意,感觉顺利安装应该会正常工作了吧,可是IP和域名无论如何访问都无法打开配置安装Wordpress的页面,就是一直停留在wdcp安装成功的页面,后来手动删除了index.html 这个文件以后,刷新-顺利安装Wordpress-搞定!希望有同样问题的朋友可以借鉴
作者: hkfalcon    时间: 2015-2-3 17:29

2  检查有没站点配置文件后台 》系统管理 》文件管理器 》虚拟主机站点文件(nginx,apache)  点击进去,进入到vhost目录,看是否有相应的配置文件
文件名以创建站点时用的域名加后缀.conf,如wdlinux.conf

创建站点成功,没有生成配置文件*.conf 这个是什么原因?
作者: kary121    时间: 2015-4-20 16:08

老大,新建站点,都是404错误,配置文件生成了对应的,目录里也上传了网站程序  但是就是404
作者: ylyjw    时间: 2015-4-22 22:03

没有有80端口, 在 启动服务 也没有nginxd或httpd,怎么办?
作者: windpinna    时间: 2015-6-6 14:36

还是有些作用的。。。。按照步骤来。。。。
作者: adokele    时间: 2015-12-9 22:30

回复 1# admin


    老大麻烦帮忙看看!
新建网站无法打开;


IP能访问;

有.conf 文件;

public_html有内容;

系统管理 》命令运行 里执行
service nginxd restart
service httpd restart


[root@localhost ~]# service nginxd restart
Stopping nginx: nginx: [warn] conflicting server name "cs.34mei.com" on 0.0.0.0:80, ignored
                                                           [  OK  ]
Shutting down php_fpm . done
Starting nginx: nginx: [warn] conflicting server name "cs.34mei.com" on 0.0.0.0:80, ignored
                                                           [  OK  ]
Starting php_fpm  done

[root@localhost ~]# service httpd restart
httpd: unrecognized service
作者: jasonrock    时间: 2015-12-15 13:01

[root@localhost ~]# service httpd start
httpd: 未被识别的服务
[root@localhost ~]# service httpd start
httpd: 未被识别的服务
[root@localhost ~]# service nginxd start
nginxd: 未被识别的服务
[root@localhost ~]# service nginxd restart
nginxd: 未被识别的服务
[root@localhost ~]# service httpd restart
httpd: 未被识别的服务
[root@localhost ~]# service nginxd restart
nginxd: 未被识别的服务
[root@localhost ~]# service httpd restart
httpd: 未被识别的服务
[root@localhost ~]#
作者: jzykk    时间: 2016-3-10 20:30

回复 1# admin


  
QQ截图20160310202654.png
2016-3-10 20:29
一开始安装网站,连接数据库的时候出现502,按照帖子所说重启服务器,重启后就变成这个样子了!

图片附件: QQ截图20160310202654.png (2016-3-10 20:29, 45.23 KB) / 下载次数 6065
http://www.wdlinux.cn/bbs/attachment.php?aid=5811&k=ada16f48d2501048fc8f463ae05739bd&t=1711656375&sid=Z73XL7


作者: lydaly    时间: 2016-5-13 01:07

新建整站,每次都打不开
作者: 请叫我groot    时间: 2016-8-8 10:34

[root@localhost ~]# service httpd restart
Stopping httpd:                                            [  OK  ]
Starting httpd: Syntax error on line 9 of /www/wdlinux/httpd-2.2.24/conf/vhost/00000.default.conf:
Invalid command 'php_admin_value', perhaps misspelled or defined by a module not included in the server configuration
                                                           [FAILED]
[root@localhost ~]#
作者: 0215    时间: 2016-8-26 03:31

Stopping httpd:                                            [FAILED]
Starting httpd: httpd: Syntax error on line 54 of /www/wdlinux/httpd-2.2.22/conf/httpd.conf: Cannot load /www/wdlinux/httpd-2.2.22/modules/libphp5.so into server: libmhash.so.2: cannot open shared object file: No such file or directory
                                                           [FAILED]
作者: 乘风    时间: 2016-10-22 00:29

Stopping httpd:                                            [FAILED]
Starting httpd: httpd: Syntax error on line 54 of /www/wdlinux/httpd-2.2.22/conf/httpd.conf: Cannot load /www/wdlinux/httpd-2.2.22/modules/libphp5.so into server: libmhash.so.2: cannot open shared object file: No such file or directory


我的也是这样,求解
作者: 向上的葱子    时间: 2016-12-19 23:05

回复 28# marquis


    感谢分享
作者: fhvsxy    时间: 2017-2-20 17:05

Restarting nginxd (via systemctl):  Job for nginxd.service failed because the control process exited with error code. See "systemctl status nginxd.service" and "journalctl -xe" for details.
                                                           [失败]
作者: 红尘    时间: 2017-5-2 21:12

提示重定向次数过多,网站无法打开怎么解决呢
作者: hwbwinner    时间: 2017-11-15 21:58

回复 49# adokele


   我的情况跟你的一样 装的是nginx 突然创建网站无法访问 以前的网站还可以访问 请问你是怎么解决的?
作者: lzy518    时间: 2018-1-25 23:03

wdcp的演示也打不开是为什么。安装了V3.2.
作者: dreao    时间: 2018-11-8 22:11

使用运行命令反馈:{"errCode":"1","msg":""}
登录后台运行service nginxd restart 返回如下:
Job for nginxd.service failed because the control process exited with error code. See "systemctl status nginxd.service" and "journalctl -xe" for details.




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