RHEL6.4 install svn and apache

Source: Internet
Author: User
Tags svn client
RHEL6.4 install svn and apache1. install the software package (RHEL has been installed by default. rpm software package: postgresql-libsperl-URIsubversionmod_dav_svn2, create svn folder and build svn folder create mkdir/opt/svn create version Library svn... RHEL 6.4 install svn and apache 1. install the software package (RHEL has been installed by default. rpm software package: postgresql-libsperl-URIsubversionmod_dav_svn 2, create svn folder and version Library create svn folder mkdir/opt/svn create version Library svnadmin create/opt/svn/project (note here you need to configure/opt/svn/project access permission, chmod-R 777/opt/svn/project) 3. configure the listening port for Apache configuration: vi/etc/httpd/conf/httpd. conf the Listen 80 is Listen 8008. start Apache: service httpd start to use http: // ip: 8008 for access in the client browser (note: you must open port 8008 for access. here, stop iptables directly: service iptables stop) 4. configure svn: vi/etc/httpd/conf. d/subversion. conf LoadModule dav_svn_module modules/mod_dav_svn.so LoadModule authz_svn_module modules/mod_authz_svn.so #/Svn indicates access http: // ip: 8008/svnDAV svn SVNParentPath/opt/svn # access http: // ip: 8008/svn jump to/opt/svnAuthType Basic AuthName "Authorization Realm" # information displayed in the login box AuthUserFile/opt/svn/passwd # File for storing users and passwords AuthzSVNAccessFile/opt/svn /authz # File for storing access permissions Require valid-user #  5. create the svn user and password file passwdhtpasswd-c/opt/svn/passwd user1 # add the first user to use-c, add the second user using-m or without the htpasswd-m/opt/svn/passwd user2 # add the first user using-c, add the second user using-m or without the htpasswd-m/opt/svn/passwd user3 # add the first user using-c, add the second user using-m or without parameters 6. create the svn access permission file authzvi/opt/svn/authz. edit the content: [groups] manager = user1, user2 # Create a group manager, user1, user2developer user1, user2, user3 # Create a group developer, including user1, user2, user3 [/] # the root directory shows the project folder @ manager = rw # Users in the manager group can read and write * = # others have no read and write permissions. [project: /demo] # access the demo folder under the project @ developer = rw # developer can read and write the demo folder * = restart httpd:/etc/init. d/httpd. restart 7. enter http: // ip: 8008/repos/project in the browser or svn client to enter the user name and password.
 
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.