Web management of svn on Centos6.5
First, we will introduce our web management tools:
IF. SVNAdmin (http://svnadmin.insanefactory.com/): a web-based GUI management SVN, including: repos management, user management, user group management, permission management and other functions, the underlying is also very simple, is to modify the Subversion authorization and user authorization file to complete its management function (not supported currently
With the database user authorization), the overall usage gives me the feeling that the two words are simple, from installation to configuration to usage to architecture, it is very simple.
The installation process is as follows:
1. install apache
Yum install httpd-y
2. Install the svn Server
Yum install mod_dav_svn subversion-y
3. Configure svn under apache
Vim/etc/httpd/conf. d/subversion. conf
LoadModule dav_svn_module modules/mod_dav_svn.soLoadModule authz_svn_module modules/mod_authz_svn.so
DAV svn SVNParentPath /svndata # Limit write permission to list of valid users. #
# Require SSL connection for password protection. # SSLRequireSSL AuthType Basic AuthName "Authorization Realm" #AuthUserFile /svndata/test/conf/passwdfile AuthUserFile /etc/subversion/passwd AuthzSVNAccessFile /etc/subversion/auth Require valid-user #
Among them,/etc/subversion/passwd and/etc/subversion/auth are the centralized storage locations of user names and passwords on the web management interface. auth, passwd, and svnserver in each svn project. the configuration will not be performed in conf.
/Svndata is the svn project directory where all projects are stored.
Therefore, we need to create related files and directories:
Mkdir-p/svndata
Chown-R apache. apache/svndata
Touch/etc/subversion/passwd/etc/subversion/auth
4. install php
Because iF. SVNAdmin is written in php, We need to install php
Yum install php-y
5. Configure svnadmin
[root@phabricator src]# wget http://sourceforge.net/projects/ifsvnadmin/files/svnadmin-1.6.2.zip/download[root@phabricator src]# unzip svnadmin-1.6.2.zip [root@phabricator iF.SVNAdmin-stable-1.6.2]# lsaccesspathcreate.php actions data grouplist.php index.php logout.php readme.md repositoryview.php templates userchangepass.php userlist.phpaccesspathslist.php classes error.php groupview.php license.txt pages repositorycreate.php rolelist.php translations usercreate.php userview.phpaccesspathview.php cli.php groupcreate.php include login.php permissionassign.php repositorylist.php settings.php update.php usergroupassign.php[root@phabricator iF.SVNAdmin-stable-1.6.2]# cp -r iF.SVNAdmin-stable-1.6.2/ /var/www/html/svnadmin [root@phabricator html]# cd /var/www/html[root@phabricator html]# chown -R apache.apache svnadmin[root@phabricator html]# cd /var/www/html/svnadmin[root@phabricator svnadmin]# chmod -R 777 data
6. Restart apache
Service httpd restart
After starting the webserver service, enter http: // servername/svnadmin in the browser address to display the configuration interface. Enter the configuration information in the browser and enter each configuration information. You can click Test next to it to Test whether the input is correct, last save Configuration
After saving, the system prompts that the default account is admin/admin.
After logging in, we can add a project directory under "Repositories;
Add a user under "Users;
Associate users of the corresponding project under "Access-Paths" and assign relevant read and write permissions.
I won't go around here.