Download Apache, subversion, tortoisesvn
I used:
Svn-win32-1.4.2.zip
TortoiseSVN-1.4.1.7992-win32-svn-1.4.2.msi
Apache_2.0.59-win32-x86-no_ssl.msi
1. install Apache
2. Unzip the subversion (some installation files, my E: \ svn-win32-1.4.2)
3. Run cmd to unzip the directory.
4. initialize repository. Run the svnadmin create d: \ testrepository \ command to create the testrepository directory and project container.
5. Copy the 4 files in the decompressed directory to the Apache directory:
E: \ svn-win32-1.4.2 \ bin
Mod_authz_svn.so
Mod_dav_svn.so
Intl3_svn.dll
Libdb44.dll
To:
C: \ Program Files \ apache group \ apache2 \ modules
6.
C: \ Program Files \ apache group \ apache2 \ conf httpd. conf file
Add the following in loadmodule:
Loadmodule dav_module modules/mod_dav.so
Loadmodule dav_fs_module modules/mod_dav_fs.so
Loadmodule dav_svn_module modules/mod_dav_svn.so
Loadmodule authz_svn_module modules/mod_authz_svn.so
Restart Apache
7.
Apache and subversion have been installed, but Apache does not know how to process subversion clients like tortoisesvn. To let Apache know which URL will be used by subversion, edit the Apache configuration file (usually in c: \ Program Files \ apache group \ apache2 \ conf \ httpd. conf ):
7.1
To create a passwd file, open the command line (CMD) and switch the current directory to The apache2 directory (usually c: \ Program Files \ apache group \ apache2 ), run the following command to create a file:
Create a passwd file under the command line and store a username named user1. Apache prompts you to enter the password:
C: \ Program Files \ apache group \ apache2 \ bin> htpasswd-c d: \ svnpassword \ passwd user1
Automatically using MD5 format.
New Password :*****
Re-type new password :*****
Adding password for user user1
C: \ Program Files \ apache group \ apache2 \ bin>
7.2
Add the following lines at the end of the configuration file:
<Location/SVN>
Dav SVN
Svnparentpath D: \ testrepository
Authtype basic
Authname "Subversion repositories"
Authuserfile D: \ svnpassword \ passwd
Require valid-user
</Location>
This configuration indicates that all your version libraries will be located in the D: \ testrepository directory. to access your version library, you can use the URL: http: // 192.168.0.205/SVN/testrepository enter the username and password so that you can see the content in the version Library (unfortunately, there is nothing in the version Library ), the access permission is restricted by the user name/password in the passwd file.
Restart the apache service.
Http: // 192.168.0.205/SVN/testrepository
8. Install tortoisesvn
You can use it now.