Setting up your Subversion server
1. Download and install Apache 2.2.14
2. Download and install Subversion 1.5.6
3. Edit your Apache httpd.conf file at [APACHE_ROOT]/conf/httpd.conf to add the following lines of code to the end of the file:
# Configure Subversion repository
#replace the path with your own one
DAV svn
SVNPath "[PATH_OF_INITIALIZED_REPOSITORY]"
AuthType Basic
AuthName "Subversion repository"
AuthUserFile "[PATH_OF_USER_CONFIGURATION_FILE]"
Require valid-user
And make sure that you have the following items uncommented or added:
LoadModule dav_module modules/mod_dav.so
LoadModule dav_fs_module modules/mod_dav_fs.so
LoadModule dav_lock_module modules/mod_dav_lock.so
LoadModule dav_svn_module modules/mod_dav_svn.so
You might need to fully restart Apache service or restart your computer to let this modification take effect.
For "[PATH_OF_INITIALIZED_REPOSITORY]", you need to initialize it by the following command:
svnadmin create "[PATH_OF_INITIALIZED_REPOSITORY]"
Do remember not to initialize the directory by TortoiseSVN, otherwise, you will get the following error:
[Sat Apr 03 09:27:45 2010] [error] [client 127.0.0.1] (20014)Internal error: Expected FS format between '1' and '3'; found format '4'
[Sat Apr 03 09:27:45 2010] [error] [client 127.0.0.1] Could not fetch resource information. [500, #0]
[Sat Apr 03 09:27:45 2010] [error] [client 127.0.0.1] Could not open the requested SVN filesystem [500, #160043]
[Sat Apr 03 09:27:45 2010] [error] [client 127.0.0.1] Could not open the requested SVN filesystem [500, #160043]
For "[PATH_OF_USER_CONFIGURATION_FILE]", you need to create it by using the following command:
htpasswd -cm "[PATH_OF_USER_CONFIGURATION_FILE]" username
Save and close the httpd.conf file, then restart Apache