很多这种错误,都是mod_auth开头的,还有#LoadModule imap_module modules/mod_imap.so
[root@fc ~]# /usr/sbin/apachectl restart
apachectl: Configuration syntax error, will not run "restart":
httpd: Syntax error on line 185 of /etc/httpd/conf/httpd.conf: Cannot load /etc/httpd/modules/mod_auth_dbm.so into server: /etc/httpd/modules/mod_auth_dbm.so: cannot open shared object file: No such file or directory
屏蔽对应的模块后,就报告
[root@fc ~]# /usr/sbin/apachectl restart
apachectl: Configuration syntax error, will not run "restart":
Syntax error on line 361 of /etc/httpd/conf/httpd.conf:
Invalid command 'Order', perhaps misspelled or defined by a module not included in the server configuration
但是如果修改DocumentRoot "/abc/www" 等等,就会重启动apache就会出错,报告apachectl: Configuration syntax error, will not run "restart":Syntax OK
已经修改/abc/www为 root.root apache.apache 777 等等都不行
另外我用 /usr/sbin/apachectl restart 或者 service httpd restart 现在怎么都不报错误的行了,以前的版本报告似乎比较详细