免费注册 查看新帖 |

Chinaunix

  平台 论坛 博客 文库
最近访问板块 发新帖
查看: 3692 | 回复: 3
打印 上一主题 下一主题

[Web] 求版主帮忙:关于apache2的一个问题 [复制链接]

论坛徽章:
0
跳转到指定楼层
1 [收藏(0)] [报告]
发表于 2006-08-26 12:29 |只看该作者 |倒序浏览
您好!我是一个linux的新用户,前几天我从网上下载php5.0.4和apache2,安装成功。其中在httpd.conf中,我把DocumentRoot "/home/asinux",我在该目录下创建了一个info.php文件,运行成功。能在浏览器中看到Php的一些资料。(我是在网上查找了相关资料,把httpd.conf修改了一番。)可是昨天,我下载了oracle10G数据库后,也是安装成功。但电脑就是反应太慢了。我到这个软件所在的目录下一看,哦。2.3G,太大了。电脑受不了。便又删了。等我再在/home/asianux下运行这个info.php时,明明这个文件在该目录下。系统却提示“404 Not Found",请版主帮忙看看,到底是哪个地方有问题。我抓取了出错的面画,请供参考。

ps6.png (91.99 KB, 下载次数: 25)

ps6.png

论坛徽章:
1
技术图书徽章
日期:2013-12-05 23:25:45
2 [报告]
发表于 2006-08-26 13:33 |只看该作者
你从你的apache所在的目录,使用/usr/path/to/you/apache这样子的完整路径启动看看如何。

另外记得错误日志里面看怎么记录的。

论坛徽章:
0
3 [报告]
发表于 2006-08-26 13:59 |只看该作者
以下是版主需要的。请参考。另外,当我把httpd关了之后,想重起启动却启动不了。提示也一起发送。[asianux@localhost ~]$ /etc/init.d/httpd stop
rm: 无法删除‘/var/run/httpd.pid’: 权限不够                 [失败]

[asianux@localhost ~]$ su
Password:
su: incorrect password
[asianux@localhost ~]$ su
Password:
[root@localhost asianux]# /etc/init.d/httpd stop
停止 httpd:                                               [  确定  ]
[root@localhost asianux]# /usr/local/apache2/bin/apachectl start
[Sat Aug 26 13:35:10 2006] [warn] module php5_module is already loaded, skipping
[root@localhost asianux]# /usr/local/apache2/bin/apachectl start
[Sat Aug 26 13:40:18 2006] [warn] module php5_module is already loaded, skipping
httpd (pid 5252) already running
关掉后,想重新启动却启动不了:
[root@localhost asianux]# /etc/init.d/httpd start
启动 httpd:(9地址已在使用: make_sock: could not bind to address [::]:80
no listening sockets available, shutting down
Unable to open logs
                                                           [失败]
[root@localhost asianux]# /etc/init.d/httpd start
启动 httpd:(9地址已在使用: make_sock: could not bind to address [::]:80
no listening sockets available, shutting down
Unable to open logs
                                                           [失败]
[root@localhost asianux]# vi /usr/local/apache2/conf/httpd.conf
[root@localhost asianux]# /etc/init.d/httpd start
启动 httpd:(9地址已在使用: make_sock: could not bind to address [::]:80
no listening sockets available, shutting down
Unable to open logs
                                                           [失败]
[root@localhost asianux]#
错误的日志如下:
[Sat Aug 26 09:37:48 2006] [error] [client 127.0.0.1] (13)Permission denied: access to /favicon.ico denied
[Sat Aug 26 09:55:26 2006] [error] [client 192.168.1.54] (13)Permission denied: access to /first.php denied
[Sat Aug 26 09:56:23 2006] [notice] caught SIGTERM, shutting down
[Sat Aug 26 09:56:38 2006] [notice] Apache/2.2.3 (Unix) PHP/5.1.4 configured -- resuming normal operations
[Sat Aug 26 09:56:44 2006] [error] [client 192.168.1.54] (13)Permission denied: access to /first.php denied
[Sat Aug 26 09:56:47 2006] [error] [client 192.168.1.54] (13)Permission denied: access to /first.php denied
[Sat Aug 26 09:59:04 2006] [notice] caught SIGTERM, shutting down
[Sat Aug 26 09:59:26 2006] [notice] Apache/2.2.3 (Unix) PHP/5.1.4 configured -- resuming normal operations
[Sat Aug 26 10:05:13 2006] [error] [client 192.168.1.54] (13)Permission denied: access to /first.php denied
[Sat Aug 26 10:09:55 2006] [error] [client 192.168.1.54] (13)Permission denied: access to /first.php denied
[Sat Aug 26 10:09:58 2006] [error] [client 192.168.1.54] (13)Permission denied: access to /first.php denied
[Sat Aug 26 10:26:05 2006] [error] [client 192.168.1.54] (13)Permission denied: access to /first.php denied
[Sat Aug 26 10:26:18 2006] [error] [client 192.168.1.54] (13)Permission denied: access to /first.php denied
[Sat Aug 26 10:26:45 2006] [error] [client 192.168.1.54] (13)Permission denied: access to /first.php denied
[Sat Aug 26 10:28:27 2006] [error] [client 192.168.1.54] (13)Permission denied: access to /home/asinaux/first.php denied
[Sat Aug 26 10:31:23 2006] [notice] caught SIGTERM, shutting down
[Sat Aug 26 10:31:36 2006] [warn] module php5_module is already loaded, skipping
[Sat Aug 26 10:31:36 2006] [notice] Apache/2.2.3 (Unix) PHP/5.1.4 configured -- resuming normal operations
[Sat Aug 26 10:31:45 2006] [error] [client 192.168.1.54] (13)Permission denied: access to /home/asinaux/first.php denied
[Sat Aug 26 10:31:56 2006] [error] [client 192.168.1.54] (13)Permission denied: access to /first.php denied
[Sat Aug 26 10:32:06 2006] [error] [client 192.168.1.54] (13)Permission denied: access to /first.php denied
[Sat Aug 26 10:33:15 2006] [error] [client 192.168.1.54] (13)Permission denied: access to /first.php denied
[Sat Aug 26 10:40:56 2006] [error] [client 192.168.1.54] (13)Permission denied: access to /first.php denied
[Sat Aug 26 10:41:05 2006] [error] [client 192.168.1.54] (13)Permission denied: access to /first.php denied
[Sat Aug 26 10:43:11 2006] [notice] caught SIGTERM, shutting down
[Sat Aug 26 13:35:10 2006] [warn] module php5_module is already loaded, skipping
[Sat Aug 26 13:35:10 2006] [notice] Apache/2.2.3 (Unix) PHP/5.1.4 configured -- resuming normal operations

论坛徽章:
1
技术图书徽章
日期:2013-12-05 23:25:45
4 [报告]
发表于 2006-08-26 19:49 |只看该作者
/etc/init.d/httpd
/usr/local/apache2/bin/apachectl

你把他们在你的系统的关系搞清楚了,然后继续。
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

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

清除 Cookies - ChinaUnix - Archiver - WAP - TOP