Subversion1.6.6 + apache2.2.14 + Windows Installation Configuration

Source: Internet
Author: User

1. Download and install apache2.2.14. Set the installation directory to: D: \ Program Files \ Apache Software Foundation \ apache2.2

2. Download and install subversion1.6.6. Set the installation directory to: D: \ install \ svn-win32-1.6.6

3. If the above software has been installed, the configuration steps are as follows:

  • Copy mod_dav_svn.so, mod_authz_svn.so and all DLL files (17 files in total) under the D: \ install \ svn-win32-1.6.6 \ bin directory to D: \ Program Files \ Apache Software Foundation \ apache2.2 \ modules directory.
  • D: \ Program Files \ Apache Software Foundation \ apache2.2 \ conf \ httpd. in the conf configuration file, find # loadmodule dav_module modules/mod_dav.so and # loadmodule dav_fs_module modules/mod_dav_fs.so, and cancel the first two "#". Add loadmodule dav_fs_module modules/mod_dav_fs.so to the next line: loadmodule dav_svn_module modules/mod_dav_svn.so and
    Loadmodule authz_svn_module modules/mod_authz_svn.so, a statement line, the final form is: c Code
      1. Loadmodule dav_module modules/mod_dav.so
      2. Loadmodule dav_fs_module modules/mod_dav_fs.so
      3. Loadmodule dav_svn_module modules/mod_dav_svn.so
      4. Loadmodule authz_svn_module modules/mod_authz_svn.so
    Loadmodule dav_module modules/mod_dav.so loadmodule dav_fs_module modules/mod_dav_fs.so loadmodule dav_svn_module modules/mod_dav_svn.so loadmodule authz_svn_module modules/mod_authz_svn.so
  • Use the htpasswd tool that comes with Apache to generate the password file (you need to create the D: \ Program Files \ Apache Software Foundation \ apache2.2 \ conf-SVN directory ). The command is as follows: C code
    1. D: \ Program Files \ Apache Software Foundation \ apache2.2 \ bin> htpasswd-CMB ../conf-SVN/passwd test

  • Open the configuration file D: \ Program Files \ Apache Software Foundation \ apache2.2 \ conf \ httpd. conf and add the: C code at the end of the file.
    1. # The root location of the resource library, multi-database mode. The actual resource library path is: D: \ svnrepos \ testrepo
    2. <Location/SVN>
    3. Dav SVN
    4. Svnparentpath D: \ svnrepos # authzsvnaccessfile svnaccessfile
    5. Authtype basic
    6. Authname"Subversion repositories"
    7. Authuserfile"D: \ Program Files \ Apache Software Foundation \ apache2.2 \ conf-SVN \ passwd"
    8. Require valid-user
    9. </Location>
    10. # Single-database mode configuration method: select a configuration method as needed.
    11. <Location/SVN>
    12. Dav SVN
    13. Svnpath D: \ svnrep \ test
    14. Authtype basic
    15. Authname"Subversion repositories"
    16. Authuserfile"D: \ Program Files \ Apache Software Foundation \ apache2.2 \ conf-SVN \ passwd"
    17. Require valid-user
    18. </Location>
    # The root location of the resource library, multi-database mode. The actual resource library path is: D: \ svnrepos \ testrepo <location/SVN> Dav SVN svnparentpath D: \ svnrepos # authzsvnaccessfile svnaccessfile authtype basic authname "Subversion repositories" authuserfile "D: \ Program Files \ Apache Software Foundation \ apache2.2 \ conf-SVN \ passwd "require valid-user </location> # single-library mode configuration method, select a configuration method as needed. <Location/SVN> Dav SVN svnpath D: \ svnrep \ test # authzsvnaccessfile svnaccessfile authtype basic authname "Subversion repositories" authuserfile "D: \ Program Files \ Apache Software Foundation \ apache2.2 \ conf-SVN \ passwd "require valid-user </location>

  • Save the httpd. conf file and restart Apache to access the file. Note: In multi-database mode, the access address is http: // localhost/SVN/test. In single-database mode, the access address is http: // localhost/SVN, the user name and password are prompted during the first access. Use the username and password set in the htpasswd command for access.

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.