新人求助,apache,启动不能,

再来一碗 2012-07-11 06:26:21
/etc/init.d/httpd start


service httpd restart

启动 httpd:Syntax error on line 1 of /etc/httpd/conf.d/virtual.conf:
Invalid command 'meVirtualHost', perhaps misspelled or defined by a module not included in the server configuration
[失败]


apache是系统默认安装的(CentOS release 5.7 ),安装路径我一直没动过啊,今天配置了虚拟主机,然后需要重启httpd,停止了。当时一直启动不了,是希望大大们帮忙分析下,大概是哪里出错,怎么解决,谢谢大大们先。

[Sat Jul 07 11:50:41 2012] [error] [client 192.168.1.8] (13)Permission denied: access to /index.html denied
[Sat Jul 07 17:56:36 2012] [notice] caught SIGTERM, shutting down

日志错误时间就是重启的时候。

httpd-2.2.3-53.el5.centos
system-config-httpd-1.3.3.3-1.el5
httpd-manual-2.2.3-53.el5.centos

版本
...全文
147 2 打赏 收藏 转发到动态 举报
写回复
用AI写文章
2 条回复
切换为时间正序
请发表友善的回复…
发表回复
再来一碗 2012-07-12
  • 打赏
  • 举报
回复
谢谢2L大哥,嗯,应该是那原因了。。对我很有启发。真的非常感谢。。

不过现在又有错误。。我实在是很菜。。所以只能有厚颜来求问了,先谢谢各位大大。。

这次/etc/init.d/httpd start启动

启动 httpd:httpd: Syntax error on line 209 of /etc/httpd/conf/httpd.conf: Syntax error on line.
[失败]

这次我知道是/etc/httpd/conf/httpd.conf得配置出错了,

#
# The following modules are not loaded by default:
#
#LoadModule cern_meta_module modules/mod_cern_meta.so
#LoadModule asis_module modules/mod_asis.so

#
# Load config files from the config directory "/etc/httpd/conf.d".
#
Include conf.d/*.conf

#
# ExtendedStatus controls whether Apache will generate "full" status
# information (ExtendedStatus On) or just basic information (ExtendedStatus
# Off) when the "server-status" handler is called. The default is Off.
#
#ExtendedStatus On

209行附近应该就这几行了,请大大帮忙看看,是哪里问题?谢过先。
sdqd2012 2012-07-11
  • 打赏
  • 举报
回复
1 关闭selinux
2 看你的文件/etc/httpd/conf.d/virtual.conf里面的命令:meVirtualHost是什么东西,上网查下,是否打错了,是否为VirtualHost
3 改正错误后,重启httpd

19,612

社区成员

发帖
与我相关
我的任务
社区描述
系统使用、管理、维护问题。可以是Ubuntu, Fedora, Unix等等
社区管理员
  • 系统维护与使用区社区
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧