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