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
- 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
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
- 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.
- # 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-database mode configuration method: select a configuration method as needed.
-
- <Location/SVN>
-
- Dav SVN
-
- Svnpath D: \ svnrep \ test
-
- Authtype basic
-
- Authname"Subversion repositories"
-
- Authuserfile"D: \ Program Files \ Apache Software Foundation \ apache2.2 \ conf-SVN \ passwd"
-
- Require valid-user
-
- </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.