星期日, 3月 18, 2012

[SVN] Windows 安裝 SVN

今天試了很多SVN版本終於有RUN一個正常的組合XD
提供給有需要的人參考

OS:Windows 7
Appserv:appserv-win32-2.5.10.exe
Subversion:1.4.6

目前搭1.7.3~1.7.4這二個版本在設定完httpd.conf後,重啟Apach都會有無法執行
mod_dav_svn.so和mod_authz_svn.so這二個modules的錯誤。


 一、SVN安裝流程:



1.安裝Appserv 2.5.10
2.安裝SVN 1.4.6
3.Apache的httpd.conf設定



For an Apache server here's the essentials: 

1. Copy bin/mod_dav_svn.so and bin/mod_authz_svn.so to the Apache modules directory. 

2. Add the Subversion/bin directory to the SYSTEM PATH and reboot so all the Subversion support dll's are visible to the Apache service. 

3. Edit the Apache configuration file (httpd.conf) and make the following changes: 

3a. Uncomment the following two lines: #LoadModule dav_fs_module modules/mod_dav_fs.so #LoadModule dav_module modules/mod_dav.so 

3b. Add the following two lines to the end of the LoadModule section: LoadModule dav_svn_module modules/mod_dav_svn.so LoadModule authz_svn_module modules/mod_authz_svn.so 

3c. Add the following to end of the file. Note: This Location directive is a minimal example with no authentication directives. For other options, especially authentication options, see the Subversion INSTALL file, the Subversion Book, or the TortoiseSVN Manual. DAV svn SVNPath your/repository/path

//一般基本設定
//location內的svn把他當成是虛擬目錄會比較好理解!!
<Location /svn>

DAV svn

SVNListParentPath on

SVNParentPath "c:/svn"

</Location>


二、SVN設定:

1.建立SVN資源庫 helloworld
c:/svn/svnadmin create helloworld

2.新增一個svn用戶帳號密碼,資料庫 passwd
c:/svn/htpasswd -c passwd ken



最後還是選擇裝了VisualSVN,因為一直解不了讀取不到資源庫的問題,有空再來裝看看XD

沒有留言:

張貼留言

留個話吧:)