Centos 6.3 subversion + usvn build a Version Management Server

Source: Internet
Author: User
Tags version control system fully qualified domain name

I. Introduction to subversion
Subversion is a free and open-source version control system. Under subversion management, files and directories can go beyond time and space. Subversion stores files in the central version library. This version library is similar to a common file server. The difference is that it can record every file and directory modification. In this way, you can recover the data to a previous version and view the data change details. Because of this, many people regard the version control system as a magic "time machine ".
2. Prepare the environment
Use 1 cent OS 6.3.

[[Email protected] ~] # Uname-
Linux yxp2p. Server 2.6.32-279. el6.x86 _ 64 #1 SMP Fri Jun 22 12:19:21 UTC 2012 x86_64 x86_64 x86_64 GNU/Linux

[[Email protected] ~] # Vim/etc/SELinux/config

Set SELinux = disabledt and disable SELinux after restart.

[[Email protected] ~] # Setenforce 0
Setenforce: SELinux is disabled

Check whether SELinux is disabled.

 

Iii. Installation

1. install required software
[[Email protected] ~] # Yum install subversion httpd mod_dav_svn PHP-mysql-Server Perl-DBI Perl-DBD-mysql-devel mod_auth_mysql

Check whether the Subversion is successfully installed, for example:

2. Start httpd and mysqld services

[[Email protected] ~] # Service httpd start
Starting httpd: cocould not reliably determine the server's fully qualified domain name, using yxp2p. server for servername
[OK]
[[Email protected] ~] # Service mysqld start
Starting mysqld: [OK]

 

Set the mysqld password after startup, which must be used later when usvn is installed

[[Email protected] ~] # Mysqladmin-u Root Password 123123

 

3. Configure startup

[[Email protected] ~] # Chkconfig svnserve on sets the svn service to start at random.

 

4. Configure usvn

[[Email protected] ~] # Wget https://github.com/usvn/usvn/archive/1.0.7.tar.gz

[[Email protected] ~] # Tar zxvf 1.0.7

[[Email protected] ~] # Music usvn-1.0.7 // home/webroot/usvn 

[[Email protected] ~] # Chown-r Apache: Apache/home/webroot/usvn

[[Email protected] ~] # Vim/etc/httpd/CONF/httpd. conf

Alias/usvn "/home/webroot/usvn/Public"
<Directory "/home/webroot/usvn/Public">

Options + symlinksifownermatch

AllowOverride all

Order allow, deny

Allow from all

</Directory>

Restart httpd after Configuration
[[Email protected] ~] # Service httpd restart
Use IE to open http: // 172.16.11.89/usvn/step by step. If you cannot open http: // 172.16.11.89/usvn/, check whether your iptables and SELinux are restricted.

 

When the above prompt appears, try to disable SELinux to see if it can be solved.

 

 

The following interface is displayed when the access is normal.

 

Step 4. If the default value is invalid, adjust it.

 

 
Change to the following path to proceed to the next step

 

My local repository address is/home/subversion. Pay attention to setting directory permissions.

[[Email protected] ~] # Mkdir-P/home/Subversion

[[Email protected] ~] # Chown-r Apache: Apache/home/Subversion

 

 

 
Change to the following path to proceed to the next step
Enter the mysqld username and password created above, and check "create database". If you have not installed PHP-PDO, an error is returned.

 

Create an account to log on to and manage usvn

 

 

 

Copy the following code to/etc/httpd/CONF/httpd. conf.

 

[[Email protected] usvn] # Vim/etc/httpd/CONF/httpd. conf

 

Click "connect to usvn" to log on.

 

Now the entire subversion and usvn are built. You need to use usvn to test whether users, user groups, and projects are created normally.

 

Reference link:

Http://wenku.baidu.com/link? Url = yKLV9Z1UyA3SCZqcZkDM0miWl5LWLgEJvOh_cY-iPQRIOP23sWg2sNgP_2-is2h_jeGyQfKYE0YSOL8ZMnf-ZlsQzGg-wISVWsU3FynUKwi

Http://wiki.ubuntu.org.cn/index.php? Title = Subversion

Http://wenku.baidu.com/view/b98a62cb4693daef5ef73d5d.html? Re = View

Http://zhumeng8337797.blog.163.com/blog/static/1007689142011341202582/

Http://wuyaweiwude.iteye.com/blog/1915064

Http://www.jb51.net/ OS /RedHat/73031.html

Http://www.linuxidc.com/Linux/2011-05/35626.htm

Centos 6.3 subversion + usvn build a Version Management Server

Related Article

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.