1. Preparations
Bytes
Note: There are requirements for versions between components. If the installation fails, try other versions. The installation is successful in the above versions.
2. install Apache
Tar zvxf apr-1.3.6.tar.gz
./Configure -- prefix =/usr/local/apr
Make & make install
Tar zvxf apr-util-1.3.8.tar.gz
./Configure -- prefix =/usr/local/apr-util
Make & make install
Tar zvxf sqlite-3.6.19.tar.gz
./Configure -- prefix =/usr/local/sqlite
Make & make install
Tar jvxf httpd-2.2.12.tar.bz2
. /Configure -- prefix =/usr/local/apache2/-- enable-dav -- enable-so -- enable-modules = most -- with-apr =/usr/local/apr --- apr-util =/usr/local/apr-util/
Make & make install
(Note that you must have the -- enable-dav -- enable-so parameter)
After installing apache, run #/usr/local/apache/bin/apachectl start
Start apache
3. Install svn (subversion)
Note: Check whether svn has been installed. If svn has been installed, uninstall it.
# Yum erase subversion
Tar jvxf subversion-1.6.5.tar.bz2
Note: copy the decompressed sqlite file to the current subversion-1.6.5 source code directory. Otherwise, the undefined symbol: sqlite_open_v2 error may occur.
Mv sqlite-3.6.19 subversion-1.6.5/sqlite-amalgamation
. /Configure -- prefix =/usr/local/svn -- with-apxs =/usr/local/apache2/bin/apxs -- with-apr =/usr/local/apr --- apr-util =/usr/local/apr-util -- with-ssl -- enable-maintainer-mode
Make & make install
Check whether/usr/local/apache/conf/httpd. conf is successfully installed on the two dynamic libraries.
If the following two modules are found, the installation is successful.
LoadModule dav_svn_module modules/mod_dav_svn.so
LoadModule authz_svn_module modules/mod_authz_svn.so
4. Configure SVN
Edit/usr/local/apache/conf/httpd. conf
Add:
Group svnadmin
User svnadmin
<Location/svn>
DAV svn
SVNParentPath/svn
AuthType Basic
AuthName "svn repository"
AuthUserFile/etc/svn-auth-file
AuthzSVNAccessFile/etc/svn-access-file
Require valid-user
</Location>
Create SVN account and access control file
Groupadd svnadmin
Useradd-g svnadmin
Htpasswd-cm/etc/svn-auth-file admin create the first user
Htpasswd-m/etc/svn-auth-file dev
Htpasswd-m/etc/svn-auth-file test
...
Edit/etc/svn-access-file
[Groups]
Admin = admin
Devs = dev, test
[/]
@ Admin = rw
@ Devs = r
[Myrepos:/]
@ Devs = rw
Create a version library myrepos
Svnadmin create/svn/myrepos
Chown-R svnadmin. svnadmin/svn
Test: Use a url to access the myrepos version Library
Http://www.bkjia.com/myrepos.
Login successful after entering the account password
From the column xabc3000