cd /opt
wget http://subversion.tigris.org/downloads/subversion-1.6.5.tar.gz
wget http://subversion.tigris.org/downloads/subversion-deps-1.6.5.tar.gz
tar -xzf subversion-1.6.5.tar.gz
tar -xzf subversion-deps-1.6.5.tar.gz
cd subversion-1.6.5
[ ./configure --prefix=/opt/svn --with-apxs=/usr/local/apache/bin/apxs --with-apr=/usr/local/apache/bin/apr-1-config --with-apr-util=/home/cpeasyapache/src/httpd-2.2.13/srclib/apr-util --with-ssl ]
make
make install
svnadmin create testrepo
Now create the SVN auth file using the below command :
htpasswd -cm .svn.htpasswd <svnuser> —–> Create password
NOTE : htpasswd -m .svn.htpasswd <svnuser> ——> Modify password
vi /usr/local/apache/conf/httpd.conf
Include the below line under the conf file for that particular domain.
Include "/usr/local/apache/conf/userdata/std/2/USERNAME/DOMAIN.COM/*.conf"
Now edit
vi /usr/local/apache/conf/userdata/std/2/USERNAME/DOMAIN.COM/svn.conf and add the below lines
=============================================================
<Location /reponame> DAV svn SVNListParentPath on SVNPath /home/USERNAME/REPO_NAME AuthType Basic AuthName “Subversion" AuthUserFile "/home/USERNAME/svn-auth-file" Require valid-user </Location>
===================================================================
Restart httpd
NOTE:
1) MAKE SURE THE REPO IS CREATED OUTSIDE PUBLIC_HTML FOLDER
2) CHECK MOD_SEC RULES ARE CREATING ANY PROBLEM
tail -f /usr/local/apache/logs/error_log« Prev:How to install APC Enable shell fork bomb:Next »