Installation and configuration of Apache + SVN + LDAP in CentOS

Source: Internet
Author: User
Tags ldap

Installation and configuration of Apache + SVN + LDAP in CentOS

I have been working for nearly four months. I am working as a configuration management engineer in my company. I mainly manage the company's source code and project release in Linux. I have been familiar with a lot of new knowledge in four months, and I am also confused about the integration and use of various tools in the cloud. So I plan to build a set of environments for testing.

First, install and configure Apache + SVN. I used Virtualbox to create a virtual machine, so the subsequent environment construction is implemented on the Virtual Machine CentOS.

1. install Apache

Many tutorials on the Internet are installed using the source code, but the installation is a little complicated and it is easy to confuse beginners like me, so I used the yum tool (yum in CentOS and apt-get, and ,,,)

2. Subversion Installation

After mod_dav_svn is installed, a subversion configuration file is added to the directory/etc/httpd/conf. d:

3. Configure Apache

Add

LoadModule dav_svn_module modules/mod_dav_svn.so
LoadModule authz_svn_module modules/mod_authz_svn.so

After adding the preceding two sentences, make sure that the mod_dav_svn.so and mod_authz_svn.so files exist. Which directory are these two files under?

Run ls-al in the/etc/httpd/directory:

Check whether the two files are in the specified directory. If yes, the configuration is correct. If no, mod_dav_svn may not be installed.

Add the following content elsewhere in the file:

The/opt/svn/authz file is the permission control file of the version library. After definition, you do not need to create a version library each time and then modify the configuration file in the version library. All version libraries use this file to manage user permissions.

4. Configure LDAP

Configuration file/etc/httpd/conf. d/subversion. conf

For more information about the configuration, see LDAP.

5. Restart After apache is configured.

6. Start subversion

-D Indicates running in the background

-R indicates that the root directory of the service is/opt/svn.

7. Create a version Library

Go to the svn startup directory:/opt/svn directory to create a version Library

The current directory has an additional Test directory to enter the Directory

Modify the configuration file of the version Library: vim svnserve. conf

Comment out the above two lines and set anonymous access to none, that is, anon-access = none.

8. After the version library is created, the last step is to modify the permission configuration of the version library.

Modify the/opt/svn/authz file:

9. Access address: http: // ip address/svn/Test

The above is the building process of the version Library server. During the experiment, due to the different environments, I sometimes encounter various strange problems, and I often encounter them during the experiment, if you want to solve these problems smoothly, you need to learn more about Linux servers.

Write this first, and wait for a while before building the project release environment for learning.

Error message: svn: Can't open file '/opt/svn/Demo/db/txn-current-lock': Permission denied
Solution:
Disable selinux:
Vim/etc/selinux/config
SELINUX = disabled
Then restart

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.