Centos6.5:https://www.linuxidc.com/Linux/2015-12/126486.htm
Centos7:http://www.cnblogs.com/Sungeek/p/6905102.html
Linux installation of SVN common problems: https://blog.csdn.net/slovyz/article/details/47981117
Linux restart svn: https://blog.csdn.net/chen_pt/article/details/53103995
To use svn, you need to install: yum install subversion mod_dav_svn
After installing SVN, the /etc/httpd/conf.d/subversion.conf file is generated by default
# vim /etc/httpd/conf.d/subversion.conf
Insert the code below
<Location /svn> #多版本修改成/svn
DAV svn
SVNParentPath /var/www/svn
#
# # Limit write permission to list of valid users.
# <LimitExcept GET PROPFIND OPTIONS REPORT>
# # Require SSL connection for password protection.
# # SSLRequireSSL
#
AuthType Basic
AuthName "Authorization Realm"
AuthUserFile /var/www/svnconfig/passwdfile #用户文件
AuthzSVNAccessFile /var/www/svnconfig/accessfile #权限文件
Require valid-user
# </LimitExcept>
</Location>
4. Create SVN repo directory and permission information directory
# mkdir / var / www / svn
# mkdir / var / www / svnconfig
5. Create SVN permission file and password file
# touch /var/www/svnconfig/accessfile
# touch /var/www/svnconfig/passwdfile
Six, install php
# yum install php
Seven, install iF.SVnAdmin
Download: svnadmin-1.6.2.zip file
# wget http://sourceforge.net/projects/ifsvnadmin/files/svnadmin-1.6.2.zip/download
Unzip:
# unzip svnadmin-1.6.2.zip
Copy the decompressed file iF.SVNAdmin-stable-1.6.2 to /var/www/html/svnadmin
# cp -r iF.SVNAdmin-stable-1.6.2 // var / www / html / svnadmin
Change the read-write mode of the data directory
# chmod -R 777 / var / www / html / svnadmin / data /
Change /var/www/html/svnadmin/ ownership
# chown -R apache:apache /var/www/html/svnadmin/
Change the read-write mode of /var/www/svn
#chmod -R 777 / var / www / svn
Change the read-write mode of the following two files
# chmod 777 /var/www/svnconfig/accessfile
# chmod 777 /var/www/svnconfig/passwdfile
Important: restart apachehttp://domain/svnadmin/index.php set default data after login
After filling in, save it, and then log in with admin to create folders and control permissions.
Be sure to restart apache! ! ! ! !
SVN remote connection address: http://domain name/svn/folder name/...
Interface process introduction:
Login permission control page
http : //domain/svnadmin/index.php
Special attention for permission control! ! !
1: The principle of priority for high authority under the same layer
example:
If user A exists in group1, and the permission is set to read and write permission for group1, then user A has read and write permission by default, even if you set user A to have no permission, it is useless.
If user A exists in group1, and the permission is set to group1 as no permission, then user A has no permission by default, but after you set user A to read and write permission separately, user A can have read and write permission
If there is such a situation, there are two suggested solutions. The first is to set group1 to have no permissions, and then set users other than A to have permissions . The second is to take user A out of group1. , and then set no permission, the first one is recommended
2: Principle of Permission Inheritance
If the subfolder permissions are not set separately, the subfolder's permission configuration is inherited from the parent folder by default.
If you need to set it separately, please refer to the new sub-folder path under the permission control heading, and then configure the permissions.
Repository settings (folders)
list display
Add warehouse
user settings
user list
User added
Group settings
group list
group added
Add group members
You can also add group members like this
Access control
Add sub-folder path
The pull path of the subfolder is the original path /test (without the colon!!!)
Permission control page for all paths