In the company to do configuration management engineer, mainly in Linux under the company's source code and project Release Management. 4 months of exposure to a lot of new knowledge, but also the integration of a variety of tools to get into the fog in the cloud, so I intend to build a set of environment for testing.
The first is the installation and configuration of the APACHE+SVN. I use VirtualBox to create a virtual machine, so the next environment is built on the virtual machine CentOS.
1. Apache Installation
There are many tutorials on the Web are installed using the source code, but it is slightly more complicated to install, it is easy to confuse beginners like me, so I used the Yum tool (the CentOS system is the Yum,ubuntu system is apt-get 、、、)
CentOS 6.5 System installation Configuration lamp (APACHE+PHP5+MYSQL) Server environment http://www.linuxidc.com/Linux/2014-12/111030.htm
2. Subversion installation
After installing MOD_DAV_SVN, there is a Subversion configuration file under directory/etc/httpd/conf.d/:
3. Configure Apache
Add to
LoadModule Dav_svn_module modules/mod_dav_svn.so
LoadModule Authz_svn_module modules/mod_authz_svn.so
After adding the above two sentences, make sure that the mod_dav_svn.so and mod_authz_svn.so two files exist. What are the two files under that directory?
Execute ls–al under the/etc/httpd/directory:
To the specified directory to see, there are no above two files, if any, then the configuration is correct, if not, you may not have installed MOD_DAV_SVN.
Add the following to other locations in the file:
Where the/opt/svn/authz file is a permission control file for the repository, once defined here, you do not have to create one repository at a time and then modify the configuration file into the repository. This defines all repositories that use this file for user Rights management.
4. Configure LDAP
Configuration file/etc/httpd/conf.d/subversion.conf
Here's the configuration please refer to the LDAP data, here is a lot of things I do not understand.
5. Reboot after configuring Apache
6. Start Subversion
-D indicates background run
-R indicates that the root directory of the service is/OPT/SVN
7. Create a version library
To SVN startup directory: Create repository under/OPT/SVN directory
The current directory has more than one test directory, enter the directory
Modifying the repository's configuration file: Vim svnserve.conf
Comment out the above two lines and set the anonymous access to None, which is: Anon-access = None
8, create a good repository, the last step left: Modify the Repository permissions configuration
To modify the/opt/svn/authz file:
9. Access address: HTTP://IP address/svn/test
The above is the version of the server building process, in the process of testing, due to different circumstances, sometimes encounter a variety of wonderful problems, I myself in the test also often encountered, if you want to successfully solve these problems, you need to learn more in-depth knowledge of Linux server.
Just write these, wait for the time, and then build the environment of the project to be used for learning.
- This article is from: Linux Tutorial Network
Installation and configuration of APACHE+SVN+LDAP under CentOS