Apache安裝module 遇到config問題~ - Linux

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運作起來

感謝

--

All Comments

Jacob avatarJacob2010-05-09
2是因為你用64bit但卻想載入32bit lib,改成
Iris avatarIris2010-05-13
/usr/lib64/XXXX.so試試。3是httpd沒有設定本機domain name