Friday, June 20, 2008

Setting up apache with subversion in Linux


Steps for setting up apache with subversion [For debian system]
Step 1. Install apache [here 2.0.63] as
./configure --prefix=/usr/local/apache2 --with-port=2080 --enable-dav --enable-dav-fs --enable-rewrite --enable-so
make install
/usr/local/apache2/bin/apachectl start
/* make sure these packages are already installed in your system. Autoconf, libtool, phython 2, libxml, zlib, neon */
Install all packages from synaptic. Neon instructions can be get from
Step 2. Install subversion [here 1.4.2] as
./configure --with-apr=/usr/local/apache2 --with-apr-util=/usr/local/apache2
make install
Step 3. Make a repository
cd /var/
mkdir -p repo/source/
svnadmin create /var/repo/source
Step 4. Configure apache
Stop and edit http.conf file as
/usr/local/apache2/bin/apachectl stop
vi /usr/local/apache2/conf/httpd.conf
add this to bottom of http.conf

DAV svn
SVNPath /var/repo/source

Step 5. Restart apache and checkout. You will get
localhost:/usr/local/apache2# svn co http://localhost:2080/svn
Checked out revision 0.
In address bar also you can checkout. You’l get Revision 0: /
Thats all. Enjoy

No comments:

Post a Comment

Be nice. That's all.