httpd設置當我嘗試使用 '服務的httpd重新啓動' 我收到以下錯誤重新啓動httpd的:誤差在CentOS
Stopping httpd: [FAILED]
Starting httpd: Syntax error on line 10 of /etc/httpd/conf/extra/httpd-directories.conf:
Invalid command 'Order', perhaps misspelled or defined by a module not included in the server configuration
[FAILED]
我運行CentOS 6的與Apache 2.2
我沒有改變任何東西到我的httpd-directories.conf,並且我讀了Order是有效的命令,並且在其他地方可能存在與我的配置有關的問題,但我不知道在哪裏尋找。有什麼建議麼?
我的httpd-directories.conf文件的開頭:
<Directory />
Options All
AllowOverride All
</Directory>
<Directory /home>
AllowOverride All
Options -MultiViews -Indexes +FollowSymLinks +IncludesNoExec +Includes
<Limit GET POST OPTIONS PROPFIND>
Order allow,deny
Allow from all
</Limit>
<LimitExcept GET POST OPTIONS PROPFIND>
Order deny,allow
Deny from all
</LimitExcept>
</Directory>
我加入了代碼「的LoadModule authz_host_module模塊/ mod_authz_host.so」我的httpd.conf現在我收到一個新錯誤: /etc/httpd/conf/extra/httpd-php-handlers.conf中第2行的語法錯誤: 無效命令'AddHandler',可能是拼寫錯誤或由未包含在模塊中的模塊定義服務器配置 – Johan