Archive for the ‘Operating Systems’ Category

Installing SVN and Apache on Centos 5

Having done this many times already, here’s a quick recipe for putting Subversion (with Apache) on a fresh install of CentOS 5.5. It assumes you will put your repositories into /var/svn/repositories, the user credentials are held in /var/svn/passwords, you will have a user called testuser and an initial blank repository called myrepos. I’ll also assume your server is called svn.example.com. The procedure also opens port 80 in the iptables firewall. Edit the details to suit your own requirements:

# yum install httpd subversion mod_dav_svn # mkdir -p /var/svn/repositories # chown -R apache:apache /var/svn # chcon -R -h -t httpd_sys_content_t /var/svn # htpasswd -c /var/svn/passwords testuser * enter password for 'testuser' (twice) # vi /etc/httpd/conf.d/subversion.conf Changes: * Uncomment the <Location> config [click title to read more...]