How to install and configure Subversion server
To install Subversion server and set authentication by password:
- Download the installation file of CollabNet Subversion Server from the official Web site http://www.collab.net/.
- Run the file and install the server. For more details see Subversion 1.8.13 + Apache Server (Windows 32-bit) and Apache Server for Subversion 1.8.13 (Linux x86_64) documents. It is not recommended to unset the Install svnserve to run as Windows service flag during the installation process (for the Windows service installation).
- Run the shell, then go to the directory where the CollabNet Subversion Server is installed (for Windows OS the default directory is C:\Program Files\CollabNet\Subversion Server).
- Run the svnadmin create command and specify the path that has been set in the Repository Path parameter during the CollabNet Subversion Server installation. For example, the svnadmin create C:\radinsk_repository command creates the repository structure in the C:\radinsk_repository directory (for the Windows OS). For the Linux OS the same command looks as follows: svnadmin create /home/nataly/radinsk_repository. After executing this command the repository URL should look like follows: svn://localhost/.
- Edit the SVN configuration files located in the conf subdirectory of the created repository (for example, C:\radinsk_repository\conf):
- in the svnserve.conf file, uncomment the anon-access, auth-access, password-db, realm parameters and define them as follows:
anon-access = readauth-access = writepassword-db = passwdrealm = Radinsk Repository (or any other repository, this name will be required when authorizing on the Subversion server.)
- in the passwd file, add a user creation line in the following format: <user login> = user password (for example, admin = admin)
- in the svnserve.conf file, uncomment the anon-access, auth-access, password-db, realm parameters and define them as follows:
- Edit the Apache HTTP Server configuration file (in Windows OS its located in the C:\Program Files\CollabNet\Subversion Server\httpd\conf\httpd.conf) as follows:
<Location /svn>DAV svn# In Windows OSSVNPath C:\radinsk_repository# In Linux OS# SVNPath /home/nataly/radinsk_repository</Location>
- Restart the CSVNsvnserve service from the command line by using the following commands:
net stop CSVNsvnservenet start CSVNsvnserve