Use SVN for installation and configuration under Ubuntu11.04

Source: Internet
Author: User
In fact, when apache is installed in Ubuntu. the/configure command can be specified by many parameters. If it is not explicitly specified, after installing SVN, you will find that mod_dav_svn.so and mod_authz_svn.so are not in the modules directory of apache. In most cases, we did not consider installing SVN later when installing apache. We naturally did not specify the./configure command parameter. At this time, we need to generate mod_dav_svn.s

In fact, when apache is installed in Ubuntu. the/configure command can be specified by many parameters. If it is not explicitly specified, after installing SVN, you will find that mod_dav_svn.so and mod_authz_svn.so are not in the modules directory of apache.

In most cases, we did not consider installing SVN later when installing apache. Naturally, SVN is not specified. /configure command parameters. At this time, you need to generate mod_dav_svn.so and mod_authz_svn.so, and put them in the apache/modules directory:

Download subversion-deps-1.6.17.tar.gz and subversion-1.6.17.tar.gz, decompress and merge them to a directory.

./Configure -- with-apxs =/usr/local/apache/bin/apxs

Make

Then you found mod_authz_svn.so in subversion-1.6.17/subversion/mod_authz_svn/. lib /.

Mod_dav_svn.so is found in subversion-1.6.17/subversion/mod_dav_svn/. lib /.

Enable svn: svnserve-d

Enable apache:/usr/local/apache/bin/apachectl start

If you Can't open file 'xxxxxxxx \ db \ txn-current-lock' appears when submitting code to the repository: access is denied.

Modify permissions: # chmod-R o + rw/opt/svnroot

By the way, the locate command searches for files on the entire disk, but it does not search for hidden files (that is. files and folders; find searches for files in the specified directory and specifies the files to be searched with the-name option, such as find/home/orisun-name mod_dav_svn.so. The find command can also find hidden commands.

1. Install OpenSSL

Apt-get install openssl libssl-dev

2. Install apache2

Download httpd-2.2.8.tar.gz

. /Configure -- enable-so -- enable-proxy -- enable-ssl -- enable-vhost-alias -- enable-modes-shared = most -- enable-dav -- enable-maintainer-mode -- -mpm = worker

Note: -- enable-dav and -- enable-maintainer-mode are compilation parameters added to integrate subversion under apache. If there is a problem with -- enable-ssl, remove this item.

Make

Sudo make install

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.