OS:紅帽企業Linux服務器版本6.4(聖地亞哥)的Apache 2.4.x的手動安裝在RHEL 6.4 - 沒有Apache模塊將在啓動加載
這個操作系統目前百勝安裝的Apache 2.2.15是。我需要最新的2.4.x分支,所以已經手動安裝它了。我注意到我承諾,包括拆包apr
和apr-util
源到事先在Apache源的完整過程,但我想下面是過程中最重要的部分:
GATHER LATEST APACHE AND APR
$ cd ~
$ mkdir apache-src
$ cd apache-src
$ wget http://apache.insync.za.net//httpd/httpd-2.4.6.tar.gz
$ tar xvf httpd-2.4.6.tar.gz
$ cd httpd-2.4.6
$ cd srclib
$ wget http://apache.insync.za.net//apr/apr-1.5.0.tar.gz
$ tar -xvzf apr-1.5.0.tar.gz
$ mv apr-1.5.0 apr
$ rm -f apr-1.5.0.tar.gz
$ wget http://apache.insync.za.net//apr/apr-util-1.5.3.tar.gz
$ tar -xvzf apr-util-1.5.3.tar.gz
$ mv apr-util-1.5.3 apr-util
INSTALL DEVEL PACKAGES
yum update --skip-broken (There is a dependency issue with the latest Chrome needing the latest libstdc++, which is not available for RHEL and CentOS)
yum install apr-devel
yum install apr-util-devel
yum install pcre-devel
INSTALL
$ cd ~/apache-src/httpd-2.4.6
$ ./configure --prefix=/etc/httpd --enable-mods-shared="all" --enable-rewrite --with-included-apr
$ make
$ make install
注:在時間運行上面的,
/etc/http
是空的。
這似乎一直很好,直到我嘗試啓動httpd服務。似乎每個模塊包括httpd.conf
失敗與mod_rewrite
類似這樣的消息:
httpd: Syntax error on line 148 of /etc/httpd/conf/httpd.conf: Cannot load /etc/httpd/modules/mod_rewrite.so into server: /etc/httpd/modules/mod_rewrite.so: undefined symbol: ap_global_mutex_create
我在httpd.conf
右走過啓用的模塊列表,並評論他們出一次一個。所有觸發錯誤如上,但「未定義的符號:值」通常是不同的(所以不總是ap_global_mutex_create
)。
我錯過了一個步驟嗎?雖然我在Google上發現了這個錯誤的一部分,但大部分解決方案圍繞着.so
文件無法訪問。這似乎並不是一個問題,模塊出現在/etc/http/modules
中。
注意:在上面運行時,
/etc/http
是空的。
如何使其自動啓動服務器?
make
步驟中收到此錯誤。 – vee對於汽車戰略請參閱此鏈接:http://serverfault.com/a/202886 –
@AntoineSubit偉大的職位。我遵循它爲RedHat,它運作良好。只是在步驟3中稍作修改。編譯'./configure --enable-so --enable-ssl --with-mpm = prefork --with-included-apr --with-included-apr-util' – Capricorn