SVN 1.80 + Apache2.4.4 comprehensive introduction

Source: Internet
Author: User

Appendix: the requested operation has failed error Solution
Appendix: Solutions for cocould not open the requested SVN filesystem errors
Appendix: Solutions for authentication failure and Password Mismatch
1. Download file note: the client and the server version is consistent tortoisesvn client program needs to download and install: http://sourceforge.net/projects/tortoisesvn/files? Source = navbar poor English can download a client Chinese plug-in, must be installed on the Client installation: http://downloads.sourceforge.net/tortoisesvn/LanguagePack_1.8.1.24570-win32-zh_CN.msi? Download subversion is SVN Server is a compressed package this article mainly introduces the configuration of this compressed package: http://jaist.dl.sourceforge.net/project/win32svn/ 2. Client Server apache version selection (important) All Program versions in this article:
System: win7-32bit
Tortoisesvn: 1.8.0 subversion: 1.8.0
Apache: 2.4.4 (wamp) wamp: http://www.wampserver.com/en/
The client and server must match the version as mentioned above. the most important thing is that the server must match apache. Otherwise, your apache cannot be started. You can check the version of README.txt In the downloaded subversion to match the version of the server. 1: # svn system module
   2:  LoadModule dav_module modules/mod_dav.so
   3:  LoadModule dav_fs_module modules/mod_dav_fs.so
4: # svn Module
   5:  LoadModule dav_svn_module modules/mod_dav_svn.so
   6:  LoadModule authz_svn_module modules/mod_authz_svn.so

 

<2. Set the call relationship between apache and SVN.

   1:  <Location /svn>  
   2:  DAV svn 
   3:  SVNParentPath "D:/www/depot"
   4:  </Location>

 

The third row sets the SVN repository location where depot is the parent directory,

Sub-directories can be set in it. This is only the location of my repository and can be set as needed.

<3. Reboot system attachment: the requested operation has failed error Solution

After the system is restarted, wamp cannot start to view the apache Log File apache_error.log.
The last line prompts the requested operation has failed

If this problem occurs, check the following aspects:

(1. Check whether the server supports the apache version.

(2. Check whether SVN modules are introduced to the modules folder of apache.

(3. Check whether the environment variables are correctly modified.

(3. Check whether the modified apache configuration file has syntax or input errors.

(4. check whether there is a lack of VSN dependent runtime environment can install Microsoft VC6 and VC9 support library: http://www.baidu.com/

(5. If the above operations are correct and the problem persists, restart your computer.

You can enter the following command in cmd to view the configuration line in which apache reports an error and locate the check error.

Httpd.exe-w-n "wampapache"-k start

Wampapache refers to the service name of apache in the system. Different computers may have different names. You can view them in the Service list.

7. Create a repository

Run the cmd command: vsnadmin create d:/www/depot/maliro

Depot is the parent directory of my repository.

Maliro is a sub-warehouse under my warehouse.

You can use vsnadmin help to view all vsnadmin commands.

Created warehouse:

<1. Enter localhost/vsn/maliro in the browser as the sub-repository name

Note that the access directory of localhost has been directed to the D: \ www directory created by me. modify the configuration items in the apache configuration file.

After successfully opening the webpage, the following message is displayed: maliro-Revision 0:/<2. appendix: Solution for cocould not open the requested SVN filesystem error if the webpage prompts cocould not open the requested SVN filesystem, it indicates there is no problem with apache integration, however, if the VSN does not find the repository, check the following: (1. whether the repository's parent path is correctly specified in the apache configuration file: 1: <Location/svn>
   2:  DAV svn 
   3:  SVNParentPath D:/www/depot
   4:   
   5:  AuthZSVNAccessFile "D:\www\depot\authz"
   6:  AuthUserFile "D:\www\depot\passwd"
   7:   
   8:  Satisfy Any
   9:  Require valid-user
  10:   
  11:  AuthType Basic
  12:  AuthName " Welcome to my SVN , But you need input password! (-: "
  13:  </Location>
Modify the previous configuration to the preceding code. Set the permission configuration file on the fifth line. The sixth line sets the password file to be stored in the parent directory of the Repository. <2. add the user to create the file authz in the directory of the configured permission storage configuration and enter the following information:
   1:  [maliro:/]
   2:  maliro = rw
Maliro: /// indicates that the Set User acts on the sub-warehouse maliro = rw // set the user and user permissions in the form of key-value pairs r --> read operation w-> write operation <2. set the plaintext password to create the file passwd in the specified directory and enter the following information: maliro: 111 // key-value pairs set the maliro password to 111 <3. run the following command on the cmd command line to set the encryption password:
   1:  htapache -cmb d:/www/depo/passwd maliro 111
Create an md5-encrypted user password. Note: the c parameter in the command is used to create a file and create an encrypted user password will overwrite the previous passwd file. The best way to use it is to specify the-mb parameter. You can also create a password like this:
   1:  htapache -b d:/www/depot/passwd maliro
Create a user password encrypted by hash <4. appendix: authentication failure and Password Mismatch, check apache_error.log and you will find that you do not have the permission or the password is incorrect. The cause is: the password is incorrect and the password does not match. solution: (1. check whether the password file exists and create a password for the specified user (2. check whether the VSN configuration password file path in the apache configuration file is correct (3. whether the following command is used to create a user using the command line: Error 1: htapache-c xxxxxxxx maliro Error 2: htapache xxxxxxxx maliro may be caused by version problems, in the advanced version of SVN, the encrypted user password created with such commands cannot be correctly decrypted and matched. For details, refer to the Command htapache help <this chapter ends.> if you have any questions or corrections, please leave a message or email: 290334962@qq.com

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.