Operating System: Centos6.3 X64
Latest resource package:
Apr-1.5.1.tar.gz
Apr-util-1.5.3.tar.gz
Pcre-8.35.tar.gz
Zlib-1.2.8.tar.gz
Httpd-2.4.9.tar.gz
Sqlite-autoconf-3080403.tar.gz
Subversion-1.8.9.tar.gz
Subversion-deps-1.6.9.tar.gz
1. Compile the dependent Library
1. apr
Tar-zxf apr-1.5.1.tar.gz
Cd apr-1.5.1
Vi configure
Locate $ RM "$ pipeline file" and add # comment out the above
./Configure -- prefix =/home/rely/apr
Make & make install
2. apr-util
Tar-zxf apr-util-1.5.3.tar.gz
Cd apr-util-1.5.3
./Configure -- prefix =/home/rely/apr-util -- with-apr =/home/rely/apr
Make & make install
3. zlib
Tar-zxf zlib-1.2.8.tar.gz
Cd zlib-1.2.8
./Configure -- prefix =/home/rely/zlib
Make & make install
4. prce
Tar-zxf pcre-8.35.tar.gz
Cdpcre-8.35
./Configure -- prefix =/home/rely/prce
Make & make install
Ii. install apache
1. Compile httpd
Tar-zxf httpd-2.4.9.tar.gz
Cd httpd-2.4.9
. /Configure -- prefix =/home/apache -- with-apr =/home/rely/apr/bin/apr-1-config -- with-apr-util =/home/rely/apr-util/ bin/apu-1-config -- enable-so -- enable-dav -- enable-maintainer-mode -- enable-rewrite -- with-pcre =/home/rely/pcre/bin/pcre-config
Make & make install
2. Configure apache
Vi/home/apache/conf/httpd. conf
Add ServerName localhost: 80 under # ServerName ......
3. Start apache
Cd/home/apache/bin
./Apachectl start
4. Add apache as auto-start
Echo "/home/apache/bin/apachectl start">/etc/rc. loacl
OK! Apache installation complete
Iii. Install SVN
1. Compile sqlite
Tar-zxf sqlite-autoconf-3080403.tar.gz
Cdsqlite-autoconf-3080403
./Configure -- prefix =/home/sqlite
Make & make install
2. Compile subversion
Tar-zxf subversion-1.8.9.tar.gz
Cd subversion-1.8.9
. /Configure -- prefix =/home/svn/server -- with-apxs =/home/apache/bin/apxs -- with-apr =/home/rely/apr/bin/apr-1-config -- with-apr-util =/home/rely/apr-util/bin/apu-1-config -- without-berkeley-db -- with-openssl -- enable-maintainer-mode -- with-sqlite =/ home/sqlite -- with-zlib =/home/rely/zlib
Make & make install
3. Check whether mod_authz_svn.so and mod_dav_svn.so are available in the apache/modules directory.
If not, check whether the svn installation is correct, or find the two problems under the binexec directory under the svn installation directory, cp to apache/modules
Vi/apache/conf/httpd. conf
Make sure LoadModule dav_module modules/mod_dav.so is not commented out
Add the following two sentences after the previous sentence:
LoadModule dav_svn_module modules/mod_dav_svn.so
LoadModule authz_svn_module modules/mod_authz_svn.so
4. Add Environment Variables
Vi/etc/profile
Add PATH = $ PATH:/home/svn/server/bin at the end
Export PATH
Activate the environment variable source/etc/profile
5. svn -- version
If the version information is output, the installation is successful.