1.安装apache
1.1 apache安装
tar jxvf apr-1.4.6.tar.bz2
[root@open-source src]# cd apr-1.4.6
[root@open-source apr-1.4.6]# ./configure --prefix=/usr/local/apr
[root@open-source apr-1.4.6]# make && make install
[root@open-source src]# tar zxvf apr-util-1.3.9.tar.gz
[root@open-source src]# cd apr-util-1.3.9
[root@open-source apr-util-1.3.9]# ./configure --prefix=/usr/local/apr-util --with-apr=/usr/local/apr
[root@open-source apr-util-1.3.9]# make && make install
[root@open-source src]# tar zxvf httpd-2.4.7.tar.gz ^C
[root@open-source src]# cd httpd-2.4.7
[root@open-source httpd-2.4.7]# ./configure --prefix=/usr/local/app/apache2 --enable-dav --enable-so --enable-maintainer-mode\
--enable-maintainer-mode --enable-rewrite --with-apr=/usr/local/apr --with-apr-util=/usr/local/apr-util \
--with-pcre=/usr/local/pcre
[root@open-source httpd-2.4.7]# make && make install
测试apache配置文件时提示没有mod_dav_svn.so和mod_auth_svn.so模块,这两个模块要去svn源码目录下去拷贝
[root@open-source ~]# /usr/local/app/apache2/bin/apachectl -t
httpd: Syntax error on line 153 of /usr/local/app/apache2/conf/httpd.conf: Cannot load modules/mod_dav_svn.so into server:
/usr/local/app/apache2/modules/mod_dav_svn.so: cannot open shared object file: No such file or directory
httpd: Syntax error on line 154 of /usr/local/app/apache2/conf/httpd.conf: Cannot load modules/mod_authz_svn.so into server:
/usr/local/app/apache2/modules/mod_authz_svn.so: cannot open shared object file: No such file or directory