Build SVN server under centos

Source: Internet
Author: User

1. install Apache: Yum install httpd

2. Install SVN: Yum install mod_dav_svn Subversion

3. Configure SVN: Vim/etc/httpd/CONF. d/subversion. conf
<Location/SVN>
Dav SVN
Svnparentpath/home/SVN/Repo

Authtype basic
Authname "restricted access"

# File will be created by svnmanager, keep location in mind!
Authuserfile/home/SVN/CONF/passwdfile

Require valid-user
# Sslrequiressl

# File will be created by svnmanager, keep location in mind
Authzsvnaccessfile/home/SVN/CONF/accessfile
</Location>

4. Create a directory for storing repo and permission information: mkdir-P/home/SVN/repo/home/SVN/Conf

5. Create the svn permission information file: Touch/home/SVN/CONF/accessfile/home/SVN/CONF/passwdfile

6. install PHP: Yum install PHP

7. Download svnadmin: http://sourceforge.net/projects/ifsvnadmin/files/svnadmin-1.6.2.zip/download

8. Unzip svnadmin: unzip svnadmin-1.6.2.zip

9. Copy the project to the webserver directory: CP-R if. SVNAdmin-stable-1.6.2 // var/www/html/svnadmin

10. Authorization --- grant the Web Server user the permission to read and write the project.
Chmod-r 777/var/www/html/svnadmin/data/
Chown-r Apache: Apache/var/www/html/svnadmin/

11. Disable SELinux
Restart to take effect: Use the text editing tool to open/etc/SELinux/config and comment out SELinux = enforcing: # SELinux = enforcing = disabled
Effective immediately:/usr/sbin/setenforce 0 (disable SELinux immediately),/usr/sbin/setenforce 1 (enable SELinux immediately)

12. Start the webserver service: Service httpd restart

Build SVN server under centos

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.