安裝环境fedora 10 + apache
.
1.登入root,並進入console介面,(對了避免出太大的問題,先把selinex關掉吧)
2.yum -y install subversion
3.svnadmin create "目錄名稱"
4.修改"目錄名稱"的owner ex: chown -r apache:apache "目錄名稱"
5.yum -y install mod_dav_svn
7.加入svn的認證使用者
$ ### First time: use -c to create the file $ ### Use -m to use MD5 encryption of the password, which is more secure $ htpasswd -cm /etc/svn-auth-file harry New password: ***** Re-type new password: ***** Adding password for user harry $ htpasswd /etc/svn-auth-file -m sally New password: ******* Re-type new password: ******* Adding password for user sally $
8.修改/etc/httpd/conf.d/subversion.conf的設定加入以下內容
<Location "目錄名稱">
DAV svn
SVNPath "目錄名稱"
AuthType Basic
AuthName "SVN Source Control"
AuthUserFile /etc/svn-auth-file
Require valid-user
</Location>
重新開啟http
Import Your Project
(assuming you’ve put your project /tiger into repository)
svn import tiger/ http://localhost/svn/tiger/trunk -m 'initial submit'