2014-12-30 33 views
0

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> 

回答

0

編輯您的httpd.conf並確保mod_authz_host模塊被加載。

How to enable/install Apache Modules ?

+0

我加入了代碼「的LoadModule authz_host_module模塊/ mod_authz_host.so」我的httpd.conf現在我收到一個新錯誤: /etc/httpd/conf/extra/httpd-php-handlers.conf中第2行的語法錯誤: 無效命令'AddHandler',可能是拼寫錯誤或由未包含在模塊中的模塊定義服務器配置 – Johan

0

這不是編輯我的httpd.conf一個好主意。我有一個新的錯誤從將此代碼添加到我的httpd.conf LoadModule authz_host_module modules/mod_authz_host.so

什麼解決我的問題是下面

cd /usr/local/directadmin/custombuild 
./build update 
./build apache 
./build rewrite_confs 
+0

所以你又一次禁用了'mod_authz_host'? – slash