<?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>Richard K Miller &#187; MediaWiki</title>
	<atom:link href="http://richardkmiller.com/category/mediawiki/feed" rel="self" type="application/rss+xml" />
	<link>http://richardkmiller.com</link>
	<description></description>
	<lastBuildDate>Sun, 11 Mar 2012 00:27:05 +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>What goes around, comes around</title>
		<link>http://richardkmiller.com/314/what-goes-around-comes-around</link>
		<comments>http://richardkmiller.com/314/what-goes-around-comes-around#comments</comments>
		<pubDate>Thu, 21 Feb 2008 05:57:05 +0000</pubDate>
		<dc:creator>Richard K Miller</dc:creator>
				<category><![CDATA[Main]]></category>
		<category><![CDATA[MediaWiki]]></category>
		<category><![CDATA[MySQL]]></category>
		<category><![CDATA[PHP]]></category>
		<category><![CDATA[Security]]></category>
		<category><![CDATA[Tech]]></category>
		<category><![CDATA[mediawiki mod_auth_mysql jonudell]]></category>

		<guid isPermaLink="false">http://www.richardkmiller.com/blog/archives/2008/02/what-goes-around-comes-around</guid>
		<description><![CDATA[I&#8217;m not a big believer in karma, but this week I experienced some karma-like effects. Two years ago for work, I developed code to protect wiki websites. Then I published it on my blog. This weekend a software upgrade caused &#8230; <a href="http://richardkmiller.com/314/what-goes-around-comes-around">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<div class='microid-f1113d8105150d123c3a417f48973f5e57662a94'><p>I&#8217;m not a big believer in karma, but this week I experienced some karma-like effects. Two years ago for work, I developed code to <a href="http://www.richardkmiller.com/blog/archives/2006/05/password-protecting-mediawiki-with-mod_auth_mysql">protect wiki websites</a>. Then I published it on my blog.</p>
<p>This weekend a software upgrade caused this protection code to stop working on our websites. I couldn&#8217;t find an answer. Then yesterday, some chap named Nathan left a comment describing the <a href="http://www.richardkmiller.com/blog/archives/2006/05/password-protecting-mediawiki-with-mod_auth_mysql#comment-144444">solution</a>. I hadn&#8217;t asked for help. He was simply documenting his own experience. But it was just what I needed.</p>
<p>This is fundamental to open source software &#8212; the creation of a software commons. It&#8217;s also what happens on Wikipedia, the creation of a knowledge commons.</p>
<p>In <em>Love Is the Killer App</em>, Tim Sanders suggests freely sharing your knowledge and your network, not hoarding them.</p>
<p>Jon Udell talks of &#8220;narrating&#8221; one&#8217;s work from day to day. This allows everyone to share in your vast brain knowledge, and it becomes your living résumé. I&#8217;d like to do more of that.</p>
</div>]]></content:encoded>
			<wfw:commentRss>http://richardkmiller.com/314/what-goes-around-comes-around/feed</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
		<item>
		<title>Password protecting MediaWiki with mod_auth_mysql</title>
		<link>http://richardkmiller.com/184/password-protecting-mediawiki-with-mod_auth_mysql</link>
		<comments>http://richardkmiller.com/184/password-protecting-mediawiki-with-mod_auth_mysql#comments</comments>
		<pubDate>Thu, 25 May 2006 14:55:45 +0000</pubDate>
		<dc:creator>Richard K Miller</dc:creator>
				<category><![CDATA[Main]]></category>
		<category><![CDATA[MediaWiki]]></category>
		<category><![CDATA[MySQL]]></category>
		<category><![CDATA[PHP]]></category>
		<category><![CDATA[Tech]]></category>

		<guid isPermaLink="false">http://www.richardkmiller.com/blog/archives/2006/05/password-protecting-mediawiki-with-mod_auth_mysql</guid>
		<description><![CDATA[MediaWiki is the powerful software on which Wikipedia and many other sites are built. It does not, however, come with the option to password protect pages from being viewed. (It can password protect pages from being edited.) If you need &#8230; <a href="http://richardkmiller.com/184/password-protecting-mediawiki-with-mod_auth_mysql">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<div class='microid-ec6fe6a8aacaa2fe297cff05de65a56f3ac2446e'><p>MediaWiki is the powerful software on which Wikipedia and many other sites are built.  It does not, however, come with the option to password protect pages from being viewed.  (It can password protect pages from being edited.)</p>
<p>If you need to setup a private, members-only wiki for internal use, here is how you can do it with <a href="http://www.mediawiki.org/wiki/MediaWiki">MediaWiki</a> software and the Apache server extension <a href="http://modauthmysql.sourceforge.net/">mod_auth_mysql</a>:</p>
<p>1. Install MediaWiki as usual.  Create a user account for yourself.</p>
<p>2. Add the following line to your LocalSettings.php file, located in the root of your MediaWiki installation.  This will cause MediaWiki to use a simple MD5 hash for user passwords in the database, instead of the more complicated &#8220;salted hash hash&#8221; that it normally uses.</p>
<p><code>$wgPasswordSalt = false;</code></p>
<p>3. Activate mod_auth_mysql in Apache.  This is usually done with a LoadModule line in your Apache configuration file (httpd.conf), provided the module is available.  (If not, you may need to compile or download the module.)</p>
<p><code>LoadModule mysql_auth_module  libexec/apache2/mod_auth_mysql.so</code></p>
<p>4. Create a new MySQL user that has SELECT access to the &#8220;user_name&#8221; and &#8220;user_password&#8221; fields in the &#8220;user&#8221; table of your MediaWiki installation.  Apache will use this MySQL user for connecting to the MediaWiki database.</p>
<p>5. Configure mod_auth_mysql to use the MediaWiki user table for authentication by placing the follow directives in your Apache configuration file:</p>
<p><code><br />
<directory "/path/to/your/MediaWiki/installation"><br />
  AuthName "This wiki is password protected (make sure the first letter of the username is Uppercase)"<br />
  AuthType Basic<br />
  require valid-user<br />
  AuthMySQLEnable On<br />
  AuthMySQLHost localhost<br />
  AuthMySQLUser unprivilegeduser<br />
  AuthMySQLPassword thesecretpassword<br />
  AuthMySQLDB mediawikidatabase<br />
  AuthMySQLUserTable user<br />
  AuthMySQLNameField user_name<br />
  AuthMySQLPasswordField user_password<br />
  AuthMySQLPwEncryption md5<br />
  AuthMySQLAuthoritative On<br />
</directory><br />
</code></p>
<p>6. Restart Apache.</p>
<p>Your installation of MediaWiki should now be password-protected, but your username and password will let you in.  This protects the entire wiki; no one will even know that MediaWiki is present until they login.  To give other people access, you can either create user accounts for them, or you can create a guest account that they can use until they sign themselves up.  </p>
<p>P.S. Thanks to <a href="http://www.thornock.us/wordpress/">Gary Thornock</a> for helping me with the details of installing mod_auth_mysql on FreeBSD.</p>
<p>UPDATE (2008-09-11):<br />
The latest version of MediaWiki (version 1.13) uses a new password format which is incompatible with mod_auth_mysql. It prepends &#8220;:A:&#8221; to each MD5 hash. Here is a workaround:</p>
<p>1. Create a MySQL view that mirrors the username and password, minus the prefix:<br />
<code>CREATE VIEW user_view AS SELECT user_id, user_name, substring_index(user_password, ':', -1) AS user_password FROM user;</code><br />
2. Configure mod_auth_mysql to use <code>user_view</code> instead of <code>user</code> as the lookup table.</p>
</div>]]></content:encoded>
			<wfw:commentRss>http://richardkmiller.com/184/password-protecting-mediawiki-with-mod_auth_mysql/feed</wfw:commentRss>
		<slash:comments>38</slash:comments>
		</item>
		<item>
		<title>Wikicompany</title>
		<link>http://richardkmiller.com/159/wikicompany</link>
		<comments>http://richardkmiller.com/159/wikicompany#comments</comments>
		<pubDate>Sat, 25 Mar 2006 16:59:56 +0000</pubDate>
		<dc:creator>Richard K Miller</dc:creator>
				<category><![CDATA[Main]]></category>
		<category><![CDATA[MediaWiki]]></category>

		<guid isPermaLink="false">http://www.richardkmiller.com/blog/archives/2006/03/wikicompany</guid>
		<description><![CDATA[&#8220;A free, worldwide business directory that anybody can edit&#8221;: Wikicompany It uses MediaWiki software (the same kind as Wikipedia) but I like that it also offers an API and semantic tagging. I wonder if they had to build those features &#8230; <a href="http://richardkmiller.com/159/wikicompany">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<div class='microid-a5a3215340518fa9b6a1673ceff2f02e2a0de2d2'><p>&#8220;A free, worldwide business directory that anybody can edit&#8221;:</p>
<p><a href="http://wikicompany.org/wiki/Main_Page">Wikicompany</a></p>
<p>It uses MediaWiki software (the same kind as Wikipedia) but I like that it also offers an <a href="http://www.wikicompany.org/wiki/Wikicompany:REST">API</a> and <a href="http://www.wikicompany.org/wiki/Wikicompany:Semantic_tags">semantic tagging</a>.  I wonder if they had to build those features themselves, or if they are open source plugins to MediaWiki.</p>
</div>]]></content:encoded>
			<wfw:commentRss>http://richardkmiller.com/159/wikicompany/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

