[問題]啓動APACHE無法啓動

這個版面主要討論 debian 在 server 端的應用問題, server 種類繁多..舉凡 Web Server 、 File Server、 DHCP Server..等等。

版主: 阿信

[問題]啓動APACHE無法啓動

文章cweijen » 週四 2月 12, 2004 6:39 pm

#這是啓動時的錯誤訊息
[Thu Feb 12 00:22:51 2004] [warn] module config_log_module is already loaded, skipping
[Thu Feb 12 00:22:51 2004] [warn] module mime_magic_module is already loaded, skipping
[Thu Feb 12 00:22:51 2004] [warn] module mime_module is already loaded, skipping
[Thu Feb 12 00:22:51 2004] [warn] module negotiation_module is already loaded, skipping
[Thu Feb 12 00:22:51 2004] [warn] module status_module is already loaded, skipping
[Thu Feb 12 00:22:51 2004] [warn] module autoindex_module is already loaded, skipping
[Thu Feb 12 00:22:51 2004] [warn] module dir_module is already loaded, skipping
[Thu Feb 12 00:22:51 2004] [warn] module cgi_module is already loaded, skipping
[Thu Feb 12 00:22:51 2004] [warn] module userdir_module is already loaded, skipping
[Thu Feb 12 00:22:51 2004] [warn] module alias_module is already loaded, skipping
[Thu Feb 12 00:22:51 2004] [warn] module rewrite_module is already loaded, skipping
[Thu Feb 12 00:22:51 2004] [warn] module access_module is already loaded, skipping
[Thu Feb 12 00:22:51 2004] [warn] module auth_module is already loaded, skipping
[Thu Feb 12 00:22:51 2004] [warn] module expires_module is already loaded, skipping
[Thu Feb 12 00:22:51 2004] [warn] module unique_id_module is already loaded, skipping
[Thu Feb 12 00:22:51 2004] [warn] module setenvif_module is already loaded, skipping
[Thu Feb 12 00:22:51 2004] [warn] module php4_module is already loaded, skipping
Syntax error on line 329 of /etc/apache/httpd.conf:
Invalid command 'Order', perhaps mis-spelled or defined by a module not included in the server configuration


這是我啓動APACHE時出現了這些錯誤,昨天找了一整天,找不出解答來,請問這是怎麼回事丫.謝謝

#/etc/apache/httpd.conf

ServerRoot /etc/apache

LoadModule php4_module /usr/lib/apache/1.3/libphp4.so
LoadModule config_log_module /usr/lib/apache/1.3/mod_log_config.so
LoadModule mime_magic_module /usr/lib/apache/1.3/mod_mime_magic.so
LoadModule mime_module /usr/lib/apache/1.3/mod_mime.so
LoadModule negotiation_module /usr/lib/apache/1.3/mod_negotiation.so
LoadModule status_module /usr/lib/apache/1.3/mod_status.so
LoadModule includes_module /usr/lib/apache/1.3/mod_include.so
LoadModule autoindex_module /usr/lib/apache/1.3/mod_autoindex.so
LoadModule dir_module /usr/lib/apache/1.3/mod_dir.so
LoadModule cgi_module /usr/lib/apache/1.3/mod_cgi.so
LoadModule userdir_module /usr/lib/apache/1.3/mod_userdir.so
LoadModule alias_module /usr/lib/apache/1.3/mod_alias.so
LoadModule rewrite_module /usr/lib/apache/1.3/mod_rewrite.so
LoadModule access_module /usr/lib/apache/1.3/mod_access.so
LoadModule auth_module /usr/lib/apache/1.3/mod_auth.so
LoadModule expires_module /usr/lib/apache/1.3/mod_expires.so
LoadModule unique_id_module /usr/lib/apache/1.3/mod_unique_id.so
LoadModule setenvif_module /usr/lib/apache/1.3/mod_setenvif.so
LoadModule php4_module /usr/lib/apache/1.3/libphp4.so
LoadModule perl_module /usr/lib/apache/1.3/mod_perl.so

DocumentRoot /home/http/

#這裡是329行
<Directory /home/http/>
Options Indexes Includes FollowSymLinks MultiViews
AllowOverride None
Order allow,deny
Allow from all
</Directory>

<Directory /home/http/*/public_html>
AllowOverride FileInfo AuthConfig Limit
Options MultiViews Indexes SymLinksIfOwnerMatch IncludesNoExec
<Limit GET POST OPTIONS PROPFIND>
Order allow,deny
Allow from all
</Limit>
<Limit PUT DELETE PATCH PROPPATCH MKCOL COPY MOVE LOCK UNLOCK>
Order deny,allow
Deny from all
</Limit>
</Directory>

<IfModule mod_perl.c>
<IfModule mod_alias.c>
Alias /perl/ /home/http/perl/
</IfModule>
<Location /perl>
SetHandler perl-script
PerlHandler Apache::Registry
Options +ExecCGI
</Location>
</IfModule>>
頭像
cweijen
可愛的小學生
可愛的小學生
 
文章: 87
註冊時間: 週一 12月 22, 2003 5:04 pm

re:[問題]啓動APACHE無法啓動

文章kahn » 週四 2月 12, 2004 6:46 pm

apache 的modules 不是改成在/etc/apache/modules.conf 這檔下了嗎?
小弟的apache 版本是 1.3.29.0.1-3
或是試試 dpkg-reconfigure apache
頭像
kahn
活潑的高中生
活潑的高中生
 
文章: 350
註冊時間: 週三 9月 04, 2002 10:52 pm
來自: 彰化

re:[問題]啓動APACHE無法啓動

文章cweijen » 週四 2月 12, 2004 7:59 pm

謝謝kahn兄...似乎因為重覆載入模組的關係...
因為,起先已在這行中載入了模組,
Include /etc/apache/modules.conf
但是我把他最先httpd.conf的示範檔的mark給刪了
所以他重覆載入,而且我還沒發現原因時,又自行加入了模組設定
照成多次載入...

但是在錯誤訊息裡,他說"Order" 拚錯或者定義模組錯誤這是怎麼回事丫....
Syntax error on line 329 of /etc/apache/httpd.conf:
Invalid command 'Order', perhaps mis-spelled or defined by a module not included in the server configuration
頭像
cweijen
可愛的小學生
可愛的小學生
 
文章: 87
註冊時間: 週一 12月 22, 2003 5:04 pm


回到 debian server

誰在線上

正在瀏覽這個版面的使用者:沒有註冊會員 和 1 位訪客