免费注册 查看新帖 |

Chinaunix

  平台 论坛 博客 文库
最近访问板块 发新帖
查看: 3725 | 回复: 8

[Web] apche可以启动,但是网页无法显示 [复制链接]

论坛徽章:
0
发表于 2008-08-18 14:28 |显示全部楼层
大家好,我的apache可以启动,也没报错,但是网页进不了了
这些是日志信息,请高手帮忙解答下
[Mon Aug 18 14:11:24 2008] [error] [client 192.168.1.108] File does not exist: /opt/httpd-2.2.0/php/favicon.ico
[Mon Aug 18 14:11:30 2008] [error] [client 192.168.1.108] script '/opt/httpd-2.2.0/php/1.php' not found or unable to stat
[Mon Aug 18 14:11:30 2008] [error] [client 192.168.1.108] File does not exist: /opt/httpd-2.2.0/php/favicon.ico
[Mon Aug 18 14:11:33 2008] [error] [client 192.168.1.108] File does not exist: /opt/httpd-2.2.0/php/1.html
[Mon Aug 18 14:11:34 2008] [error] [client 192.168.1.108] File does not exist: /opt/httpd-2.2.0/php/favicon.ico
[Mon Aug 18 14:11:55 2008] [error] [client 192.168.1.108] PHP Warning:  require_once(require/global.php) [<a href='function.require-once'>function.require-once</a>]: failed to open stream: Permission denied in /opt/httpd-2.2.0/php/index.php on line 2
[Mon Aug 18 14:11:55 2008] [error] [client 192.168.1.108] PHP Fatal error:  require_once() [<a href='function.require'>function.require</a>]: Failed opening required 'require/global.php' (include_path='.:/usr/share/pear:/usr/share/php') in /opt/httpd-2.2.0/php/index.php on line 2
[Mon Aug 18 14:11:55 2008] [error] [client 192.168.1.108] File does not exist: /opt/httpd-2.2.0/php/favicon.ico
[Mon Aug 18 14:11:59 2008] [error] [client 192.168.1.108] PHP Warning:  require_once(require/global.php) [<a href='function.require-once'>function.require-once</a>]: failed to open stream: Permission denied in /opt/httpd-2.2.0/php/index.php on line 2
[Mon Aug 18 14:11:59 2008] [error] [client 192.168.1.108] PHP Fatal error:  require_once() [<a href='function.require'>function.require</a>]: Failed opening required 'require/global.php' (include_path='.:/usr/share/pear:/usr/share/php') in /opt/httpd-2.2.0/php/index.php on line 2
[Mon Aug 18 14:11:59 2008] [error] [client 192.168.1.108] File does not exist: /opt/httpd-2.2.0/php/favicon.ico
[Mon Aug 18 14:12:08 2008] [error] [client 192.168.1.108] PHP Warning:  require_once(require/global.php) [<a href='function.require-once'>function.require-once</a>]: failed to open stream: Permission denied in /opt/httpd-2.2.0/php/index.php on line 2
[Mon Aug 18 14:12:08 2008] [error] [client 192.168.1.108] PHP Fatal error:  require_once() [<a href='function.require'>function.require</a>]: Failed opening required 'require/global.php' (include_path='.:/usr/share/pear:/usr/share/php') in /opt/httpd-2.2.0/php/index.php on line 2
[Mon Aug 18 14:12:08 2008] [error] [client 192.168.1.108] File does not exist: /opt/httpd-2.2.0/php/favicon.ico
[Mon Aug 18 14:12:15 2008] [error] [client 192.168.1.108] File does not exist: /opt/httpd-2.2.0/php/favicon.ico
[Mon Aug 18 14:12:22 2008] [error] [client 192.168.1.108] File does not exist: /opt/httpd-2.2.0/php/1
[Mon Aug 18 14:12:22 2008] [error] [client 192.168.1.108] File does not exist: /opt/httpd-2.2.0/php/favicon.ico
[Mon Aug 18 14:12:25 2008] [error] [client 192.168.1.108] script '/opt/httpd-2.2.0/php/1.php' not found or unable to stat
[Mon Aug 18 14:12:25 2008] [error] [client 192.168.1.108] File does not exist: /opt/httpd-2.2.0/php/favicon.ico
[Mon Aug 18 14:12:48 2008] [error] [client 192.168.1.103] script '/opt/httpd-2.2.0/php/tesst.php' not found or unable to stat
[Mon Aug 18 14:12:50 2008] [error] [client 192.168.1.108] File does not exist: /opt/httpd-2.2.0/php/favicon.ico
[Mon Aug 18 14:18:42 2008] [error] [client 192.168.1.103] File does not exist: /opt/httpd-2.2.0/php/favicon.ico
[Mon Aug 18 14:18:42 2008] [error] [client 192.168.1.103] File does not exist: /opt/httpd-2.2.0/php/favicon.ico

论坛徽章:
0
发表于 2008-08-18 14:33 |显示全部楼层
刚又测试了下,写入1.php测试文件,还有1.html的2个文件,测试都出来页面,可是apache自己的默认文件呢?

论坛徽章:
0
发表于 2008-08-18 16:56 |显示全部楼层
你的配置是怎样做的?你有默认页文件么?

论坛徽章:
34
亥猪
日期:2015-03-20 13:55:11戌狗
日期:2015-03-20 13:57:01酉鸡
日期:2015-03-20 14:03:56未羊
日期:2015-03-20 14:18:30子鼠
日期:2015-03-20 14:20:14丑牛
日期:2015-03-20 14:20:31辰龙
日期:2015-03-20 14:35:34巳蛇
日期:2015-03-20 14:35:56操作系统版块每日发帖之星
日期:2015-11-06 06:20:00操作系统版块每日发帖之星
日期:2015-11-08 06:20:00操作系统版块每日发帖之星
日期:2015-11-19 06:20:00黄金圣斗士
日期:2015-11-24 10:43:13
发表于 2008-08-18 17:20 |显示全部楼层
错误信息里面只能说明找不到 File does not exist: /opt/httpd-2.2.0/php/favicon.ico
网页文件的权限给足了么?

论坛徽章:
0
发表于 2008-08-19 09:09 |显示全部楼层
File does not exist不是很明显了嘛,没这个文件
看看你的Document Root的设置,还有是不是用了Alias指令

论坛徽章:
0
发表于 2008-08-19 13:52 |显示全部楼层
httpd 的权限足以访问 /opt/httpd-2.2.0/php/ 么?

论坛徽章:
0
发表于 2008-08-19 14:19 |显示全部楼层
楼主的Log有几类错误:
1. /opt/httpd-2.2.0/php/1.html这个文件不存在,或没权限访问
2. PHP程序有错,找不到包含文件require/global.php
3. favicon.ico 这个文件找不到,此问题可以忽略,这文件不是必须的,有些浏览器会请求这个文件.

论坛徽章:
0
发表于 2008-09-05 16:11 |显示全部楼层
对不起大家。。已经解决了。。我从新编译了下apache和php。。

论坛徽章:
1
2015年迎新春徽章
日期:2015-03-04 09:50:28
发表于 2008-09-06 18:40 |显示全部楼层
楼上的自我检讨了
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

SACC2021中国系统架构师大会

【数字转型 架构重塑】
2022年1月13-15日,由IT168旗下ITPUB企业社区平台主办的第十四届中国系统架构师大会(SACC2021)将在云端进行网络直播。
为期3天的议程,涉及20+专场,近120个主题,完整迁移到线上进行网络直播对会议组织来说绝非易事;但考虑到云端会议的直播形式可以实现全国各地技术爱好者的参与,也使ITPUB作为技术共享交流平台得到更好的普及,我们决定迎难而上。

大会官网
  

北京盛拓优讯信息技术有限公司. 版权所有 京ICP备16024965号-6 北京市公安局海淀分局网监中心备案编号:11010802020122 niuxiaotong@pcpop.com 17352615567
未成年举报专区
中国互联网协会会员  联系我们:huangweiwei@itpub.net
感谢所有关心和支持过ChinaUnix的朋友们 转载本站内容请注明原作者名及出处

清除 Cookies - ChinaUnix - Archiver - WAP - TOP