1. apache安装包版本为:httpd-2.4.4.tar.gz
2. 使用--enable-modules=so安装的时候报如下错误:
mod_so can not be built as a shared DSO
3. 使用./configure --help 查看 --enable-modules发现已经没有so参数,有如下参数:
--enable-modules=MODULE-LIST
Space-separated list of modules to enable | "all" |
"most" | "few" | "none" | "reallyall"
4. 使用--enable-modules=all即可,编译安装成功。如:
./configure --prefix=/app/apache --with-apr=/app/apr --with-apr-util=/app/apr-util --enable-modules=all --enable-rewrite
make && make install
编译安装成功。
转载于:https://blog.51cto.com/miniidea/1210518