To configure the SVN server under Fedora 10 _linux

Source: Internet
Author: User
Tags svn svn client iptables server port
SVN server has 2 modes of operation: Standalone server and Apache. Each of the 2 ways has its pros and cons.

SVN stores version data in 2 different ways: BdB and Fsfs. Because the BDB way in the server interruption, it is possible to lock the data (I am in the LDAP when the damage, can not be cured), so it is safer to Fsfs way.

1. Install Subversion:

Yum Install subversion.i386

(Note: URPMI subversion subversion-server Subversion-tool required to be installed under Mandriva)

2, create Subversion version library, and modify permissions

# mkdir-p #SVNPATH/repos

# svnadmin Create #SVNPATH/repos/project1

3. Start Subversion service and set version library location

# svnserve--daemon--root= #SVNPATH/repos--listen-port=3690

Note: The root user boot service is not recommended, with the default port number of 3690

4.# Yum List mod_dav_svn

Note: MOD_DAV_SVN-related package mod_dav_svn.i386 can be found and installed mod_dav_svn.i386

# yum Install mod_dav_svn.i386

Note: After the installation is complete, you can find that the subversion.conf file is automatically generated under the/etc/httpd/conf.d folder, and the following two lines are automatically added:

LoadModule Dav_svn_module modules/mod_dav_svn.so

LoadModule Authz_svn_module modules/mod_authz_svn.so

Will...... Change the content between the following:

DAV SVN

Svnpath #SVNPATH/repos/project1

5, restart the Apache service

# apachectl Restart

6, modify SELinux permissions

# chcon-r-h-u system_u-t httpd_sys_content_t #SVNPATH/repos

7. Can use #lsof-i:3690 to see whether to open

8. Modify configuration file/home/svnroot/repository/conf/svnserve.conf

[General]

#匿名访问的权限, can be read,write,none, default to read

Anon-access = None

#认证用户的权限, can be read,write,none, default to write

auth-access = Write

#密码数据库的路径, get rid of the front #

Password-db = passwd

#用户操作权限 #

Authz-db = Authz

Modify configuration file passwd

[Users]

user = Passwod

User1 = Password1

Modify configuration file Authz

[test1:/]

user = RW

[Test1:/doc]

User1 = RW

9. For a single code warehouse

Start command svnserve-d-r/home/svnroot/repository/test1--listen-host 192.168.1.18

Where-D is run in the background,-r specifies the root directory of the server, so that it can be accessed directly using the SVN://server IP when accessing the server. If the server has multiple IP--listen-host to specify the IP address of the listener.

We can access the SVN server via svn://192.168.1.18 in the SVN client.

For multiple code warehouses, we can also use the-r option at boot time to specify the server root directory, but we need to write the relative path of each warehouse relative to the SVN root directory at the time of the access.

For example, we have two code warehouses/home/svnroot/repository/test1 and/home/svnroot/repository/test2, we use svnserve-d-r/home/svnroot/ Repository--listen-host 192.168 1.18来 boot, you can access two projects with Svn://192.168.1.18/test1 and svn://192.168.1.200/test2 on client access

After startup is complete, we can use PS Aux|grep svnserv to see if there is a svnserve process.

10. Open Server Port

The SVN default port is 3690 and you need to open the port on the firewall.

/sbin/iptables-a input-i eth0-p TCP--dport 3690-j ACCEPT

/sbin/service iptables Save

You can also use the Svnserve--listen-port option to specify a port that is already open, but in this case the client must also add ports, such as svn://192.168.1.18:9999/.

11.yum has an interesting usage: Yum whatprovides mod_dav_svn.so

12. To install mod_dav.so under Mandriva, you can use URPMI apache-mod_dav_svn

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.