<?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/"
		xmlns:xhtml="http://www.w3.org/1999/xhtml"
>

<channel>
	<title>次世代情報都市みらい &#187; MediaWiki</title>
	<atom:link href="http://www.mirai-city.org/tag/mediawiki/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.mirai-city.org</link>
	<description>Just another WordPress weblog</description>
	<lastBuildDate>Wed, 10 Jun 2009 07:34:44 +0000</lastBuildDate>
	<language>ja</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0</generator>
		<xhtml:link rel="alternate" media="handheld" type="text/html" href="http://www.mirai-city.org/tag/mediawiki/feed/" />
		<item>
		<title>xml2sqlによるWikipediaのクローン</title>
		<link>http://www.mirai-city.org/xml2sql%e3%81%ab%e3%82%88%e3%82%8bwikipedia%e3%81%ae%e3%82%af%e3%83%ad%e3%83%bc%e3%83%b3/</link>
		<comments>http://www.mirai-city.org/xml2sql%e3%81%ab%e3%82%88%e3%82%8bwikipedia%e3%81%ae%e3%82%af%e3%83%ad%e3%83%bc%e3%83%b3/#comments</comments>
		<pubDate>Wed, 13 May 2009 01:13:19 +0000</pubDate>
		<dc:creator>齊藤 貴義</dc:creator>
				<category><![CDATA[IT]]></category>
		<category><![CDATA[MediaWiki]]></category>

		<guid isPermaLink="false">http://www.mirai-city.org/?p=255</guid>
		<description><![CDATA[xml2sqlを使えば迅速にWikipediaのダンプデータからクローンを作成できます（GFDLライセンス下においてです）。
まずxml2sqlをダウンロードしてインストールします。
$ tar xvfz xml2sql [...]]]></description>
			<content:encoded><![CDATA[<p>xml2sqlを使えば迅速にWikipediaのダンプデータからクローンを作成できます（GFDLライセンス下においてです）。<br />
まず<a href="http://meta.wikimedia.org/wiki/Xml2sql">xml2sql</a>をダウンロードしてインストールします。</p>
<blockquote><p>$ tar xvfz xml2sql-0.5.tar.gz<br />
$ cd xml2sql-0.5<br />
$ ./configure<br />
$ make<br />
$make install</p></blockquote>
<p>この時、expactが見つからないとエラーが出る可能性があります。<br />
その場合は<a href="http://sourceforge.net/projects/expat/">expactのページ</a>からダウンロードしてインストールします。<br />
私は最初expactの2.0.1を入れたのですが、xml2sqlでライブラリが不足していて動きませんでした。expact1.95.8を入れたら問題なく動作しました。</p>
<p>MediaWikiをインストールします。インストール方法は通常通りで問題ありません。私はMediaWikiの1.14.0版を落としてきて、XCacheを有効にしました。</p>
<p>さらに<a href="http://download.wikimedia.org/jawiki/">Wikipediaのダンプデータのページ</a>から最新版のダンプデータを取得します。今回はjawiki-latest-pages-articles.xml.bz2（過去の履歴や利用者ページを含まない全ページ）を使用しました。これをxml2sqlでmysqlimportが可能な状態にします。</p>
<blockquote><p>$xml2sql jawiki-latest-pages-articles.xml</p></blockquote>
<p>page.txt、revision.txt、text.txtの３種類のファイルが生成されます。これをmysqlimportでデータベースに流し込みます。</p>
<blockquote><p>$mysqlimport -u root &#8211;default-character-set=utf8 mediawiki -p -L /tmp/rivision.txt<br />
$mysqlimport -u root &#8211;default-character-set=utf8 mediawiki -p -L /tmp/text.txt<br />
$mysqlimport -u root &#8211;default-character-set=utf8 mediawiki -p -L /tmp/page.txt</p></blockquote>
<p>これでデータ投入は完了ですが、クローンを目指すためには、このほかに下記データを展開してインストールする必要があります。</p>
<blockquote><p>jawiki-latest-category.sql.gz<br />
jawiki-latest-categorylinks.sql.gz<br />
jawiki-latest-externallinks.sql.gz<br />
jawiki-latest-interwiki.sql.gz<br />
jawiki-latest-langlinks.sql.gz<br />
jawiki-latest-templatelinks.sql.gz</p></blockquote>
<p>また、日本語版Wikipediaで使われている下記の拡張機能を有効にする必要があります。</p>
<blockquote><p>ParserFunctions<br />
Cite</p></blockquote>
<p>そうして完成したのが、<a href="http://wiki.mirai-city.org/wiki/INDEX">次世代情報都市みらいwiki</a>です。</p>
]]></content:encoded>
			<wfw:commentRss>http://www.mirai-city.org/xml2sql%e3%81%ab%e3%82%88%e3%82%8bwikipedia%e3%81%ae%e3%82%af%e3%83%ad%e3%83%bc%e3%83%b3/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		<xhtml:link rel="alternate" media="handheld" type="text/html" href="http://www.mirai-city.org/xml2sql%e3%81%ab%e3%82%88%e3%82%8bwikipedia%e3%81%ae%e3%82%af%e3%83%ad%e3%83%bc%e3%83%b3/" />
	</item>
		<item>
		<title>MediaWikiで時刻設定</title>
		<link>http://www.mirai-city.org/mediawiki%e3%81%a7%e6%99%82%e5%88%bb%e8%a8%ad%e5%ae%9a/</link>
		<comments>http://www.mirai-city.org/mediawiki%e3%81%a7%e6%99%82%e5%88%bb%e8%a8%ad%e5%ae%9a/#comments</comments>
		<pubDate>Mon, 04 May 2009 08:19:05 +0000</pubDate>
		<dc:creator>齊藤 貴義</dc:creator>
				<category><![CDATA[IT]]></category>
		<category><![CDATA[MediaWiki]]></category>

		<guid isPermaLink="false">http://www.mirai-city.org/?p=82</guid>
		<description><![CDATA[標準でMediaWikiはグリニッジ標準時をタイムスタンプにしてしまう。
日本標準時に変更するにはLocalSettings.phpの中で、
$wgLocalTZoffset = &#8220;+540&#8243;;
 [...]]]></description>
			<content:encoded><![CDATA[<p>標準でMediaWikiはグリニッジ標準時をタイムスタンプにしてしまう。</p>
<p>日本標準時に変更するにはLocalSettings.phpの中で、</p>
<blockquote><p>$wgLocalTZoffset = &#8220;+540&#8243;;</p></blockquote>
<p>上記を設定する。設定後、過去の投稿も含めて日本標準時が適用される。</p>
]]></content:encoded>
			<wfw:commentRss>http://www.mirai-city.org/mediawiki%e3%81%a7%e6%99%82%e5%88%bb%e8%a8%ad%e5%ae%9a/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		<xhtml:link rel="alternate" media="handheld" type="text/html" href="http://www.mirai-city.org/mediawiki%e3%81%a7%e6%99%82%e5%88%bb%e8%a8%ad%e5%ae%9a/" />
	</item>
		<item>
		<title>MediaWikiでXCache</title>
		<link>http://www.mirai-city.org/mediawiki%e3%81%a7xcache/</link>
		<comments>http://www.mirai-city.org/mediawiki%e3%81%a7xcache/#comments</comments>
		<pubDate>Mon, 04 May 2009 04:10:15 +0000</pubDate>
		<dc:creator>齊藤 貴義</dc:creator>
				<category><![CDATA[IT]]></category>
		<category><![CDATA[MediaWiki]]></category>
		<category><![CDATA[XCache]]></category>

		<guid isPermaLink="false">http://www.mirai-city.org/?p=39</guid>
		<description><![CDATA[MediaWikiでXCacheを有効にしました（サーバーはCentOS5.3）。
最新版のXCache（1.2.2）のtar.gzを取得。
/usr/bin/phpize
./configure &#8211;enab [...]]]></description>
			<content:encoded><![CDATA[<p>MediaWikiでXCacheを有効にしました（サーバーはCentOS5.3）。<br />
最新版のXCache（1.2.2）のtar.gzを取得。</p>
<blockquote><p>/usr/bin/phpize<br />
./configure &#8211;enable-xcache &#8211;with-php-config=/usr/bin/php-config<br />
make<br />
make install</p></blockquote>
<p>さらに、インストール実行ディレクトリにxcache.iniが出来ているので、これをコピーします。</p>
<blockquote><p>cp xcache.ini /etc/php.d/</p></blockquote>
<p>xcache.mmap_path、xcache.size、xcache.var_sizeなどを適正に設定します。ここで実在するディレクトリをxcache.mmap_pathに設定すると、MediaWiki側で下記のエラーが出てしまいます。</p>
<blockquote><p>xcache.var_size is either 0 or too small to enable var data caching in</p></blockquote>
<p>あとはMediaWikiのインストールウィザードでXCacheを選択。<br />
そうして出来上がったのが、<a href="http://wiki.mirai-city.org/wiki/INDEX">みらいwiki</a>。かなり高速に動いています。</p>
]]></content:encoded>
			<wfw:commentRss>http://www.mirai-city.org/mediawiki%e3%81%a7xcache/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		<xhtml:link rel="alternate" media="handheld" type="text/html" href="http://www.mirai-city.org/mediawiki%e3%81%a7xcache/" />
	</item>
	</channel>
</rss>
