Are you looking forward to install Apache Subversion on Windows so as to perform SVN software installation? Have you ever been anticipated that how to install Apache Subversion on Windows?
The subversion is a user-friendly control system that can excellently cater to your needs. This version runs well on both Unix and Windows and over HTTPS and HTTP, which is immensely efficient for development teams that work offsite.
The setting up can be quite tricky, especially for first-timers, thus down below is a quick step-by-step process for those who have little to no time to go over the complicated process of setting up the Apache Subversion on Windows.
You may install the subversion in any directory. To follow, you must then add a bin sub-directory that leads you to the environment path.
For a clearer instruction, for example, if you had the subversion installed in ‘C:/programs/programming/svn-win32-1.4.0’, then proceed to Start > Settings > Control Panel > System. Then, select the Environment Variables under the Advanced tab.
Next, you must create a new directory that will contain all repositories of your source control, and to do so, you must follow these exact steps:
Afterward, you may now install the Apache server. To do so, within the installation for the subversion, you must proceed to the bin directory and look for two files with the '* .so' extension and move them into the Apache/modulesdirectory.
Then, in the conf subdirectory of the installation directory for Apache, open in any text editor the file named httpd.conf and add the code lines listed below:
LoadModule dav_module modules/mod_dav.so
LoadModule dav_svn_module modules/mod_dav_svn.so
LoadModule authz_svn_module modules/mod_authz_svn.so
Afterward, the following code block must be added as well:
SVNParentPath c:/svnroot/ *specify the roots of the repositories*
#(list down repositories)
SVNListParentPath on
#(access control policy)
AuthzSVNAccessFile bin/apachesvnauth *authentication file*
*path containing the policies*
AuthType Basic *authentication type*
AuthName "Subversion repository" *authentication name*
*repository realm name*
AuthUserFile bin/apachesvnpasswd *file containing values of the user passwords*
Require valid-user *authorized users’ permit to log-in*
Using the command prompt once again, type in this command with the preferred username: htpasswd.exe -c apachesvnpasswd user1, and then a file named 'apachesvnpsswd' should be created under the bin subdirectory. You will be directed to generate a password for the user1 or any username you typed down.
To create another user, use the same command but without the '-c' and type down a new username.
At this point, you may now test your subversion and run your Apache by entering this or something similar on your web browser: http://localhost:8080/svn/. If no errors are detected, then a window should pop up on the screen asking you to enter your username and password.
Type down your username and password, and you should be directed to a page that looks like this:
With that, you have successfully installed the Apache Subversion on your Windows.
It is recommended for you to use the Windows 2003 Server for production setups. Also, suppose the steps still seem a bit too complicated for you.
In that case, you may want to practice the process on a virtual machine such as the VMWare, which gives you the chance to take shots of your system. You could quickly get back to the previous version, in case you encounter any problems or errors in the future.