Go Back   SolidHost Forums Support Forums Tutorials / How to?

Thread Tools Display Modes
Old Sep 11th, 2007, 00:17   #1
Join Date: Jan 2007
Posts: 51
Default Subversion on a cPanel VPS guide

Hello all,

First of all, I would like to stress this is a work in progress and we strongly recommend you make a backup of your VPS before proceeding, In certain situations you may receive some errors even after you have followed all these steps. We will work with you to solve them and hopefully produce a solid guide with a list of potential errors.

1. Install subversion : This was really easy on centos, just use YUM
yum install subversion

2) Please check if "perl-URI" is installed or not. If its not there you can install it using
yum install perl-URI

3) The next thing was to create a repository.
cd /var/
mkdir -p repo/source/
svnadmin create /var/repo/source
With above commands you can create a subversion repo named source. You can check inside the directory if lot of files are created. If created subversion works fine.

4) Now we can proceed with apache 2 installation. I chose apache 2.0.59
wget http://mirror.candidhosting.com/pub/...-2.0.59.tar.gz
tar -zxvf httpd-2.0.59.tar.gz
cd httpd-2.0.59
./configure --prefix=/usr/local/apache2 --with-port=2080 --enable-dav --enable-dav-fs --enable-proxy --enable-rewrite --enable-so
make install
/usr/local/apache2/bin/apachectl start
Apache2 installed at port 2080 with dav , proxy and rewrite and started

5) Now we have to compile mod_svn for apache 2. For this you have to download the SVN source from the subversion site, first please check the version of subversion using yum
yum info subversion

Next download the same version of subversion source, untar it and need to compile mod_svn now:
./configure --with-apxs=/usr/local/apache2/bin/apxs
make install
Now mod_svn is installed and activated on apache2.

6) Configure apache 2 for svn. For this change the settings httpd.conf of apache 2. This file will be located here /usr/local/apache2/conf/httpd.conf
DAV svn
SVNPath /var/repo/source
Restart apache2 once you made the above changes. Now you should be able to see the svn files from this url http://localhost:2080/ or http://<serverip>:2080. You should be able to see the subversion files at revision 0. There is will be nothing in it as we have not added any files.

7) Now we have add proxy to apache 1.3 so that we can internally proxy the files between apache 2 and apache 1. You can download the source of currently installed apache 1.3 or you can find the same in /root/installd/buildapache/apache_1.3.xx/src/modules/proxy
Just goto that directory and run this command
/usr/local/apache/bin/apxs -i -c *.c
That will install mod_proxy to apache 1.3

8) You have add this setting to apache 1.3 conf file to proxy the http://localhost:2080/ in standard port 80 of some website.
Add these line to any virtual host present in the conf file.
LoadModule proxy_module modules/mod_proxy.so
AddModule mod_proxy.c
ProxyRequests Off
ProxyPass / http://locahost:2080/

Best Regards,
John Strong
SolidHost Chief Operational Officer

Last edited by SH-Samuel; Sep 30th, 2007 at 00:35.
SH-John is offline   Reply With Quote
Old Oct 8th, 2007, 17:30   #2
Join Date: May 2007
Posts: 14

If you want trac and subversion, an easier way is to add the DAG repos to your sources list and then run "yum install trac" this will install trac and all it's dependancies (which includes subversion).

Full Guide.

Just realised that this is for cPanel, the guide above will not work with cPanel because of it's dependency on Apache 1.x. It will work on systems that are running Apache 2.x however.
MrDoom is offline   Reply With Quote
Old Mar 23rd, 2010, 08:51   #3
Join Date: Mar 2010
Posts: 10
Default Hi,

Keep writing, I enjoy the Forum. Hope you're doing well.
Alexanderjhon is offline   Reply With Quote

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump

All times are GMT +2. The time now is 05:39.