In the Ubuntu system, configure Svn on Apache in three steps: install Apache. Install Svn. Configure httpd. conf of Apache to support Svn. Install Apache as follows. I used the source code to install: configure, make, makeinstall. Note that if your Apache is used for Svn, you can directly compile the Mod_Dav module. For specific parameter settings, see configu.
The configuration of Svn on Apache in Ubuntu is basically three steps:
Install Apache.
Install Svn.
Configure httpd. conf of Apache to support Svn.
The following details:
Install Apache. I used the source code to install: configure, make, make install. Note that if your Apache is used for Svn, you can directly compile the Mod_Dav module. For specific parameter settings, see the help of configure. The default installation location of Apache is/usr/local/apache2.
Install Svn. If the source code is used for compilation, it is still: configure, make, make install. After installation, svn is added to/usr/bin, and the Apache module is added to the/usr/local/apache2 directory.
Create a version library for Svn. Svnadmin create/svndb, where "~ /Svndb "is the path of the version library. By now, Svn can be used locally, and file: // svndb can be used for URLs.
Configure the module in httpd. conf. Svn requires two basic modules: mod_dav and mod_dav_svn.
Generally, svn is automatically configured during installation:
LoadModule dav_svn_module module/mod_dav_svn.so.
If the Mod_Dav module is not compiled into Apache, add the following sentence:
LoadModule dav_mod modules/mod_dav.so
Make sure it is before mod_dav_svn.
Configure the version library in httpd. conf:
DAV svn
SVNPath/svndb
The Location following the Location corresponds to the http access Location. The above configuration is http: // localhost/svn. The following SVNPath corresponds to the local version library, which should be consistent with the version library you created.
OK!
Possible errors:
Compile-time error: if an error occurs in Configure, the configuration of your compilation environment may be incorrect. Check that gcc, make, and related library files have been installed.
If the file can be read but cannot be imported to Svn or Commit, it is likely that the permission is incorrect. You can run the "chmod-R 777/svndb" command to modify the access permission of the version library.