1. Install lamp Environment: Click to enter
2. Configure the virtual host www.test.com virtual directory as/data/www/test
3. Yum Install SVN
Yum Install mod_dav_svn- y
4. Create SVN Data Catalog
mkdir -P/DATA/SVN
5. Create a new SVN repository and adjust permissions
Svnadmin Create/data/svn/test
Chown-r Apache:apache/data
6. Import the file into the new repository, assuming the file is in the/data/webcode
file:///data/svn/test-m ' New import '
7. Check out the SVN project to the site Directory
file://data/svn/test/data/www/test
8. Configure the SVN project
vim/data/svn/test/conf/svnserve.conf# Open the following anon-access = readauthwritepassword passwdauthz-db = Authz
9. Add the SVN project user
Htpasswd-c/data/svn/test/conf/passwd username
10. Edit the SVN project permissions
vim/data/svn/test/conf/authz# Add the following [test:/= RW
11. Edit Subversion.conf
vim/etc/httpd/conf.d/subversion.conf# Last add the following <Location/svn/test> DAV svn /data/ svn/test authtype Basic "test Repository" /data/svn/ test/conf/passwd /data/svn/test/conf/authz <limitexcept GET PROPFIND OPTIONS report> Require valid-user </limitexcept></location >
12. Configure SVN commit to automatically update to the site Directory
---restore content ends---
1. Install lamp Environment: Click to enter
2. Configure the virtual host www.test.com virtual directory as/data/www/test
3. Yum Install SVN
Yum Install mod_dav_svn- y
4. Create SVN Data Catalog
mkdir -P/DATA/SVN
5. Create a new SVN repository and adjust permissions
Svnadmin Create/data/svn/test
Chown-r Apache:apache/data
6. Import the file into the new repository, assuming the file is in the/data/webcode
file:///data/svn/test-m ' New import '
7. Check out the SVN project to the site Directory
file://data/svn/test/data/www/test
8. Configure the SVN project
vim/data/svn/test/conf/svnserve.conf# Open the following anon-access = readauthwritepassword passwdauthz-db = Authz
9. Add the SVN project user
Htpasswd-c/data/svn/test/conf/passwd username
10. Edit the SVN project permissions
vim/data/svn/test/conf/authz# Add the following [test:/= RW
11. Edit Subversion.conf
vim/etc/httpd/conf.d/subversion.conf# Last add the following <Location/svn/test> DAV svn /data/ svn/test authtype Basic "test Repository" /data/svn/ test/conf/passwd /data/svn/test/conf/authz <limitexcept GET PROPFIND OPTIONS report> Require valid-user </limitexcept></location >
12. Configure SVN commit to automatically update to the site Directory
vim/data/svn/test/hooks/post-commit# Add the following, user name password self-replacement #!/bin//data/www/test/--username= Username--password=password--non-Interactivechown -R apache:apache/data/www/test
13. Final confirmation of permissions
chown -R apache:apache/data