Install HTTP access to SVN under Linux

Source: Internet
Author: User

1. Install lamp Environment: Click to enter

2. Configure the virtual host www.test.com virtual directory as/data/www/test

3. Yum Install SVN

Yum Install mod_dav_svn-  y

4. Create SVN Data Catalog

mkdir -P/DATA/SVN

5. Create a new SVN repository and adjust permissions

Svnadmin Create/data/svn/test
Chown-r Apache:apache/data

6. Import the file into the new repository, assuming the file is in the/data/webcode

file:///data/svn/test-m ' New import '

7. Check out the SVN project to the site Directory

file://data/svn/test/data/www/test

8. Configure the SVN project

vim/data/svn/test/conf/svnserve.conf# Open the following anon-access = readauthwritepassword  passwdauthz-db = Authz

9. Add the SVN project user

Htpasswd-c/data/svn/test/conf/passwd username

10. Edit the SVN project permissions

vim/data/svn/test/conf/authz# Add the following [test:/= RW

11. Edit Subversion.conf

vim/etc/httpd/conf.d/subversion.conf# Last add the following <Location/svn/test>    DAV svn    /data/ svn/test    authtype Basic    "test Repository"    /data/svn/ test/conf/passwd    /data/svn/test/conf/authz    <limitexcept GET PROPFIND OPTIONS report>        Require valid-user    </limitexcept></location >

12. Configure SVN commit to automatically update to the site Directory

---restore content ends---

1. Install lamp Environment: Click to enter

2. Configure the virtual host www.test.com virtual directory as/data/www/test

3. Yum Install SVN

Yum Install mod_dav_svn-  y

4. Create SVN Data Catalog

mkdir -P/DATA/SVN

5. Create a new SVN repository and adjust permissions

Svnadmin Create/data/svn/test
Chown-r Apache:apache/data

6. Import the file into the new repository, assuming the file is in the/data/webcode

file:///data/svn/test-m ' New import '

7. Check out the SVN project to the site Directory

file://data/svn/test/data/www/test

8. Configure the SVN project

vim/data/svn/test/conf/svnserve.conf# Open the following anon-access = readauthwritepassword  passwdauthz-db = Authz

9. Add the SVN project user

Htpasswd-c/data/svn/test/conf/passwd username

10. Edit the SVN project permissions

vim/data/svn/test/conf/authz# Add the following [test:/= RW

11. Edit Subversion.conf

vim/etc/httpd/conf.d/subversion.conf# Last add the following <Location/svn/test>    DAV svn    /data/ svn/test    authtype Basic    "test Repository"    /data/svn/ test/conf/passwd    /data/svn/test/conf/authz    <limitexcept GET PROPFIND OPTIONS report>        Require valid-user    </limitexcept></location >

12. Configure SVN commit to automatically update to the site Directory

vim/data/svn/test/hooks/post-commit# Add the following, user name password self-replacement #!/bin//data/www/test/--username= Username--password=password--non-Interactivechown -R apache:apache/data/www/test

13. Final confirmation of permissions

chown -R apache:apache/data

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.