<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Life Style! &#187; usvn</title>
	<atom:link href="http://www.realqi.cn/tag/usvn/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.realqi.cn</link>
	<description>系统管理  维护监控  简单生活</description>
	<lastBuildDate>Wed, 25 Aug 2010 14:41:03 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.8.4</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>Install usvn on centos</title>
		<link>http://www.realqi.cn/2009/09/install-usvn-on-centos/</link>
		<comments>http://www.realqi.cn/2009/09/install-usvn-on-centos/#comments</comments>
		<pubDate>Wed, 23 Sep 2009 16:08:17 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[技术实践]]></category>
		<category><![CDATA[svn]]></category>
		<category><![CDATA[usvn]]></category>

		<guid isPermaLink="false">http://realqi.cn/?p=318</guid>
		<description><![CDATA[    Userfriendly SVN (USVN) 是一个基于 Web 的 Subversion 资源库的配置工具，通过 USVN 可以创建新的项目，管理授权用户列表等功能。

本节主要讲如何配置usvn，并详细列出和svn的整合步骤，并不深入学习usvn的使用。

]]></description>
			<content:encoded><![CDATA[<h2> 一.了解认识 </h2>
<p>    Userfriendly SVN (USVN) 是一个基于 Web 的 Subversion 资源库的配置工具，通过 USVN 可以创建新的项目，管理授权用户列表等功能。</p>
<p>     User-Friendly USVN is a web interface written in PHP used to configure Subversion repositories.It's goal is to ease the creation of new projects without having to use the command line interface, therefor, maybe without privileged access to the server. USVN will then generate the list of users allowed to access your source code. This enable the delegation of rights to administrate Subversion repositories.</p>
<p>项目主页: <a href="http://www.usvn.info/">http://www.usvn.info/</a></p>
<p> </p>
<p>本节主要讲如何配置usvn，并不深入学习usvn的使用。</p>
<p><strong> </strong> </p>
<p><strong>在安装和使用usvn之前，你需要</strong></p>
<p>          1.对svn有一定的了解, <a href="http://www.subversion.org.cn/svnbook/1.4/svnbook.pdf">svn book</a> (pdf 版)</p>
<p>          2.需要apache2 及成功开启apache2的mod_dav_svn mod_rewrite</p>
<p>          3.一个装好的subversion,且apache2能成功加载mod_svn mod_authz_svn</p>
<h2>二.准备工作</h2>
<p>    <strong>1.install lamp</strong>   (centos4.7+apache2.2.10+mysql5.1.30+php5.2.6)</p>
<p>   参考: <a href="http://realqi.cn/2009/09/%e5%ae%89%e8%a3%85lamp%e7%8e%af%e5%a2%83%e6%a0%87%e5%87%86%e7%89%88/">LAMP安装</a></p>
<p>         <span style="color: #ff0000;">注意：</span>安装并正确加载mod_svn模块apache需要另加mod_dav,mod_dav_fs 两个模块. 参考如下</p>
<blockquote><p>"./configure" "--prefix=/usr/local/apache2" "--enable-static-support" "--enable-static-htpasswd" "--enable-static-htdigest" "--enable-static-rotatelogs" "--enable-static-logresolve" "--enable-static-ab" "--enable-static-checkgid" "--enable-so" "--enable-authz-host" "--enable-mime" "--enable-dir" "--enable-log-config" "--disable-authn-file" "--disable-authn-default" "--disable-authz-groupfile" "--disable-authz-user" "--disable-authz-default" "--disable-auth-basic" "--disable-include" "--disable-filter" "--disable-charset-lite" "--disable-env" "--enable-autoindex" "--disable-asis" "--disable-cgid" "--enable-cgi" "--enable-negotiation=shared" "--enable-actions=shared" "--enable-alias" "--enable-rewrite" "--enable-deflate" <span style="color: #ff0000;"> --enable-dav --enable-dav-fs </span></p></blockquote>
<p>        否则:启动apache时会报错误</p>
<p>  </p>
<p><strong>  2.install svn 和svn和整合</strong></p>
<p>           详细方法参考：<a href="http://www.ibm.com/developerworks/cn/java/j-lo-apache-subversion/">http://www.ibm.com/developerworks/cn/java/j-lo-apache-subversion/</a></p>
<p>  本例中的安装简要如下： </p>
<pre>      <span style="color: #c0c0c0;"># download the necessary files
</span>          wget <a href="http://subversion.tigris.org/downloads/subversion-1.6.5.tar.bz2">http://subversion.tigris.org/downloads/subversion-1.6.5.tar.bz2</a>
          wget <a href="http://www.sqlite.org/sqlite-amalgamation-3.6.13.tar.gz">http://www.sqlite.org/sqlite-amalgamation-3.6.13.tar.gz</a>
     
      <span style="color: #c0c0c0;"># untar the downloaded file</span>
         tar zxvf  sqlite-amalgamation-3.6.13.tar.gz
         tar jxvf subversion-1.6.5.tar.bz2
    
      <span style="color: #c0c0c0;"># create a "sqlite-amalgamation" Directory in subversion-1.6.5</span>
      <span style="color: #c0c0c0;"># copy the ../sqlite-3.6.13/sqlite3.c  nto subversion-1.6.5/sqlite-amalgamation</span>
         mkdir -p sqlite-amalgamation
         cp ../sqlite-3.6.13/sqlite3.c   ./sqlite-amalgamation
 
   <span style="color: #c0c0c0;">   # Compile and install</span>
         ./configure  --prefix=/usr/local/svn
                      --with-apxs=/usr/local/apache2/bin/apxs
          make &amp;&amp;make install

      <span style="color: #c0c0c0;"># export svn path variables in you Environment</span> 
         export PATH=$PATH:/usr/local/svn/bin/</pre>
<pre><span style="color: #888888;">     ### 一些对svn的测试##########
        mkdir /usr/local/svn/repos
        svnadmin create --fs-type fsfs /usr/local/svn/repos/
        svn list --verbose </span><a href="file:///usr/local/svn/repos/"><span style="color: #888888;">file:///usr/local/svn/repos/
</span></a><span style="color: #888888;">        svn import /etc/sysconfig/grub  </span><a href="file:///usr/local/svn/repos/"><span style="color: #888888;">file:///usr/local/svn/repos/</span></a><span style="color: #888888;"> --message "init"
     ###########################</span></pre>
<h2>三.安装usvn</h2>
<p>  <strong> 1.下载文件并解压到一个目录，</strong>如本例中/usr/local/apache2/htdocs/usvn-1.0</p>
<pre>     cd /usr/local/apache2/htdocs
     wget <a href="http://usvn.tigris.org/files/documents/5823/46665/usvn-1.0.0.zip">http://usvn.tigris.org/files/documents/5823/46665/usvn-1.0.0.zip</a>
     unzip usvn-1.0.0.zip
       ______________________________________
          cd  usvn-1.0
          [root@study usvn-1.0]# pwd
     <span style="color: #ff0000;">    /usr/local/apache2/htdocs/usvn-1.0</span>
      ______________________________________</pre>
<p><strong>   2.添加apache的alias用于web访问，</strong>   </p>
<pre>cat &lt;&lt; END &gt;&gt;/usr/local/apache2/conf/httpd.conf
         Alias /usvn "/usr/local/apache2/htdocs/usvn-1.0/public"
         &lt;Directory "/usr/local/apache2/htdocs/usvn-1.0/public"&gt;
         Options Indexes Includes FollowSymLinks MultiViews ExecCGI
         AllowOverride all
         Order allow,deny
         Allow from all
     &lt;/Directory&gt;
END</pre>
<p><strong>  3.重启apache2</strong></p>
<p>  <strong>4.http://server/usvn 进入安装system check页面.根据提示来做就可以.</strong></p>
<p><img class="alignnone" src="http://farm4.static.flickr.com/3426/3949518162_36178e1afc.jpg" alt="" width="365" height="500" /></p>
<p>有两个注意:</p>
<p> <strong>1. 权限修改完后要修改回来. 可以参考如下</strong><br />
        <span style="color: #ff0000;"> 安装前</span></p>
<pre>         cd usvn-1.0
        chmod a+w ./*   </pre>
<p> <span style="color: #ff0000;">        安装完后</span></p>
<pre>         cd ../usvn-1.0
        chmod a-w ./*</pre>
<p><strong>2.如果提示找不到svn 可以进行如下操作.</strong><br />
                  <img src="http://farm4.static.flickr.com/3529/3949539260_37eb11842a_m.jpg" alt="" width="214" height="240" /></p>
<pre>        cd /usr/local/bin  
        ln -s /usr/local/svn/bin/* ./</pre>
<pre> 3.更详细,更深的安装请参考: <a href="https://trac.usvn.info/wiki/Documentation/Install">https://trac.usvn.info/wiki/Documentation/Install</a></pre>
<h3>相关文章</h3>
<ul class="related_post">
<li>2009年08月27日 -- <a href="http://www.realqi.cn/2009/08/subversion%e5%ae%9e%e8%b7%b5%e6%a1%88%e4%be%8b/" title="Subversion实践案例">Subversion实践案例 (0)</a></li>
</ul>
]]></content:encoded>
			<wfw:commentRss>http://www.realqi.cn/2009/09/install-usvn-on-centos/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
	</channel>
</rss>

