LinuxSir.cn,穿越时空的Linuxsir!

 找回密码
 注册
搜索
热搜: shell linux mysql
查看: 2110|回复: 8

apache不能工作

[复制链接]
发表于 2004-1-6 15:53:48 | 显示全部楼层 |阅读模式
/etc/init.d/apache restart

  1. [Tue Jan  6 15:55:54 2004] [warn] module config_log_module is already loaded, skipping
  2. [Tue Jan  6 15:55:54 2004] [warn] module mime_magic_module is already loaded, skipping
  3. [Tue Jan  6 15:55:54 2004] [warn] module mime_module is already loaded, skipping
  4. [Tue Jan  6 15:55:54 2004] [warn] module negotiation_module is already loaded, skipping
  5. [Tue Jan  6 15:55:54 2004] [warn] module status_module is already loaded, skipping
  6. [Tue Jan  6 15:55:54 2004] [warn] module autoindex_module is already loaded, skipping
  7. [Tue Jan  6 15:55:54 2004] [warn] module dir_module is already loaded, skipping
  8. [Tue Jan  6 15:55:54 2004] [warn] module cgi_module is already loaded, skipping
  9. [Tue Jan  6 15:55:54 2004] [warn] module userdir_module is already loaded, skipping
  10. [Tue Jan  6 15:55:54 2004] [warn] module alias_module is already loaded, skipping
  11. [Tue Jan  6 15:55:54 2004] [warn] module rewrite_module is already loaded, skipping
  12. [Tue Jan  6 15:55:54 2004] [warn] module access_module is already loaded, skipping
  13. [Tue Jan  6 15:55:54 2004] [warn] module auth_module is already loaded, skipping
  14. [Tue Jan  6 15:55:54 2004] [warn] module expires_module is already loaded, skipping
  15. [Tue Jan  6 15:55:54 2004] [warn] module unique_id_module is already loaded, skipping
  16. [Tue Jan  6 15:55:54 2004] [warn] module setenvif_module is already loaded, skipping
  17. [Tue Jan  6 15:55:54 2004] [warn] module php4_module is already loaded, skipping
  18. Syntax error on line 330 of /etc/apache/httpd.conf:
  19. Invalid command 'Order', perhaps mis-spelled or defined by a module not included in the server configuration
复制代码

请兄弟帮忙看一下。
谢谢。
 楼主| 发表于 2004-1-6 15:55:36 | 显示全部楼层
我并没有修改/etc/apache/httpd.conf这个文件。
发表于 2004-1-6 15:57:56 | 显示全部楼层
Syntax error on line 330 of /etc/apache/httpd.conf:
Invalid command 'Order', perhaps mis-spelled or defined by a module not included in the server configuration
看看330行 应该有错误吧
 楼主| 发表于 2004-1-6 16:09:46 | 显示全部楼层

part of /etc/apache/httpd.conf


  1. #
  2. <Directory /var/www/html/>
  3.                                                                                 
  4.                                                                                 
  5. #
  6. # This may also be "None", "All", or any combination of "Indexes",
  7. # "Includes", "FollowSymLinks", "ExecCGI", or "MultiViews".
  8. #
  9. # Note that "MultiViews" must be named *explicitly* --- "Options All"
  10. # doesn't give it to you.
  11. #
  12.     Options Indexes Includes FollowSymLinks MultiViews
  13.                                                                                 
  14. #
  15. # This controls which options the .htaccess files in directories can
  16. # override. Can also be "All", or any combination of "Options", "FileInfo",
  17. # "AuthConfig", and "Limit"
  18. #
  19.     AllowOverride None
  20.                                                                                 
  21. #
  22. # Controls who can get stuff from this server.
  23. #
  24.     Order allow,deny   #这一行是第330行
  25.     Allow from all
  26. </Directory>
复制代码


OSebian
Kernel version: 2.6.0
发表于 2004-1-6 16:29:03 | 显示全部楼层
注释掉在看有什么提示/
 楼主| 发表于 2004-1-6 16:31:36 | 显示全部楼层
330注释掉,331出错。
331注释,350出错。都是出现在类似的语句上。
 楼主| 发表于 2004-1-6 16:50:46 | 显示全部楼层
之前我安装了tomcat,但我现在不清楚是不是因为tomcat的原因使apache不能工作。
发表于 2004-1-6 17:04:45 | 显示全部楼层
前面那一大排是说,重复加载模块也就是说,你加载了两次模块。
后面这个是说Order这个指令需要一个基本模块支持,具体是哪个我也说不上来,
你可以将httpd.conf里的LoadModule语句开启,然后一个个试,我估计是这个
LoadModule actions_module modules/mod_actions.so

哦哦,看来是这个
LoadModule access_module modules/mod_access.so
 楼主| 发表于 2004-1-6 17:30:17 | 显示全部楼层
谢谢你的提示,但我在该文件中没有发现类似
LoadModule access_module modules/mod_access.so
LoadModule actions_module modules/mod_actions.so
的语句,手工添加上去,重新启动apache,也不行。
还是提示原来的错误。
您需要登录后才可以回帖 登录 | 注册

本版积分规则

快速回复 返回顶部 返回列表