<?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>出家如初，成佛有余&#187; wiki</title>
	<atom:link href="http://www.yeeach.com/tag/wiki/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.yeeach.com</link>
	<description>专注电子商务领域，关注无线互联网，关注新媒体；Yeeach.com用于记录我技术生涯的点滴</description>
	<lastBuildDate>Sun, 25 Jul 2010 10:30:31 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0.1</generator>
		<item>
		<title>mindtouch deki wiki 安装配置指南</title>
		<link>http://www.yeeach.com/2008/02/01/mindtouch-deki-wiki-%e5%ae%89%e8%a3%85%e9%85%8d%e7%bd%ae%e6%8c%87%e5%8d%97/</link>
		<comments>http://www.yeeach.com/2008/02/01/mindtouch-deki-wiki-%e5%ae%89%e8%a3%85%e9%85%8d%e7%bd%ae%e6%8c%87%e5%8d%97/#comments</comments>
		<pubDate>Fri, 01 Feb 2008 00:36:46 +0000</pubDate>
		<dc:creator>chuanliang</dc:creator>
				<category><![CDATA[技术相关]]></category>
		<category><![CDATA[知识库]]></category>
		<category><![CDATA[deki]]></category>
		<category><![CDATA[mediawiki]]></category>
		<category><![CDATA[wiki]]></category>
		<category><![CDATA[安装配置]]></category>

		<guid isPermaLink="false">http://www.yeeach.com/2008/02/01/mindtouch-deki-wiki-%e5%ae%89%e8%a3%85%e9%85%8d%e7%bd%ae%e6%8c%87%e5%8d%97/</guid>
		<description><![CDATA[1 环境说明 操作系统： Redhat AS4 数据库： mysql 5.0.51。由于使用了存储过程，必须使用myq 5.0.51以上版本，自带的版本太低。 php： 5.2.5，必须使用5.0以上php版本，自带的版本太低。 mono： wget http://www.go-mono.com/download-stable/rhel-4-i386/mono.zip mkdir mono mv mono.zip mono/ rpm -ivh *rpm httpd： httpd-2.0.52-25.ent httpd-manual-2.0.52-25.ent system-config-httpd-1.3.1-1 httpd-devel-2.0.52-25.ent httpd-suexec-2.0.52-25.ent gd： gd-2.0.28-4.4E.1 gd-devel-2.0.28-4.4E.1 zlib： zlib-devel-1.2.1.2-1.2 zlib-1.2.1.2-1.2 png： libpng-1.2.7-1.el4.2 libpng10-1.0.16-1 libpng-devel-1.2.7-1.el4.2 libpng10-devel-1.0.16-1 jpeg： libjpeg-devel-6b-33 libjpeg-6b-33 curl： curl-7.12.1-8.rhel4 curl-devel-7.12.1-8.rhel4 freetype： freetype-2.1.9-1 freetype-demos-2.1.9-1 freetype-devel-2.1.9-1 freetype-utils-2.1.9-1 ImageMagick： ImageMagick-c++-6.0.7.1-14 ImageMagick-devel-6.0.7.1-14 xloadimage-4.1-36.RHEL4 ImageMagick-perl-6.0.7.1-14 [...]]]></description>
			<content:encoded><![CDATA[<h3>1 环境说明</h3>
<p><b>操作系统：</b>
<p>Redhat AS4
<p><b>数据库：</b>
<p>mysql 5.0.51。由于使用了存储过程，必须使用myq 5.0.51以上版本，自带的版本太低。
<p><b>php</b><b>：</b>
<p>5.2.5，必须使用5.0以上php版本，自带的版本太低。
<p><b>mono</b><b>：</b>
<p>wget http://www.go-mono.com/download-stable/rhel-4-i386/mono.zip
<p>mkdir mono
<p>mv mono.zip mono/
<p>rpm -ivh *rpm
<p><b>httpd</b><b>：</b>
<p>httpd-2.0.52-25.ent
<p>httpd-manual-2.0.52-25.ent
<p>system-config-httpd-1.3.1-1
<p>httpd-devel-2.0.52-25.ent
<p>httpd-suexec-2.0.52-25.ent
<p><b>gd</b><b>：</b>
<p>gd-2.0.28-4.4E.1
<p>gd-devel-2.0.28-4.4E.1
<p><b>zlib</b><b>：</b>
<p>zlib-devel-1.2.1.2-1.2
<p>zlib-1.2.1.2-1.2
<p><b>png</b><b>：</b>
<p>libpng-1.2.7-1.el4.2
<p>libpng10-1.0.16-1
<p>libpng-devel-1.2.7-1.el4.2
<p>libpng10-devel-1.0.16-1
<p><b>jpeg</b><b>：</b>
<p>libjpeg-devel-6b-33
<p>libjpeg-6b-33
<p><b>curl</b><b>：</b>
<p>curl-7.12.1-8.rhel4
<p>curl-devel-7.12.1-8.rhel4
<p><b>freetype</b><b>：</b>
<p>freetype-2.1.9-1
<p>freetype-demos-2.1.9-1
<p>freetype-devel-2.1.9-1
<p>freetype-utils-2.1.9-1
<p><b>ImageMagick</b><b>：</b>
<p>ImageMagick-c++-6.0.7.1-14
<p>ImageMagick-devel-6.0.7.1-14
<p>xloadimage-4.1-36.RHEL4
<p>ImageMagick-perl-6.0.7.1-14
<p>ImageMagick-6.0.7.1-14
<p>ImageMagick-c++-devel-6.0.7.1-14
<p><b>wv</b><b>：</b>
<p>libwvstreams-3.75.0-2
<p>wvdial-1.54.0-3
<p><b>links</b><b>：</b>
<p>symlinks-1.2-22
<p>elinks-0.9.2-3.2<br />
<h3>2 安装步骤</h3>
<h4>2.1 、卸载系统缺省的mysql库</h4>
<h4>2.2 、卸载缺省的php库</h4>
<h4>2.3 、安装PHP5</h4>
<p>./configure &#8211;with-apxs2=/usr/sbin/apxs \
<p>&#8211;with-mysql=/usr \
<p>&#8211;with-mysqli=/usr/bin/mysql_config \
<p>&#8211;with-libxml-dir=/usr \
<p>&#8211;enable-dba \
<p>&#8211;with-openssl \
<p>&#8211;with-regex=php \
<p>&#8211;enable-bcmath \
<p>&#8211;with-gnu-ld \
<p>&#8211;with-tsrm-pthreads \
<p>&#8211;enable-ftp \
<p>&#8211;with-gettext \
<p>&#8211;enable-zend-multibyte \
<p>&#8211;enable-mbstring=all \
<p>&#8211;with-curl=/usr \
<p>&#8211;with-gd=/usr \
<p>&#8211;with-jpeg-dir=/usr \
<p>&#8211;with-png-dir=/usr \
<p>&#8211;with-zlib-dir=/usr \
<p>&#8211;with-freetype-dir=/usr
<p>make
<p>make install<br />
<h4>2.4 、修改httpd.conf</h4>
<p>AddType application/x-httpd-php .php
<p>AddType application/x-httpd-php3 .php3
<p>AddType application/x-httpd-php4 .php4
<p>AddType application/x-httpd-php-source .phps<br />
<h4>2.5 、修改php.ini</h4>
<p>拷贝php.ini-dist为php.ini
<p>cp php.ini-dist `php -i|grep php.ini|awk -F &#8220;=&gt;&#8221; &#8216;{print $2}&#8217;`/php.ini
<p>修改php.ini的如下内容：
<p>session.save_path=/tmp
<p>memory_limit = 128M
<p>post_max_size = 64M
<p>upload_max_filesize = 64M<br />
<h4>2.6 、安装mysql</h4>
<h4>2.7 、安装mono</h4>
<p>wget http://www.go-mono.com/download-stable/rhel-4-i386/mono.zip
<p>mkdir mono
<p>mv mono.zip mono/
<p>rpm -ivh *rpm<br />
<h4>2.8 、为mono创建/var/www/.wapi</h4>
<p>mkdir /var/www/.wapi
<p>chown apache /var/www/.wapi<br />
<h4>2.9 、安装deki</h4>
<p>wget http://downloads.sourceforge.net/dekiwiki/Deki_Wiki_1.8.3c_Hayes_source.tar.gz
<p>tar xvzf Deki_Wiki_1.8.2b_Hayes_source.tar.gz
<p>cd Deki_Wiki_1.8.3c_Hayes_source
<p>mkdir /var/www/deki-hayes
<p>cp -r web/* /var/www/deki-hayes/
<p>service httpd restart<br />
<h4>2.10 、编辑config/dekihost，修改apache用户www-data为apache</h4>
<p>#!/bin/bash
<p># path to your wiki
<p>DEKI_PATH=/var/www/deki-hayes
<p># this should match your Apache ServerName directive
<p>DEKI_SERVERNAME=deki-hayes
<p>prog=&#8221;MindTouch Deki Host Service&#8221;
<p>start(){
<p>if [ -f $DEKI_PATH/bin/mindtouch.host.sh ]; then
<p>su -s /bin/bash apache &#8212; $DEKI_PATH/bin/mindtouch.host.sh start
<p>fi
<p>}
<p>stop(){
<p>if [ -f $DEKI_PATH/bin/mindtouch.host.sh ]; then
<p>su -s /bin/bash apache &#8212; $DEKI_PATH/bin/mindtouch.host.sh stop
<p>fi
<p>}
<p>status(){
<p>testDream
<p>}
<p>以下内容省略<br />
<h4>2.11 、配置自动启动</h4>
<p>cp config/dekihost /etc/init.d/
<p>ln -s /etc/init.d/dekihost /etc/rc3.d/S86dekihost
<p>ln -s /etc/init.d/dekihost /etc/rc5.d/S86dekihost<br />
<h4>2.12 、创建deki的log文件</h4>
<p>touch /var/log/deki-api.log
<p>chown apache /var/log/deki-api.log<br />
<h4>2.13 、编辑/etc/httpd/conf/httpd.conf，在文件后增加如下内容</h4>
<p>NameVirtualHost *:80
<p>#
<p># NOTE: NameVirtualHost cannot be used without a port specifier
<p># (e.g. :80) if mod_ssl is being used, due to the nature of the
<p># SSL protocol.
<p>#
<p>#
<p># VirtualHost example:
<p># Almost any Apache directive may go into a VirtualHost container.
<p># The first VirtualHost section is used for requests without a known
<p># server name.
<p>#
<p>&lt;VirtualHost *:80&gt;
<p>ServerName deki-hayes
<p>ErrorLog /var/log/httpd/error.log
<p>CustomLog /var/log/httpd/access.log common
<p>DocumentRoot &#8220;/var/www/deki-hayes&#8221;
<p>RewriteEngine On
<p>RewriteCond %{REQUEST_URI} ^/$
<p>RewriteRule ^/$ /index.php?title= [L,NE]
<p>RewriteCond %{REQUEST_URI} ^/@gui/[^.]+$
<p>RewriteRule ^/@gui/(.*)$ /proxy.php?path=$1 [L,QSA,NE]
<p>RewriteCond %{REQUEST_URI} !^/(@api|editor|skins|config|@gui)/
<p>RewriteCond %{REQUEST_URI} !^/index\.php
<p>RewriteCond %{REQUEST_URI} !^/favicon\.ico$
<p>RewriteCond %{REQUEST_URI} !^/robots\.txt$
<p>RewriteCond %{QUERY_STRING} ^$ [OR] %{REQUEST_URI} ^/Special:Search
<p>RewriteRule ^/(.*)$ /index.php?title=$1 [L,QSA,NE]
<p># deki-api uses encoded slashes in query parameters so AllowEncodedSlashes must be On
<p>AllowEncodedSlashes On
<p># mod_proxy rules
<p>ProxyPass /@api http://localhost:8081
<p>ProxyPassReverse /@api http://localhost:8081
<p>SetEnv force-proxy-request-1.0 1
<p>SetEnv proxy-nokeepalive 1
<p>&lt;/VirtualHost&gt;<br />
<h4>2.14 、修改目录权限</h4>
<p>chown -R apache /var/www/deki-hayes
<p>apachectl restart<br />
<h4>2.15 、授权apache能够创建/usr/local/var/目录，用于存放lucene index</h4>
<p>mkdir -p /usr/local/var
<p>chown apache /usr/local/var<br />
<h4>2.16 、登录http://ip/config/index.php，通过页面安装deki</h4>
<h4>2.17 、页面安装完成后，自行如下操作</h4>
<p>cd /var/www/deki-hayes/config
<p>mkdir /etc/dekiwiki
<p>chown apache /etc/dekiwiki
<p>cp mindtouch.deki.startup.xml /etc/dekiwiki
<p>cp LocalSettings.php /var/www/deki-hayes/
<p>cp AdminSettings.php /var/www/deki-hayes/
<p>cp mindtouch.host.sh /var/www/deki-hayes/bin/
<p>/etc/init.d/dekihost start<br />
<h3>3 参考资料</h3>
<p><a href="http://wiki.opengarden.org/Deki_Wiki/Installation_and_Upgrade/1.8_Hayes_Official_Install_and_Upgrade_Guide/CentOS_5" onclick="javascript:pageTracker._trackPageview('/outbound/article/http://wiki.opengarden.org/Deki_Wiki/Installation_and_Upgrade/1.8_Hayes_Official_Install_and_Upgrade_Guide/CentOS_5');">http://wiki.opengarden.org/Deki_Wiki/Installation_and_Upgrade/1.8_Hayes_Official_Install_and_Upgrade_Guide/CentOS_5</a></p>
<div class="wlWriterSmartContent" id="scid:0767317B-992E-4b12-91E0-4F059A8CECA8:b094471d-52ff-4b77-9e18-96f43c51fc1b" style="padding-right: 0px; display: inline; padding-left: 0px; float: none; padding-bottom: 0px; margin: 0px; padding-top: 0px">Technorati 标签: <a href="http://technorati.com/tags/deki" onclick="javascript:pageTracker._trackPageview('/outbound/article/http://technorati.com/tags/deki');" rel="tag">deki</a>,<a href="http://technorati.com/tags/wiki" onclick="javascript:pageTracker._trackPageview('/outbound/article/http://technorati.com/tags/wiki');" rel="tag">wiki</a>,<a href="http://technorati.com/tags/%e5%ae%89%e8%a3%85%e9%85%8d%e7%bd%ae" onclick="javascript:pageTracker._trackPageview('/outbound/article/http://technorati.com/tags/%e5%ae%89%e8%a3%85%e9%85%8d%e7%bd%ae');" rel="tag">安装配置</a>,<a href="http://technorati.com/tags/%e7%9f%a5%e8%af%86%e5%ba%93" onclick="javascript:pageTracker._trackPageview('/outbound/article/http://technorati.com/tags/%e7%9f%a5%e8%af%86%e5%ba%93');" rel="tag">知识库</a></div>
	<p></p>
	<hr noshade style="margin:0;height:1px" />
	<p>&copy; chuanliang for <a href="http://www.yeeach.com" >出家如初，成佛有余</a>, 2008. |
	  <a href="http://www.yeeach.com/2008/02/01/mindtouch-deki-wiki-%e5%ae%89%e8%a3%85%e9%85%8d%e7%bd%ae%e6%8c%87%e5%8d%97/" >Permalink</a> |
	  <a href="http://www.yeeach.com/2008/02/01/mindtouch-deki-wiki-%e5%ae%89%e8%a3%85%e9%85%8d%e7%bd%ae%e6%8c%87%e5%8d%97/#comments" >One comment</a></p>
	<p>Add to <a href="http://del.icio.us/post?url=http://www.yeeach.com/2008/02/01/mindtouch-deki-wiki-%e5%ae%89%e8%a3%85%e9%85%8d%e7%bd%ae%e6%8c%87%e5%8d%97/&amp;title=mindtouch deki wiki 安装配置指南" onclick="javascript:pageTracker._trackPageview('/outbound/article/http://del.icio.us/post?url=http://www.yeeach.com/2008/02/01/mindtouch-deki-wiki-%e5%ae%89%e8%a3%85%e9%85%8d%e7%bd%ae%e6%8c%87%e5%8d%97/&amp;title=mindtouch deki wiki 安装配置指南');">del.icio.us</a></p>
	<p>Search blogs linking this post with <a href="http://www.technorati.com/search/http://www.yeeach.com/2008/02/01/mindtouch-deki-wiki-%e5%ae%89%e8%a3%85%e9%85%8d%e7%bd%ae%e6%8c%87%e5%8d%97/" onclick="javascript:pageTracker._trackPageview('/outbound/article/http://www.technorati.com/search/http://www.yeeach.com/2008/02/01/mindtouch-deki-wiki-%e5%ae%89%e8%a3%85%e9%85%8d%e7%bd%ae%e6%8c%87%e5%8d%97/');" title="Search on Technorati">Technorati</a></p>
	<p>Want more on these topics ? Browse the archive of posts filed under <a href="http://www.yeeach.com/category/%e6%8a%80%e6%9c%af-%e8%bd%af%e4%bb%b6/"  title="查看 技术相关 的全部文章" rel="category tag">技术相关</a>.</p>]]></content:encoded>
			<wfw:commentRss>http://www.yeeach.com/2008/02/01/mindtouch-deki-wiki-%e5%ae%89%e8%a3%85%e9%85%8d%e7%bd%ae%e6%8c%87%e5%8d%97/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
	</channel>
</rss>
