Install Apache + Svn in Ubuntu

Source: Internet
Author: User
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.

Related Article

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.