How to install SVN server with USVN, Apache, mod_dav_svn on CentOS 6

How to install SVN server with USVN, Apache, mod_dav_svn on CentOS 6

Introduction

Apache Subversion (SVN) is an open source version control system. It is used by developers to maintain versions of files such as source code, documents, web pages etc.

USVN stands for User-Friendly SVN. It is a web interface written in PHP used to configure subversion repositories. Its goal is to eliminate using command line interface for creation of new SVN projects and users.

In this guide we will install SVN server with Apache, mod_dav_svn and USVN web interface for user and repository management.

 

 We can install SVN on your VPS or dedicated server just for $40. Click here too order SVN server installation service.


Step 1: Install Basic Packages

We will install LAMP, additional module for Apache (mod_dav_svn), Subversion and several useful utilities like (wget and unzip).

We use the following software versions:

- Apache/2.2.15

- PHP 5.3.3

- mysql,version  5.1.73

- svn, version 1.6.11

- USVN, version: 1.0.7

Set all services to start automatically after system reboot:

Step 2: Create System User for USVN

Step 3: Download and Install USVN Code

 Add “apache” user to “usvnuser” group:

Step 4: Disable SELinux

 and reboot your VPS.

Step 5: Configure Apache Virtual Host for USVN

Edit apache configuration file and put VirtualHost config for USVN there. Replace usvn.example.com with your domain.

 save httpd.conf file and restart httpd daemon:

 

 To start the installation USVN via web-interface we need to fix a bug in app/bootstrap.php.

find this  line:

 and change it to:

 

Now, try opening URL http://usvn.myexample.com. If everything is configured correctly you will see the setup wizard:

1

Step 6: Follow USVN Installation Wizard

3
Select your language and time zone:

4
Accept the CeCILL FREE SOFTWARE LICENSE:

5
Create directory named “files” in /home/usvnuser/public_html/, change owner to “usvnuser” and set 777 permissions to allow Apache write access to that directory.

General configuration settings. You can keep default.

6
Step 7: Database Configuration

Login to mysql console as root, create new user, database and grant user privileges to access database:

Fill in database access details:

8
Create administrator account and setup password for it:

9
Choose whether you want USVN to checks for updates:

10
Copy and paste following lines at the end of your httpd.conf:

11
Add code below to the end of httpd.conf:

save file and restart apache:

Step 8: Creating Your First Repository

Login as admin at http://usvn.myexample.com/login/

12
Go to “Admin” >>> “Users” and create new user account (for example “test_user”):

13
Create new Project (for example “test_proj”):

14
Grant “test_user”access to the “test_proj” project. Go to “Admin” >>> “Groups”:

15
and click the selection:

16
In drop-down menu choose ”test_user” account and add it:

17
After those steps, you can try to access SVN repository using SVN client. I will be using SyncroSVN client.

Step 9: Accessing Repository via SVN client

Open Syncro SVN Client, go to the “Repository” >>> “New Repository Location…”

Repository URL is: http://usvn.myexample.com/svn/test_proj/trunk

18
Click OK and enter SVN username and password created above:

19
If all goes well, you will be connected to the repository:

20
Now you can try to upload some files into the repository. Go to the “Repository” >>> “Import” >>> “Import Folder Content …”:

21
You can monitor upload progress at “Console” tab. If everything is OK you will see “Operation successful” message:

22

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值