2013年10月7日 星期一

使用 linux server 建立 SVN Server use apache 注意事項 ...



依照網路上這篇文章, 依序進行設定

SVN 入門安裝設定教學(上)

然後會很不幸地遇到,這樣的問題:

This XML file does not appear to have any style information associated with it. The document tree is shown below.
<D:error xmlns:D="DAV:" xmlns:m="http://apache.org/dav/xmlns" xmlns:C="svn:">
<C:error/>
<m:human-readable errcode="13">Could not open the requested SVN filesystem</m:human-readable>
</D:error>


試了好多地方才發現,和安裝的作業系統是有關係的。如果很不幸是使用 SELinux / Fedora Core 3+ / Red Hat Enterprise 的 ( 其實 Cent OS 也是,因為我就是使用 Cent OS 6.3 試的 ) 需要再額外多執行一道指令 :

"chcon -R -h -t httpd_sys_content_t PATH_TO_REPOSITORY"


上面這個問題的解決方式,是從

Apache Subversion FAQ - How do I set repository permissions correctly? 

這裡找到的。

----
終於試好了 =..=




沒有留言:

張貼留言