Install the SVN server on Fedora: 1. software Installation yum-yinstallhttpdsubversionmod_dav_svn2. create the SVNrepositories path under httpd3.root in the service and set the path permission: mkdir-p/var/lib/subversion/repositorieschown-Rapache: apache/var/li
Install the SVN server on Fedora:
1. Software Installation
Yum-y install httpd subversion mod_dav_svn
2. Enable httpd in the service
3. Create the SVN repositories path under root and set the path permission:
Mkdir-p/var/lib/subversion/repositories
Chown-R apache: apache/var/lib/subversion
4. Write a shell script and set the executable attributes, put them in/bin/make-repos, and run the SVN project, such as make-repos svn_prj.
#! /Bin/shif [$ #-ne 1]; then echo 1> & 2 Usage: $0 repository_name exit 127 fiecho "Sudoing... "; svnadmin create -- fs-type fsfs/var/lib/subversion/repositories/$ {1} chown-R apache: apache/var/lib/subversion/repositories/$ {1} chmod-R g + w/var/lib/subversion/repositories/$ {1} chmod g + s/var/ lib/subversion/repositories/$ {1}/db
5. vi/etc/httpd/conf. d/subversion. conf, add
DAV svn SVNParentPath/var/lib/subversion/repositories Satisfy Any AuthType Basic AuthName "subversion @ tming" AuthzSVNAccessFile/var/lib/subversion/access. auth AuthUserFile/var/lib/subversion/passwords Require valid-user
6. Create password file and access file:
$ Htpasswd-c/var/lib/subversion/passwords ming
$ Vi/var/lib/subversion/access. auth
[Svn_prj:/]
Ming = wr
7. Restart Apache
$/Etc/init. d/httpd restart