Apache + SVN + Cpanel

Steps:-

1) recompile Apache 2 using /scripts/easyapache and enable DAV,DAVFs modules in it

2) Get the versions of subversion,mod_dav in the OS . For example let it be 1.4.3 <remove the existing subversion and mod_dav_svn rpm’s and reinstall it using yum >

3)download the SVN source

http://subversion.tigris.org/servlets/ProjectDocumentList?folderID=260&expandFolder=74

<if the subversion version in the server is 1.4.3 then download the source subversion-deps-1.4.3.tar.bz2

4)untar the zip file

cd subversion 1.4.x./configure –with-apxs=/usr/local/apache/bin/apxs
make
make install

5)After this step the dav module get loaded in the Apache , You can see the following directives in httpd.conf <make sure these directives there in the httpd.conf>

LoadModule dav_svn_module modules/mod_dav_svn.so
LoadModule authz_svn_module modules/mod_authz_svn.so

<Directory “/var/svn/”>
Options +Indexes FollowSymLinks
</Directory>
Alias /svn/ /var/svn/

6)create the repository using the svnadmin command ,<make sure to change ownership #chown nobody.nobody /svn/repo >

and the add the entry in httpd.conf , here i have created the repositroy in /svn/repo

<location /reposotory>
DAV svn
SVNPath /var/svn/repo
</location>

7)Restart httpd in the server .

Advertisements
1 comment

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: