Apache安裝module 遇到config問題~ - Linux
By Isla
at 2010-05-05T18:06
at 2010-05-05T18:06
Table of Contents
小弟在CentOS5.4 64bit 安裝Modsecurity2.5.12
其為Apache 的WAF module但是在修改httpd.conf時一直遇到問題
主要參考此文章安裝
http://poweredbyapathy.com/centos-52-modsecurity-installation/
其中在修改httpd.conf的時候有寫入以下內容
# ModSecurity
行1 Include conf/modsecurity/*.conf
行2 LoadFile /usr/lib/libxml2.so
行3 LoadModule unique_id_module modules/mod_unique_id.so
行4 LoadModule security2_module modules/mod_security2.so
在重啟httpd服務時在行2及3會出現錯誤
行2錯誤訊息
Syntax error on line 215 of /etc/httpd/conf/httpd.conf: Cannot load
/usr/lib/libxml2.so into server: /usr/lib/libxml2.so: wrong ELF class:
ELFCLASS32
行3錯誤訊息
Starting httpd: httpd: apr_sockaddr_info_get() failed for TAS-09.localdomain
httpd: Could not reliably determine the server's fully qualified domain name,
using 127.0.0.1 for ServerName
有關行2的部份我確定路徑中有該檔案~但是不知道為何錯誤
行3的部份~是不是因為我的機器沒有dns所以無法正常運作呢?
請大家分享一下經驗吧~
已經爬文很久一直搞不定configure的設定讓httpd運作起來
感謝
--
其為Apache 的WAF module但是在修改httpd.conf時一直遇到問題
主要參考此文章安裝
http://poweredbyapathy.com/centos-52-modsecurity-installation/
其中在修改httpd.conf的時候有寫入以下內容
# ModSecurity
行1 Include conf/modsecurity/*.conf
行2 LoadFile /usr/lib/libxml2.so
行3 LoadModule unique_id_module modules/mod_unique_id.so
行4 LoadModule security2_module modules/mod_security2.so
在重啟httpd服務時在行2及3會出現錯誤
行2錯誤訊息
Syntax error on line 215 of /etc/httpd/conf/httpd.conf: Cannot load
/usr/lib/libxml2.so into server: /usr/lib/libxml2.so: wrong ELF class:
ELFCLASS32
行3錯誤訊息
Starting httpd: httpd: apr_sockaddr_info_get() failed for TAS-09.localdomain
httpd: Could not reliably determine the server's fully qualified domain name,
using 127.0.0.1 for ServerName
有關行2的部份我確定路徑中有該檔案~但是不知道為何錯誤
行3的部份~是不是因為我的機器沒有dns所以無法正常運作呢?
請大家分享一下經驗吧~
已經爬文很久一直搞不定configure的設定讓httpd運作起來
感謝
--
Tags:
Linux
All Comments
By Jacob
at 2010-05-09T21:09
at 2010-05-09T21:09
By Iris
at 2010-05-13T05:28
at 2010-05-13T05:28
Related Posts
ibus如何輸入全形符號?
By Daph Bay
at 2010-05-05T13:23
at 2010-05-05T13:23
lubuntu虛擬ip
By Sierra Rose
at 2010-05-05T11:44
at 2010-05-05T11:44
如何修改SUSE的BLACKLIST檔?
By Mia
at 2010-05-05T06:08
at 2010-05-05T06:08
ubuntu 10.04 64bit裝在32bit NB
By Christine
at 2010-05-05T00:59
at 2010-05-05T00:59
Fedora 13 beta 用 ADSL 上網
By Yedda
at 2010-05-05T00:44
at 2010-05-05T00:44