Folder to be created for installing Linux SVN

Source: Internet
Author: User

Linux SVN installation is still quite common, so I have studied the installation of Linux SVN. Here I will share it with you and hope it will be useful to you.

1. module required for Linux SVN installation: # yum install mod_dav_SVN after installation is complete, found in/etc/httpd/conf. d. subversion is added. conf, And the mod_dav_svn.so and mod_authz_svn.so files are added to/etc/httpd/modules, which is the subversion. conf.

2. Modify subversion. conf and cancel comments of several lines to make it:

 
 
  1. <Location /repos> 
  2.          DAV svn  
  3.          SVNParentPath /var/www/svn/  
  4.     #  
  5.     #   # Limit write permission to list of valid users.  
  6.     #   <LimitExcept GET PROPFIND OPTIONS REPORT> 
  7.     #      # Require SSL connection for password protection.  
  8.     #      # SSLRequireSSL  
  9.     #  
  10.     #      AuthzSVNAccessFile /etc/httpd/authz.conf  
  11.     #      AuthType Basic  
  12.     #      AuthName "Please enter your name and password"  
  13.     #      AuthUserFile /etc/httpd/conf.d/authfile  
  14.     #      Require valid-user  
  15.     #   </LimitExcept> 
  16.     </Location> 

Here, ParentPath for Linux SVN installation is the upper-level directory of all Repository, and there is no restriction on accessing the Repository installed in Linux SVN, just like google code, which can be viewed without a user name or password, even the source code of checkout.

3. Create a svn/folder under/var/www/and create the subversion version repository under this directory:
$ Svnadmin create your_repo_name

4. Enter the repository and modify the configuration file, which is located in your_repo_name/conf. First modify svnserve. conf and find and remove the following comments:

 
 
  1. Anon-access=Read# Anonymous access permission, which can be read, write, or none. The default value is read.
  2. Auth-access=Write# Authenticate the user's permissions, which can be read, write, or none. The default value is write.
  3. Password-db=Passwd# Password Database path
  4. AuthzAuthz-db= Authz # user operation Permissions

5. Modify the passwd file in the following format:

 
 
  1. [users]  
  2. user1 = password1 
  3. user2 = password2 

6. Modify the authz file in the format of specifying the permissions of each user for the directory under each repo_name (note that there is no space before each line ):

 
 
  1. [Repo_name:/directory1]
  2. User1=Rw# User1 has read and write permissions
  3. [Repo_name:/directory2]
  4. User2= R # user2 only has read permission

7. Use TortoiseSVN in windows to import the project:
Create an initial project file in the following three folders. Put the project root directory under trunk:

 
 
  1. Svn_temp \ trunk # contains the overall and stable code of the project.
  2. Svn_temp \ branch # contains a branch of a project, such as a sub-function
  3. Svn_temp \ tag # indicates a milestone of a project, such as a release.
  4. Then use the import function of TortoiseSVN. Permission denied may occur because the owner of the directory for uploading files is root and the owner of the Directory needs to be modified:
  5. Can't open file '/var/www/svn/repo_name/db/txn-current-lock': Permission denied
  6. $ Cd/var/www/svn
  7. $ Chown-R apache. apache repo_name
  8. # Chcon-R-t http_sys_content_rw_t repo_name # This step is not required because selinux has been disabled.

This may cause a problem. If any user knows the address for installing and downloading Linux SVN, he or she can import any file to repository. This may require the introduction of access control to be continued ).

  1. Access Mode for Linux SVN installation and startup
  2. Create a Linux SVN repository file and install and configure it
  3. Perform operations using the local Linux iso Image
  4. Linux WAS installation and preparation environment
  5. Linux yum powerful basic operations

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.