Original
> Ubuntu 10.4 lts
1. install Apache
Sudo apt-Get install apache2
2. Install SVN
Sudo apt-Get install Subversion
Sudo apt-Get install libapache2-svn
3. Create a folder for the svn Repository
Sudo mkdir/var/SVN
4. Use the svn command to create a storage warehouse
Sudo svnadmin create/var/SVN
* Then we can see that some files and folders are added to the svn directory.
5. Authorize the repository directory to Apache for read/write.
Sudo chown-r www-data: www-data/var/SVN
6. Open the Apache configuration file and modify the configuration of dav_svn.conf.
Sudo Vim/etc/apache2/mod-available/dav_svn.conf
Add the content (or remove the comments from the Front)
<Location>
Dav SVN
Svnpath/var/SVN
Authtype basic
Authname "My subversion repository"
Authuserfile/var/SVN/CONF/passwd
#
Require valid-user
#
</Location>
7. Add users to SVN
Sudo htpasswd-C/var/SVN/CONF/passwd Username
* Enter the password twice.
8. Restart the apache service.
Sudo/etc/init. d/apache2 restart
9. Next, enter
Http: // 127.0.0.1/SVN
Enter the username and password to view the svn repository!