<?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>Supporting the UW Web &#187; wiki</title>
	<atom:link href="http://staff.washington.edu/agraf/category/wiki/feed/" rel="self" type="application/rss+xml" />
	<link>http://staff.washington.edu/agraf</link>
	<description></description>
	<lastBuildDate>Wed, 06 May 2009 21:34:28 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.8.6</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>Moving a MediaWiki installation from InnoDB to MyISAM</title>
		<link>http://staff.washington.edu/agraf/2008/05/05/moving-a-mediawiki-installation-from-innodb-to-myisam/</link>
		<comments>http://staff.washington.edu/agraf/2008/05/05/moving-a-mediawiki-installation-from-innodb-to-myisam/#comments</comments>
		<pubDate>Mon, 05 May 2008 23:39:16 +0000</pubDate>
		<dc:creator>agraf</dc:creator>
				<category><![CDATA[mysql]]></category>
		<category><![CDATA[web]]></category>
		<category><![CDATA[wiki]]></category>
		<category><![CDATA[InnoDB]]></category>
		<category><![CDATA[MediaWiki]]></category>
		<category><![CDATA[search-and-replace]]></category>

		<guid isPermaLink="false">http://staff.washington.edu/agraf/?p=26</guid>
		<description><![CDATA[
Export the DB to sql statements.
Search-and-replace &#8220;InnoDB&#8221; with &#8220;MYISAM&#8221;.
Re-import the tables.  Might want to do this into a different DB than the old one, just in case.
Configure MediaWiki to use the new MyISAM DB.
Make sure the user MediaWiki is using to connect to MySQL will be able to access the new DB.

Bonus:

Put the &#8220;skip-innodb&#8221; line [...]]]></description>
			<content:encoded><![CDATA[<ul>
<li>Export the DB to sql statements.</li>
<li>Search-and-replace &#8220;InnoDB&#8221; with &#8220;MYISAM&#8221;.</li>
<li>Re-import the tables.  Might want to do this into a different DB than the old one, just in case.</li>
<li>Configure MediaWiki to use the new MyISAM DB.</li>
<li>Make sure the user MediaWiki is using to connect to MySQL will be able to access the new DB.</li>
</ul>
<p>Bonus:</p>
<ul>
<li>Put the &#8220;skip-innodb&#8221; line into the .my.cnf file.</li>
<li>Stop the DB.</li>
<li>Start the DB.</li>
</ul>
<p>InnoDB is gone.  Yaaay.</p>
<p>detail:</p>
<blockquote><p>
<kbd>bin/mysqldump -u root -p --lock-tables --add-drop-database DATABASE_NAME &gt; DATABASE_NAME.sql</kbd></p>
<p><kbd>/rc22/d77/agraf/bin/rpl  'ENGINE=InnoDB' 'ENGINE=MyISAM' DATABASE_NAME.sql</kbd></p>
<p><kbd>bin/mysql -u root -p DATABASE_NAME &lt; DATABASE_NAME.sql</kdb>
</p></blockquote>
]]></content:encoded>
			<wfw:commentRss>http://staff.washington.edu/agraf/2008/05/05/moving-a-mediawiki-installation-from-innodb-to-myisam/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Wiki installation documentation updates</title>
		<link>http://staff.washington.edu/agraf/2008/04/23/wiki-installation-documentation-updates/</link>
		<comments>http://staff.washington.edu/agraf/2008/04/23/wiki-installation-documentation-updates/#comments</comments>
		<pubDate>Wed, 23 Apr 2008 23:59:01 +0000</pubDate>
		<dc:creator>agraf</dc:creator>
				<category><![CDATA[mysql]]></category>
		<category><![CDATA[php]]></category>
		<category><![CDATA[python]]></category>
		<category><![CDATA[web]]></category>
		<category><![CDATA[wiki]]></category>

		<guid isPermaLink="false">http://staff.washington.edu/agraf/?p=24</guid>
		<description><![CDATA[Today I updated the documentation for installing some wikis.

MediaWiki instructions went from version 1.11.0 to 1.12.0
MoinMoin instructions went from version 1.5.3 to 1.5.8

The new version of MediaWiki has an option for selecting InnoDB or MyISAM, so the previous changes to that documentation don&#8217;t seem quite as necessary, but they still make sense, so I&#8217;ve left [...]]]></description>
			<content:encoded><![CDATA[<p>Today I updated the documentation for installing some wikis.</p>
<ul>
<li><a href="http://www.washington.edu/computing/web/publishing/mediawiki.html">MediaWiki instructions</a> went from version 1.11.0 to 1.12.0</li>
<li><a href="http://www.washington.edu/computing/web/publishing/moinmoin.html">MoinMoin instructions</a> went from version 1.5.3 to 1.5.8</li>
</ul>
<p>The new version of MediaWiki has an option for selecting InnoDB or MyISAM, so the previous changes to that documentation don&#8217;t seem quite as necessary, but they still make sense, so I&#8217;ve left them intact.</p>
]]></content:encoded>
			<wfw:commentRss>http://staff.washington.edu/agraf/2008/04/23/wiki-installation-documentation-updates/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Don&#8217;t Use InnoDB over NFS</title>
		<link>http://staff.washington.edu/agraf/2008/04/21/dont-use-innodb-over-nfs/</link>
		<comments>http://staff.washington.edu/agraf/2008/04/21/dont-use-innodb-over-nfs/#comments</comments>
		<pubDate>Mon, 21 Apr 2008 18:55:06 +0000</pubDate>
		<dc:creator>agraf</dc:creator>
				<category><![CDATA[mysql]]></category>
		<category><![CDATA[web]]></category>
		<category><![CDATA[wiki]]></category>
		<category><![CDATA[InnoDB]]></category>
		<category><![CDATA[MediaWiki]]></category>

		<guid isPermaLink="false">http://staff.washington.edu/agraf/?p=22</guid>
		<description><![CDATA[I edited the MediaWiki instructions today to include a note that users should disable InnoDB before installing MediaWiki.  If people do this, then their wikis will work after MySQL has been automatically restarted by cron after a system restart.  If people don&#8217;t do this, then I have to fix their databases after a [...]]]></description>
			<content:encoded><![CDATA[<p>I edited the <a href="http://www.washington.edu/computing/web/publishing/mediawiki.html#preReq">MediaWiki instructions</a> today to include a note that users should disable InnoDB before installing MediaWiki.  If people do this, then their wikis will work after MySQL has been automatically restarted by cron after a system restart.  If people don&#8217;t do this, then I have to fix their databases after a system restart due to stale NFS locks.<br />
I wrote about this topic last Monday.  Since then I read about MediaWiki and MySQL storage engines, and tried an experiment where I converted the InnoDB tables my MediaWiki installation was using to MyISAM tables.  As far as I can tell, MediaWiki works fine using MyISAM.</p>
<p>Here&#8217;s a brief mention on the MySQL Reference Manual of problems that InnoDB has when its data or log files are stored on NFS volumes: <a href="http://dev.mysql.com/doc/refman/5.0/en/innodb-restrictions.html">Restrictions on InnoDB Tables</a></p>
<blockquote><p>
<strong>Warning</strong></p>
<p>It is not a good idea to configure  to use datafiles or logfiles on NFS volumes. Otherwise, the files might be locked by other processes and become unavailable for use by MySQL.
</p></blockquote>
<p>The issue in the cases I see commonly seems to be that when the NFS client system is rebooted, the NFS server does not get any notice that locks should be released on the files.  When the NFS client comes back up from the reboot and reconnects to the server, those files are still locked, and the client cannot get a new lock on them.  This causes MySQL to issue errors like the following:</p>
<blockquote><p>
InnoDB: Unable to lock ./ibdata1, error: 11<br />
InnoDB: Check that you do not already have another mysqld process<br />
InnoDB: using the same InnoDB data or log files.</p></blockquote>
<p>and this:</p>
<blockquote><p>InnoDB: Operating system error number 11 in a file operation.<br />
InnoDB: Error number 11 means &#8216;Resource temporarily unavailable&#8217;.<br />
InnoDB: Some operating system error numbers are described at<br />
InnoDB: http://dev.mysql.com/doc/refman/5.0/en/operating-system-error-codes.html<br />
InnoDB: Could not open or create data files.<br />
InnoDB: If you tried to add new data files, and it failed here,<br />
InnoDB: you should now edit innodb_data_file_path in my.cnf back<br />
InnoDB: to what it was, and remove the new ibdata files InnoDB created<br />
InnoDB: in this failed attempt. InnoDB only wrote those files full of<br />
InnoDB: zeros, but did not yet use them in any way. But be careful: do not<br />
InnoDB: remove old data files which contain your precious data!</p></blockquote>
]]></content:encoded>
			<wfw:commentRss>http://staff.washington.edu/agraf/2008/04/21/dont-use-innodb-over-nfs/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>MediaWiki Instructions Revision</title>
		<link>http://staff.washington.edu/agraf/2008/04/14/mediawiki-instructions-revision/</link>
		<comments>http://staff.washington.edu/agraf/2008/04/14/mediawiki-instructions-revision/#comments</comments>
		<pubDate>Mon, 14 Apr 2008 23:32:14 +0000</pubDate>
		<dc:creator>agraf</dc:creator>
				<category><![CDATA[mysql]]></category>
		<category><![CDATA[sso authentication]]></category>
		<category><![CDATA[wiki]]></category>

		<guid isPermaLink="false">http://staff.washington.edu/agraf/?p=18</guid>
		<description><![CDATA[For probably at least a year I have had instructions for installing MediaWiki on the UA Web servers.
Installing MediaWiki
http://www.washington.edu/computing/web/publishing/mediawiki.html
These instructions include a default installation that uses the MediaWiki user and authentication system, as well as an option for using the Pubcookie SSO authentication system that is used for most UW Technology applications at the University [...]]]></description>
			<content:encoded><![CDATA[<p>For probably at least a year I have had instructions for installing <a href="http://www.mediawiki.org/wiki/MediaWiki">MediaWiki</a> on the UA Web servers.</p>
<p>Installing MediaWiki<br />
<a title="http://www.washington.edu/computing/web/publishing/mediawiki.html" href="http://www.washington.edu/computing/web/publishing/mediawiki.html">http://www.washington.edu/computing/web/publishing/mediawiki.html</a></p>
<p>These instructions include a default installation that uses the MediaWiki user and authentication system, as well as an option for using the <a href="http://pubcookie.org/">Pubcookie</a> SSO authentication system that is used for most UW Technology applications at the University of Washington.  The problem with the way those instructions say to set things up is that you need to log in with Pubcookie before you can even view the wiki.  This isn&#8217;t always what&#8217;s desired.</p>
<p>A couple weeks ago two users requested a means of setting up MediaWiki so that it could be anonymously read, but users would need to log in using Pubcookie in order to edit a page.  I came up with a solution which they were both happy with, and which seems to work.  I am not sure if there are ways of breaking MediaWiki when it is configured in this manner, but it seems to be working fine so far.</p>
<p>Here is a copy of MediaWiki configured with the new anonymous read/Pubcookie required for edits configuration:</p>
<p><a href="http://staff.washington.edu/agraf/mediawiki">Test Wiki</a></p>
<p>The instructions have now been updated to include the new section called &#8220;<a href="http://www.washington.edu/computing/web/publishing/mediawiki.html#anon-read">Requiring UW NetID Authentication only for Editing</a>&#8220;.</p>
<p>The next thing to work on is changing the MediaWiki documentation to inform users that they should probably use the <a href="http://dev.mysql.com/doc/refman/5.0/en/myisam-storage-engine.html">MyISAM </a>storage engine on MediaWiki installations backed by MySQL on the UA Web servers.  This is because <a href="http://dev.mysql.com/doc/refman/5.0/en/innodb.html">InnoDB </a>databases will not come back automatically if ovid is restarted without shutting down MySQL first.  The culprit is <a href="http://en.wikipedia.org/wiki/Network_File_System">NFS</a>, which is used to serve all the files in user Web and home directories on the UA system.</p>
]]></content:encoded>
			<wfw:commentRss>http://staff.washington.edu/agraf/2008/04/14/mediawiki-instructions-revision/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
