Just record the installation process to facilitate the next direct copy, save to find some options.
CentOS6 after the installation is complete with Apache2.2 and subversion1.6, then we will first look at how the system comes with the configuration:
First, the system comes with the Apache and SVN configuration
1. Add SVN users
# useradd-r-s/sbin/nologin SVN
2. Configure Apache configuration Files
# mkdir -pv /www/svnroot/ # Creating a library directory for SVN # chown -R svn.svn /www/svnroot/ # Change Permissions # cd /etc/httpd/conf.d # Edit configuration file # vim Subversion.confloadmodule dav_svn_module modules/mod_dav_svn.soloadmodule authz_svn_module modules/mod_authz_svn.so<Location /svn/> # define access path; For example, HTTP://IP/SVN&NBSP;&NBSP;&NBSP;DAV&NBSP;SVN svnparentpath /www/svnroot&nBSP;&NBSP;&NBSP;#&NBSP;SVN's Library path SVNListParentPath on # allow directories to be listed AuthzSVNAccessFile /www/svnroot/authz # Certification Documents #RedirectMatch ^ (/SVN) $ $1/ authtype basic # Basic Certification AuthName "Subversion auth" # Certification Tips AuthUserFile /www/svnroot/password# Authentication password file require valid-user# must be a valid user </location># service httpd start
3. Create a repository and test:
# cd/www/svnroot# Svnadmin Create platform# chown-r svn.svn *# cp platform/conf/authz. # vim authz[aliases]# Joe =/C=XZ /st=dessert/l=snake city/o=snake Oil, ltd./ou=research institute/cn=joe average[groups]# define Group Group_platform_admin = admin# group members [/]# root directory All users ' browse rights * = r[platform:/]# permissions per repository @group_platform_admin = rw# permissions # htpasswd-c password admin# generate cipher text and add users to this, you can access it normally.
You can either enter an address in the browser or access it with a client.
Ii. source code compilation and installation
1. Solve the dependency package
Yum-y Install pcre-devel perl-extutils-embed perl perl-develyum-y Remove Subversion
2, download the required source code package
apr-1.5.1.tar.bz2apr-util-1.5.4.tar.bz2httpd-2.4.12.tar.gzsqlite-autoconf-3080802.zipsubversion-1.8.10.tar.bz2zlib-1.2.8 . tar.gzexpat-2.0.1.tar.gz
3. Compiling
Apr./configure --prefix=/usr/local/aprmake && make installapr-util./configure --prefix=/usr/local/apr-util --with-apr=/usr/local/apr/make && make Installhttpd-2.4.12./configure --prefix=/usr/local/apache --sysconfdir=/etc/httpd24 --enable-so --enable-ssl --enable-cgi --enable-rewrite --with-zlib --with-pcre --with-apr=/ Usr/local/apr --with-apr-util=/usr/local/apr-util --enable-modules=most --enable-mpms-shared= All --with-mpm=event --enable-proxy --enable-proxy-fcgi --enable-dav --enable-dav-fs --enable-maintainer-modemake && make install# Add Environment variables after compilation: vim /etc/ profile.d/apache.shexport path=/usr/local/apache/bin/: $PATH . /etc/profile.d/apache.sh# effective expat. /configuremake && make installsqlite./configure --prefix=/usr/local/sqlite -- enable-libtool-lockmake && make installsubversion./configure --prefix=/usr/local/svn --with-apr=/usr/local/ apr/ --with-apr-util=/usr/local/apr-util/ --with-apxs=/usr/local/apache/bin/apxs -- with-apache-libexecdir --with-sqlite=/usr/local/sqlite/ --with-openssl -- enable-maintainer-modemake && make install# Add environment variable after compilation: vim /etc/profile.d/ svn.shexport path=/usr/local/svn/bin/: $PATH . /etc/profile.d/svn.sh #生效
The above compilation process please note whether there is an error, if there is an error, after the resolution in the next installation operation.
4. Configure Apache
# after the Apache compile, because the system comes with Apache does not need to uninstall, directly to the/etc/init.d/directory. cd /etc/init.d/cp httpd{,.bak}vim httpdapachectl=/usr/local/apache/bin/apachectlhttpd=${httpd-/ usr/local/apache/bin/httpd}prog=httpdpidfile=${pidfile-/var/run/httpd/httpd.pid}lockfile=${lockfile-/var/lock/ subsys/httpd}# this several corresponding paths to change, pidfile in the configuration file to define the next path, and the Error log path is also written all, so that convenient troubleshooting # Then add the following line to the configuration file: Add the next two lines after the path of the LoadModule mount: Loadmodule dav_svn_module modules/mod _dav_svn.soloadmodule authz_svn_module modules/mod_authz_svn.so# Note: Change the startup user and group to the user and group that SVN uses, otherwise there is no write permission, or change the owner group of the SVN directory to run Apache. # Add the following:<location /svn/> dav svn in other locations svnparentpath /data/svn authzsvnaccessfile /data/svn/authz #SVNListParentPath on authtype basic authname "Subversion auth" authuserfile /data/svn/password require valid-user</location># service httpd restart
5, configure the SVN library and authentication files, such as the first configuration is the same.
6. Access Test
650) this.width=650; "src=" http://s3.51cto.com/wyfs02/M00/59/90/wKioL1TYWqiBo1xxAAD2pQqPPL8812.jpg "style=" float: none; "title=" 123.png "alt=" Wkiol1tywqibo1xxaad2pqqppl8812.jpg "/>
650) this.width=650; "src=" http://s3.51cto.com/wyfs02/M00/59/93/wKiom1TYWbbSm7KwAADtNnX5iVU623.jpg "style=" float: none; "title=" 1234.png "alt=" Wkiom1tywbbsm7kwaadtnnx5ivu623.jpg "/>
Test as above. Client access is the same.
This article is from the "Soul" blog, make sure to keep this source http://chenpipi.blog.51cto.com/8563610/1613007
CentOS 6 compile and install subversion-1.8.10+apache2.4