APACHE+SVN Service Building

Source: Internet
Author: User
Tags svn client

1. Installation Services

2. Create an SVN repository
#创建仓库目录mkdir-P/var/www/svn# Create the SVN repository svnadmin create/var/www/svn/project# configuration file to the warehouse vim/var/www/svn/project/conf/ svnserve.conf# disable anonymous users and turn on verify user rights. anon-access = noneauth-access = Write


3.SVN Integrated Apache
#配置subversion the following content for the. conf file:
LoadModule dav_svn_module     modules/mod_dav_svn.soloadmodule authz_svn_module   modules/mod_authz_svn.so< Location/project>dav svnsvnpath/var/www/svn/project/                authtype basicauthname "SVN" authuserfile/var/www/svn/ Project/conf/passwdrequire valid-user</location>

#修改/var/www/svn Permissions chown apache.apache/var/www/svn-rchmod 777/var/www/svn-r# shut down Selinuxsetenforce 0# restart Apache Services service httpd restart

4. Create SVN users
cd/var/www/svn/project/conf# create user with htpasswd, first create user HTPASSWD-CB passwd user password# Add users htpasswd-b passwd new-user new-password# Delete User htpasswd-d passwd user# Modify user password htpasswd passwd users


5. Configure SVN permissions
#编辑authz文件, set the guest group to contain test and ABC two users.
[Groups]
Guest = Test,abc
#配置组权限, the Guest group under the root directory is read-write and readable by other users.
[/]
Guest = RW
* = R


6. Start the SVN service
#关闭svn服务
Killall Svnserve
#启动svn服务
Svnserve-d-r/var/www/svn/project


7. Client Testing SVN
Enter Http://IP/project in the browser
Enter a user name and password to access


Enter Http://IP/project in the SVN client
Enter a user name and password to access

Copyright NOTICE: This article for Bo Master original article, without Bo Master permission not reproduced.

APACHE+SVN Service Building

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.