<?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>Yousri&#039;s Blog &#187; kbs_bbs</title>
	<atom:link href="http://blog.yousri.org/tag/kbs_bbs/feed" rel="self" type="application/rss+xml" />
	<link>http://blog.yousri.org</link>
	<description>一个人骑单车在陌生城市路上自由穿梭的生活</description>
	<lastBuildDate>Fri, 20 Jan 2012 15:01:59 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
		<item>
		<title>Apache编译安装配置并支持Subversion版本控制</title>
		<link>http://blog.yousri.org/2010/02/25/install_apache_and_subversion.html</link>
		<comments>http://blog.yousri.org/2010/02/25/install_apache_and_subversion.html#comments</comments>
		<pubDate>Thu, 25 Feb 2010 07:39:00 +0000</pubDate>
		<dc:creator>Yousri</dc:creator>
				<category><![CDATA[技术]]></category>
		<category><![CDATA[生活工作]]></category>
		<category><![CDATA[Apache]]></category>
		<category><![CDATA[kbs_bbs]]></category>
		<category><![CDATA[LAMP]]></category>
		<category><![CDATA[subversion]]></category>
		<category><![CDATA[svn]]></category>

		<guid isPermaLink="false">http://jmxc.net/yousri/2010/02/25/install_subversion_on_apache/</guid>
		<description><![CDATA[&#160;&#160;&#160;&#160;&#160; 毫无技术含量的文章,只是对先前一台服务器瞎捣鼓的后来由于上班太无聊的回忆潦草的记录备忘而已吧。。。 &#160;&#160;&#160;&#160;&#160;&#160; 一、更新CentOS系统至最新版本CentOS5.4 修改更新源 使用ustc.edu.cn的更新源 #cd /etc/yum.repos.d/ #mv CentOS-Base.repo CentOS-Base.repo.bak （备份修改前默认更新源） #wget http://centos.ustc.edu.cn/CentOS-Base.repo.5 （下载更新源） #mv CentOS-Base.repo.5 CentOS-Base.repo （因为默认的配置文件中服务器地址用的版本号是变量$releasever，所以需要将其替换为实际的版本号，否则是无法连接到服务器的，当前CentOS最新版是5.4，所以我们修改CentOS-Base.repo ） #vim CentOS-Base.repo vim全文替代命令并保存退出 :%s/$releasever/5.4/ :wq #yum update&#160;&#160; “更新下载 #lsb_release –a “查看验证版本 &#160;&#160;&#160;&#160;&#160;&#160; 二、下载安装配置Apache &#38; Mysql &#38; PHP &#38; KBS_BBS 1、目录定义： $bbs_install_dir&#160;&#160; 表示 bbs 的安装目录 /home/bbs $www_install_dir 表示 apache 的安装目录/home/www $php_install_dir&#160;&#160; 表示 php 的安装目录/home/www/php $phlinux_dir&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; 表示花生壳安装目录/usr/local/phlinux/ <a href='http://blog.yousri.org/2010/02/25/install_apache_and_subversion.html'>[...]</a><table class="wumii-related-items" cellspacing="0" cellpadding="2" border="0" width="100%" style="clear: both;">
    
    <tr>
        <td ><b><font size="-1"  style="display: block !important; padding: 20px 0 5px !important;">您可能也喜欢：</font></b></td>
    </tr>
    
            <tr>
                <td style="margin: 0 !important; padding: 0 !important; line-height: 20px !important;">
                    <img border="0" src="http://static.wumii.com/images/widget/widget_solidPoint.gif">
                    <a target="_blank" style="text-decoration: none !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fblog.yousri.org%2F2009%2F05%2F16%2F%25E5%25AE%2589%25E8%25A3%2585%25E9%2585%258D%25E7%25BD%25AE%25E5%259F%25BA%25E4%25BA%258Ekbs%25E7%25A8%258B%25E5%25BA%258F%25E7%259A%2584bbs%25E7%25B3%25BB%25E7%25BB%259F.html&from=http%3A%2F%2Fblog.yousri.org%2F2010%2F02%2F25%2Finstall_apache_and_subversion.html">
                        <font size="-1" color="#333333" style="line-height: 1.65em; font-size: 12px !important;">安装配置基于KBS程序的BBS系统</font>
                    </a>
                </td>
            </tr>
            <tr>
                <td style="margin: 0 !important; padding: 0 !important; line-height: 20px !important;">
                    <img border="0" src="http://static.wumii.com/images/widget/widget_solidPoint.gif">
                    <a target="_blank" style="text-decoration: none !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fblog.yousri.org%2F2008%2F08%2F06%2Flamp.html&from=http%3A%2F%2Fblog.yousri.org%2F2010%2F02%2F25%2Finstall_apache_and_subversion.html">
                        <font size="-1" color="#333333" style="line-height: 1.65em; font-size: 12px !important;">Ubuntu 8.04里LAMP手动编译安装架构纪录</font>
                    </a>
                </td>
            </tr>
            <tr>
                <td style="margin: 0 !important; padding: 0 !important; line-height: 20px !important;">
                    <img border="0" src="http://static.wumii.com/images/widget/widget_solidPoint.gif">
                    <a target="_blank" style="text-decoration: none !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fblog.yousri.org%2F2009%2F04%2F12%2Fapache%25E6%25BD%259C%25E5%259C%25A8%25E6%25BC%258F%25E6%25B4%259E.html&from=http%3A%2F%2Fblog.yousri.org%2F2010%2F02%2F25%2Finstall_apache_and_subversion.html">
                        <font size="-1" color="#333333" style="line-height: 1.65em; font-size: 12px !important;">Apache潜在漏洞</font>
                    </a>
                </td>
            </tr>
            <tr>
                <td style="margin: 0 !important; padding: 0 !important; line-height: 20px !important;">
                    <img border="0" src="http://static.wumii.com/images/widget/widget_solidPoint.gif">
                    <a target="_blank" style="text-decoration: none !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fblog.yousri.org%2F2008%2F08%2F28%2Fapache_tomcat_install.html&from=http%3A%2F%2Fblog.yousri.org%2F2010%2F02%2F25%2Finstall_apache_and_subversion.html">
                        <font size="-1" color="#333333" style="line-height: 1.65em; font-size: 12px !important;">Apache与Tomcat整合</font>
                    </a>
                </td>
            </tr>
    
    <tr>
        <td  align="right">
            <a style="text-decoration: none !important;" href="http://www.wumii.com/widget/relatedItems.htm" target="_blank" title="无觅相关文章插件">
                <font size="-1" color="#bbbbbb" style="display: block !important; font-family: arial !important; padding: 5px 0 !important; font-size: 12px !important; color: #bbb !important;">无觅</font>
            </a>
        </td>
    </tr>
</table>]]></description>
			<content:encoded><![CDATA[<p><font face="微软雅黑" size="2">&#160;&#160;&#160;&#160;&#160; 毫无技术含量的文章,只是对先前一台服务器瞎捣鼓的后来由于上班太无聊的回忆潦草的记录备忘而已吧。。。      </p>
<p></font><font face="微软雅黑" size="2">&#160;&#160;&#160;&#160;&#160;&#160; 一、更新CentOS系统至最新版本CentOS5.4</font></p>
<blockquote><p>修改更新源 使用ustc.edu.cn的更新源      <br />#cd /etc/yum.repos.d/       <br />#mv CentOS-Base.repo CentOS-Base.repo.bak （备份修改前默认更新源）       <br />#wget <a href="http://centos.ustc.edu.cn/CentOS-Base.repo.5">http://centos.ustc.edu.cn/CentOS-Base.repo.5</a> （下载更新源）       <br />#mv CentOS-Base.repo.5 CentOS-Base.repo       <br />（因为默认的配置文件中服务器地址用的版本号是变量$releasever，所以需要将其替换为实际的版本号，否则是无法连接到服务器的，当前CentOS最新版是5.4，所以我们修改CentOS-Base.repo ）       <br />#vim CentOS-Base.repo       <br />vim全文替代命令并保存退出       <br />:%s/$releasever/5.4/       <br />:wq       <br />#yum update&#160;&#160; “更新下载       <br />#lsb_release –a “查看验证版本</p>
</blockquote>
<p><font face="微软雅黑" size="2">&#160;&#160;&#160;&#160;&#160;&#160; 二、下载安装配置Apache &amp; Mysql &amp; PHP &amp; KBS_BBS</font></p>
<blockquote><p>1、目录定义：      <br />$bbs_install_dir&#160;&#160; 表示 bbs 的安装目录 /home/bbs       <br />$www_install_dir 表示 apache 的安装目录/home/www       <br />$php_install_dir&#160;&#160; 表示 php 的安装目录/home/www/php       <br />$phlinux_dir&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; 表示花生壳安装目录/usr/local/phlinux/ （默认安装路径）       <br />$code_dir&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; 表示存放 kbsbbs、apache 和 php 源代码的目录/home/src       <br />2、软件下载：       <br />Apache：wget -c <a href="http://apache.mirror.phpchina.com/httpd/httpd-2.2.11.tar.gz">http://apache.mirror.phpchina.com/httpd/httpd-2.2.11.tar.gz</a>       <br />Mysql:wget -c <a href="http://mysql.ntu.edu.tw/Downloads/MySQL-5.0/mysql-5.0.67-linux-i686.tar.gz">http://mysql.ntu.edu.tw/Downloads/MySQL-5.0/mysql-5.0.67-linux-i686.tar.gz</a>       <br />PHP：wget -c <a href="http://cn.php.net/get/php-5.3.0.tar.gz/from/cn2.php.net/mirror">http://cn.php.net/get/php-5.3.0.tar.gz/from/cn2.php.net/mirror</a>       <br />KBS_BBS：svn co <a href="http://svn.kcn.cn/repos/kbs/trunk/www2">http://svn.kcn.cn/repos/kbs/trunk/www2</a>       <br />3、编译安装：       <br />#tar zxvf httpd-2.2.11.tar.gz       <br />#cd httpd-2.2.11       <br />#./configure &#8211;prefix=/home/www &#8211;enable-so &#8211;enable-rewrite –enable-ssl       <br />#make &amp;&amp; make install       <br />#cd /home/www/conf/      <br />#vim httpd.conf      <br />&#160;&#160; 添加修改：（使其支持运行php程序）      <br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; AddType application/x-httpd-php .php      <br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; User bbs      <br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; Group bbs      <br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; AddDefaultCharset gb2312      </p>
<p>#cd ..       <br />#tar zxvf mysql-5.0.67.tar.gz       <br />#cd mysql-5.0.67       <br />#./configure &#8211;prefix=/usr/local/mysql &#8211;with-charset=utf8 –with-collation=utf8_general_ci &#8211;with-extra-charsets=latin1       <br />#make &amp;&amp; make install       <br />#cp support-files/my-medium.cnf /etc/my.cnf       <br />#cd /usr/local/mysql/       <br />#bin/mysql_install_db &#8211;user=mysql       <br />#chown –R root .       <br />#chown –R mysql /usr/local/mysql/var       <br />#chgrp –R mysql .       <br />#bin/mysqld_safe &#8211;user=mysql &amp;       <br />#cd /home/src/mysql-5.0.67       <br />#cp support-files/mysql.server /etc/init.d/mysql       <br />#chmod 755 /etc/init.d/mysql       </p>
<p>#yum install php-gd php-xml php-domxml zlib-devel openssl-devel gmp-devel gd libesmtp-devel       <br />#cd /home/src/       <br />#tar zxvf php-5.3.0.tar.gz       <br />#cd php-5.3.0       <br />#./configure &#8211;prefix=/home/www/php &#8211;with-apxs2=/home/www/bin/apxs &#8211;disable-debug &#8211;with-pic &#8211;disable-rpath &#8211;enable-inline-optimization &#8211;with-dom-dir=/usr &#8211;with-gd &#8211;with-freetype-dir=/usr &#8211;with-png-dir=/usr/ &#8211;with-jpeg-dir=/usr &#8211;with-zlib &#8211;enable-track-vars       <br />#make &amp;&amp; make install      <br />#cp&#160; php.ini-production /etc/php.ini      <br />#vim /etc/php.ini      <br />&#160; 修改short_open_tag = Off      <br />&#160;&#160;&#160;&#160;&#160;&#160;&#160; magic_quotes_gpc = off      <br />&#160;&#160;&#160;&#160;&#160;&#160;&#160; extension_dir = &quot;/usr/lib/php/modules&quot;      </p>
<p>#cd /home/src/       <br />#svn co &quot;<a href="http://svn.kcn.cn/repos/kbs/trunk/kbs_bbs">http://svn.kcn.cn/repos/kbs/trunk/kbs_bbs</a>&quot;       <br />#cd kbs_bbs/       <br />#./configure &#8211;prefix=/home/bbs &#8211;enable-site=jmubbs –with-php=/home/www/php &#8211;with-mysql=/usr/local/mysql &#8211;enable-ssh &#8211;enable-ssl       <br />#make &amp;&amp; make install       </p>
<p>#cd /home/src/       <br />#svn co <a href="http://svn.kcn.cn/repos/kbs/trunk/www2">http://svn.kcn.cn/repos/kbs/trunk/www2</a>       <br />#cd /home/www/       <br />#ln –s ../src/www2 htdocs </p>
</blockquote>
<p><font face="微软雅黑" size="2">&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; 三、安装编译配置Subversion版本控制</font></p>
<blockquote><p>1、安装编译支持：apr、apr-util     <br />#cd /home/src      <br />#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>      <br />#tar zxvf sqlite-amalgamation-3.6.13.tar.gz      <br />#cd sqlite-3.6.13/      <br />#./configure      <br />#make &amp;&amp; make install      <br />#tar zvxf apr-1.3.3.tar.gz      <br />#tar zvxf apr-util-1.3.4.tar.gz      <br />#tar zvxf zlib-1.2.3.tar.gz      <br />#cd apr-1.3.3      <br />#./configure &#8211;prefix=/usr/local/apr      <br />#make &amp;&amp; make install      <br />#cd ../apr-util-1.3.4      <br />#./configure&#160; &#8211;with-apr=/usr/local/apr      <br />#make &amp;&amp; make install      <br />#cd ../zlib-1.2.3      <br />#./configure&#160; &#8211;prefix=/usr/local/zlib      <br />#make &amp;&amp; make install      <br />2、重新编译apache及全新编译安装subversion      <br />#cd /home/src/httpd-2.2.11      <br />#./configure &#8211;prefix=/home/www &#8211;enable-so &#8211;enable-rewrite &#8211;enable-dav &#8211;with-apr=/usr/local/apr/bin/apr-1-config &#8211;with-apr-util=/usr/local/apr/bin/apu-1-config      <br />#make &amp;&amp; make install      <br />#cd /home/src/subversion-1.6.9/      <br />#./configure &#8211;prefix=/home/subversion &#8211;with-apxs=/home/www/bin/apxs &#8211;with-apr=/usr/local/apr/bin/apr-1-config &#8211;with-apr-util=/usr/local/apr/bin/apu-1-config &#8211;with-ssl &#8211;with-zlib –enable-maintainer-mode      <br />#make &amp;&amp; make install      <br />3、配置Subversion      <br />a、创建账号密码：      <br />#htpasswd –c /home/svndata/www/conf/passwd yousri       <br />注：需输两次密码确认；第一次设置用户密码要加入 –c 这个参数，以后就可以不用了      <br />b、创建资料库：      <br />#/home/subversion/bin/svnadmin create /home/svndata/www      <br />c、确认apache配置文件httpd.conf ,默认应该增加了一下两个模块加载：      <br />LoadModule dav_svn_module&#160;&#160;&#160;&#160; modules/mod_dav_svn.so      <br />LoadModule authz_svn_module&#160;&#160; modules/mod_authz_svn.so      <br />同时添加增加一下配置信息：      <br />&lt;Location /svn&gt;      <br />&#160;&#160;&#160; DAV svn      <br />&#160;&#160;&#160; SVNPath /home/svndata/www      <br />&#160;&#160;&#160; AuthType Basic      <br />&#160;&#160;&#160; AuthName &quot;Subversion repository&quot;      <br />&#160;&#160;&#160; AuthUserFile /home/svndata/www/conf/passwd      <br />&#1<br />
60<br />
;&#160;&#160; Require valid-user      <br />&lt;/Location&gt;      <br />最后设置/home/svndata目录权限设置为755并重启apache服务      <br />d、导入数据至资料库      <br />#/home/subversion/bin/svn import /home/www/htdocs <a href="///home/svndata/www">file:///home/svndata/www</a> –m “web code”      <br />浏览访问测试：<a href="http://jmxc.vicp.net:20102/svn">http://jmxc.vicp.net:20102/svn</a></p>
</blockquote>
<table class="wumii-related-items" cellspacing="0" cellpadding="2" border="0" width="100%" style="clear: both;">
    
    <tr>
        <td ><b><font size="-1"  style="display: block !important; padding: 20px 0 5px !important;">您可能也喜欢：</font></b></td>
    </tr>
    
            <tr>
                <td style="margin: 0 !important; padding: 0 !important; line-height: 20px !important;">
                    <img border="0" src="http://static.wumii.com/images/widget/widget_solidPoint.gif">
                    <a target="_blank" style="text-decoration: none !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fblog.yousri.org%2F2009%2F05%2F16%2F%25E5%25AE%2589%25E8%25A3%2585%25E9%2585%258D%25E7%25BD%25AE%25E5%259F%25BA%25E4%25BA%258Ekbs%25E7%25A8%258B%25E5%25BA%258F%25E7%259A%2584bbs%25E7%25B3%25BB%25E7%25BB%259F.html&from=http%3A%2F%2Fblog.yousri.org%2F2010%2F02%2F25%2Finstall_apache_and_subversion.html">
                        <font size="-1" color="#333333" style="line-height: 1.65em; font-size: 12px !important;">安装配置基于KBS程序的BBS系统</font>
                    </a>
                </td>
            </tr>
            <tr>
                <td style="margin: 0 !important; padding: 0 !important; line-height: 20px !important;">
                    <img border="0" src="http://static.wumii.com/images/widget/widget_solidPoint.gif">
                    <a target="_blank" style="text-decoration: none !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fblog.yousri.org%2F2008%2F08%2F06%2Flamp.html&from=http%3A%2F%2Fblog.yousri.org%2F2010%2F02%2F25%2Finstall_apache_and_subversion.html">
                        <font size="-1" color="#333333" style="line-height: 1.65em; font-size: 12px !important;">Ubuntu 8.04里LAMP手动编译安装架构纪录</font>
                    </a>
                </td>
            </tr>
            <tr>
                <td style="margin: 0 !important; padding: 0 !important; line-height: 20px !important;">
                    <img border="0" src="http://static.wumii.com/images/widget/widget_solidPoint.gif">
                    <a target="_blank" style="text-decoration: none !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fblog.yousri.org%2F2009%2F04%2F12%2Fapache%25E6%25BD%259C%25E5%259C%25A8%25E6%25BC%258F%25E6%25B4%259E.html&from=http%3A%2F%2Fblog.yousri.org%2F2010%2F02%2F25%2Finstall_apache_and_subversion.html">
                        <font size="-1" color="#333333" style="line-height: 1.65em; font-size: 12px !important;">Apache潜在漏洞</font>
                    </a>
                </td>
            </tr>
            <tr>
                <td style="margin: 0 !important; padding: 0 !important; line-height: 20px !important;">
                    <img border="0" src="http://static.wumii.com/images/widget/widget_solidPoint.gif">
                    <a target="_blank" style="text-decoration: none !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fblog.yousri.org%2F2008%2F08%2F28%2Fapache_tomcat_install.html&from=http%3A%2F%2Fblog.yousri.org%2F2010%2F02%2F25%2Finstall_apache_and_subversion.html">
                        <font size="-1" color="#333333" style="line-height: 1.65em; font-size: 12px !important;">Apache与Tomcat整合</font>
                    </a>
                </td>
            </tr>
    
    <tr>
        <td  align="right">
            <a style="text-decoration: none !important;" href="http://www.wumii.com/widget/relatedItems.htm" target="_blank" title="无觅相关文章插件">
                <font size="-1" color="#bbbbbb" style="display: block !important; font-family: arial !important; padding: 5px 0 !important; font-size: 12px !important; color: #bbb !important;">无觅</font>
            </a>
        </td>
    </tr>
</table>]]></content:encoded>
			<wfw:commentRss>http://blog.yousri.org/2010/02/25/install_apache_and_subversion.html/feed</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
	</channel>
</rss>

