日期:2014-05-16  浏览次数:20769 次

apache错误与提示汇总

摘录自网上

?

root@srv-2 modules]# /etc/init.d/httpd start
Starting httpd: Syntax error on line 358 of /etc/httpd/conf/httpd.conf:
Invalid command ' Order ', perhaps mis-spelled or defined by a module not included
in the server configuration

???????????????????????????????????????????????????
需添加:

LoadModule access_module /etc/httpd/modules/mod_access.so
LoadModule auth_module /etc/httpd/modules/mod_auth.so


[root@srv-2 modules]# /etc/init.d/httpd start
Starting httpd: Syntax error on line 368 of /etc/httpd/conf/httpd.conf:
Invalid command 'UserDir ', perhaps mis-spelled or defined by a module not includ
ed in the server configuration
????????????????????????????????
需添加: LoadModule userdir_module /etc/httpd/modules/mod_userdir.so

[root@srv-2 modules]# /etc/init.d/httpd start
Starting httpd: Syntax error on line 396 of /etc/httpd/conf/httpd.conf:
Invalid command 'DirectoryIndex ', perhaps mis-spelled or defined by a module not
included in the server configuration
???????????????????????????????????????
需添加: LoadModule dir_module /etc/httpd/modules/mod_dir.so

[root@srv-2 modules]# /etc/init.d/httpd start
Starting httpd: Syntax error on line 419 of /etc/httpd/conf/httpd.conf:
Invalid command 'TypesConfig ', perhaps mis-spelled or