## SVN Management

Managing SVN Server
svnadmin is a management tool that can be used to manage any svn repository. When using svnadmin it is necessary to include the directory of the target repository.

Use:
svn [cmd] appears to be for client actions

Setting Up SVN
• Install subversion.
• Put the bin folder (C:\program files\subversion\bin) in the path system variable
• Decide the location of the repository on disk and make the appropriate folders. (mkdir c:\svn\repository)
• Create the repository (svnadmin create c:\svn\repository)
• Open the apache configuration file httpd.conf (c:\apache\conf\httpd.conf)
• Make sure that the module mod_dav is loaded in httpd.conf and that the module file is also present under modules directory.
• Add the following to the httpd.conf file (if necessary add it under the appropriate virtual host)

DAV svn
SVNPath c:\svn\repository
AuthType Basic
AuthName "Name of Authentication popup window"
AuthUserFile c:\path\to\auth\file probable c:\svn\svn_apache_auth
Require valid-use
• Create the auth file
htpasswd -cmd c:\svn\svn_apache_auth {user-name}
-c
option creates a new htpasswd file.
-m
encrypts the password with an MD5 algorithm.
-d
encrypts the password with a CRYPT algorithm.
**Note don't use -c after the file has been created when wishing to add additional users
Start the subversion server

Your Subversion client software will need a server with which it can talk. This is the svnserve executable. It's also possible to go directly to your file system and not use a server, but we're going to set this up so that you can access your files from other machines on your network. The -d option tells svnserve to run as a daemon.

<![CDATA[
]]>

    echo "I like PHP";

svnserve -d -r c:\svn-repo


Deleting a Repository
the correct way to delete a repository is just to delete the directory it's stored in.