The next thing you need to do is to create the actual repository from which you will check in and out your files.
#CONFIGURE SVN APACHE PASSWORD#
If you need to add users make sure you simply use the -m flag, and not the -c after the initial ~] htpasswd -cm /etc/svn-auth-conf yourusernameĪdding password for user ~] htpasswd -m /etc/svn-auth-conf anotherusername This creates the file and also encrypts the password with MD5.
Next we have to actually create the password file that you specified in the previous step. Make sure you save the file when you are finished editing. My examples are just that, so feel free to put things where you want. For instance: points to the SVNPath that you have specified. The location is what Apache will pass in the URL bar. # Add the following to allow a basic authentication and point Apache to where the actual LoadModule authz_svn_module modules/mod_authz_svn.so LoadModule dav_svn_module modules/mod_dav_svn.so # Make sure you uncomment the following if they are commented out Get yourself to the example configuration file Subversion installed for ~] cd ~] vim nf The next step is to setup some settings within Apache so Subversion and Apache play nice together. If you need more help or more complex configurations, then consult the Apache docs ~] vim /etc/httpd/conf/nf - Edit what you need and save the ~] service httpd ~] chkconfig httpd onīrowse to your machine on the network and see if you get your test page, which you should: Working? Great, let's move along to more fun things. You can easily let this out, however, if you want to allow access to the repos from everyone.įirst thing is make sure you open up /etc/httpd/conf/nf and at least change the ServerName directive. I'm also going to explain setting this up with basic password protection. I'm assuming this is a virgin installation, so if you already have Apache things going.be careful what you change. Depending on your packages, your mileage may vary.īefore you delve into the deep end, you need to ensure Apache is set up first. Some other things will be installed automatically.
#CONFIGURE SVN APACHE INSTALL#
When you install from yum, there's a longer list than the two packages above that will automatically resolve themselves. If you don't have Apache installed already, it'll go ahead and drag that down as well. The first thing to do is to install the packages I mentioned above.