apache2问题

Web、Mail、Ftp、DNS、Proxy、VPN、Samba、LDAP 等基础网络服务
回复
头像
2185wtl
帖子: 103
注册时间: 2008-01-08 18:40
来自: 火星
送出感谢: 0
接收感谢: 0

apache2问题

#1

帖子 2185wtl » 2008-01-25 19:01

大家好,
我是菜鸟,今天想配置LAMP服务器,然后按照网上的教程一步一步配置,可是安装容易,新立德直接OK,但是我服务器上的网页不能显示图片的,我是baidu,google翻了个遍了,实在没有办法了,看 看你们知道不,碰朋运气

[Fri Jan 25 18:49:24 2008] [error] [client 127.0.0.1] (13)Permission denied: access to /images/untitled.jpg denied, referer: http://127.0.0.1/
[Fri Jan 25 18:49:24 2008] [error] [client 127.0.0.1] (13)Permission denied: access to /images/fei.gif denied, referer: http://127.0.0.1/
[Fri Jan 25 18:49:24 2008] [error] [client 127.0.0.1] (13)Permission denied: access to /images/P1080433 753.jpg denied, referer: http://127.0.0.1/
[Fri Jan 25 18:49:24 2008] [error] [client 127.0.0.1] (13)Permission denied: access to /images/untitled.jpg denied, referer: http://127.0.0.1/
[Fri Jan 25 18:50:56 2008] [error] [client 127.0.1.1] (13)Permission denied: access to /images/P1080433 753.jpg denied, referer: http://127.0.1.1/
[Fri Jan 25 18:50:56 2008] [error] [client 127.0.1.1] (13)Permission denied: access to /images/fei.gif denied, referer: http://127.0.1.1/
[Fri Jan 25 18:50:56 2008] [error] [client 127.0.1.1] (13)Permission denied: access to /images/untitled.jpg denied, referer: http://127.0.1.1/
[Fri Jan 25 18:51:12 2008] [error] [client 127.0.0.1] (13)Permission denied: access to /images/fei.gif denied, referer: http://127.0.0.1/
[Fri Jan 25 18:51:12 2008] [error] [client 127.0.0.1] (13)Permission denied: access to /images/P1080433 753.jpg denied, referer: http://127.0.0.1/
[Fri Jan 25 18:51:12 2008] [error] [client 127.0.0.1] (13)Permission denied: access to /images/untitled.jpg denied, referer: http://127.0.0.1/
[Fri Jan 25 18:51:30 2008] [error] [client 127.0.1.1] (13)Permission denied: access to /images/P1080433 753.jpg denied, referer: http://127.0.1.1/
[Fri Jan 25 18:51:30 2008] [error] [client 127.0.1.1] (13)Permission denied: access to /images/fei.gif denied, referer: http://127.0.1.1/
[Fri Jan 25 18:51:30 2008] [error] [client 127.0.1.1] (13)Permission denied: access to /images/untitled.jpg denied, referer: http://127.0.1.1/
[Fri Jan 25 18:55:11 2008] [error] [client 127.0.1.1] (13)Permission denied: access to /images/fei.gif denied, referer: http://127.0.1.1/
[Fri Jan 25 18:55:11 2008] [error] [client 127.0.1.1] (13)Permission denied: access to /images/untitled.jpg denied, referer: http://127.0.1.1/
[Fri Jan 25 18:55:11 2008] [error] [client 127.0.1.1] (13)Permission denied: access to /images/P1080433 753.jpg denied, referer: http://127.0.1.1/
[Fri Jan 25 18:56:29 2008] [notice] caught SIGWINCH, shutting down gracefully
PHP Warning: PHP Startup: Unable to load dynamic library '/usr/lib/php5/20060613+lfs/msql.so' - /usr/lib/php5/20060613+lfs/msql.so: cannot open shared object file: No such file or directory in Unknown on line 0
[Fri Jan 25 18:57:38 2008] [notice] Apache/2.2.4 (Ubuntu) PHP/5.2.3-1ubuntu6.3 configured -- resuming normal operations
[Fri Jan 25 18:58:20 2008] [error] [client 127.0.1.1] (13)Permission denied: access to /images/fei.gif denied, referer: http://127.0.1.1/
[Fri Jan 25 18:58:20 2008] [error] [client 127.0.1.1] (13)Permission denied: access to /images/P1080433 753.jpg denied, referer: http://127.0.1.1/
[Fri Jan 25 18:58:20 2008] [error] [client 127.0.1.1] (13)Permission denied: access to /images/untitled.jpg denied, referer: http://127.0.1.1/
[Fri Jan 25 18:58:30 2008] [error] [client 127.0.0.1] (13)Permission denied: access to /images/fei.gif denied, referer: http://127.0.0.1/
[Fri Jan 25 18:58:30 2008] [error] [client 127.0.0.1] (13)Permission denied: access to /images/untitled.jpg denied, referer: http://127.0.0.1/
[Fri Jan 25 18:58:30 2008] [error] [client 127.0.0.1] (13)Permission denied: access to /images/P1080433 753.jpg denied, referer: http://127.0.0.1/


上面是LOG记录
头像
2185wtl
帖子: 103
注册时间: 2008-01-08 18:40
来自: 火星
送出感谢: 0
接收感谢: 0

#2

帖子 2185wtl » 2008-01-25 19:03

注意了,除了图片不显示外,网页是正常的,这种怪现象真没有见过,就是打开网页只有文字,没有图片
头像
AlphaWu
帖子: 50
注册时间: 2007-11-21 11:43
送出感谢: 0
接收感谢: 0
联系:

#3

帖子 AlphaWu » 2008-01-27 17:41

看看你的apache2宿主有没有权限操作images目录。

或者你在你的images目录里面放一个txt文件,看看能不能浏览。
我觉得是你权限不够。
pcboy0621
帖子: 6
注册时间: 2008-04-21 11:19
送出感谢: 0
接收感谢: 0

#4

帖子 pcboy0621 » 2008-04-21 19:33

小弟安裝 7.10 版
只安裝 apache2
html, gif, jpg 都在 /var/www 目錄, 而非只目錄

使用 firefox

http://localhost/index.html 只能看到文字, 無法看到圖片

file:///var/www/index.html 文字圖片都可以正常看到

index.html 是小弟自己寫的
头像
RegentW
帖子: 1486
注册时间: 2007-02-27 21:47
来自: NN
送出感谢: 2 次
接收感谢: 0

#5

帖子 RegentW » 2008-04-21 19:36

ls -l /var/www/images
看看?
Core i5, 512G + SSD 20G, DDRIII 8G
回复

回到 “服务器基础应用”