Subversionでバージョン管理
WebDAVを組み合わせた Subvertion のインストール履歴を残します。
BASIC認証を使っていますが、グローバルに持たせる場合は、
SSLとかにしたほうがいいです。
1. yum -y install mod_dav_svn 2. mkdir /home/svnroot 3. svnadmin create /home/svnroot/ 4. htpasswd -cm /home/svnroot//.htpasswd test 5. svn mkdir file://localhost/home/svnroot//trunk -m 'Log Message' 6. svn mkdir file://localhost/home/svnroot//tags -m 'Log Message' 7. svn mkdir file://localhost/home/svnroot//branches -m 'Log Message' 8. svn import -m 'Log message..' <ソース元のパス> file://localhost/home/svnroot//trunk 9. chown -R apache:apache /home/svnroot 10. vi etc/httpd/conf.d/subversion.conf DAV svn SVNParentPath /home/svnroot AuthType Basic AuthName "Authorization Realm" AuthUserFile /home/svnroot//.htpasswd Require valid-user # Limit write permission to list of valid users. # # # Require SSL connection for password protection. # # SSLRequireSSL # 11. service httpd restart