<?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"
	>

<channel>
	<title>Supporting the UW Web</title>
	<atom:link href="http://staff.washington.edu/agraf/feed/rss2/" rel="self" type="application/rss+xml" />
	<link>http://staff.washington.edu/agraf</link>
	<description></description>
	<pubDate>Fri, 01 Aug 2008 21:21:16 +0000</pubDate>
	<generator>http://wordpress.org/?v=2.6</generator>
	<language>en</language>
			<item>
		<title>Web Auth via Pubcookie and Basic Auth</title>
		<link>http://staff.washington.edu/agraf/2008/08/01/web-auth-via-pubcookie-and-basic-auth/</link>
		<comments>http://staff.washington.edu/agraf/2008/08/01/web-auth-via-pubcookie-and-basic-auth/#comments</comments>
		<pubDate>Fri, 01 Aug 2008 17:35:56 +0000</pubDate>
		<dc:creator>agraf</dc:creator>
		
		<category><![CDATA[sso authentication]]></category>

		<category><![CDATA[web]]></category>

		<category><![CDATA[Apache]]></category>

		<category><![CDATA[shibboleth]]></category>

		<guid isPermaLink="false">http://staff.washington.edu/agraf/?p=39</guid>
		<description><![CDATA[I get a significant number of requests for information on how to do this.  It&#8217;s a pretty bad kludge, but it does seem to work.
Basically, you make three directories:

one containing the content and an .htaccess file denying all access
one containing an .htaccess file allowing access via basic auth
one containing an .htaccess file allowing access via [...]]]></description>
			<content:encoded><![CDATA[<p>I get a significant number of requests for information on how to do this.  It&#8217;s a pretty bad kludge, but it does seem to work.</p>
<p>Basically, you make three directories:</p>
<ul>
<li>one containing the content and an .htaccess file denying all access</li>
<li>one containing an .htaccess file allowing access via basic auth</li>
<li>one containing an .htaccess file allowing access via pubcookie</li>
</ul>
<p>The directories with access via the different authentication methods will also contain symbolic links to either files in the content directory(if the files are not going to change much) or to another directory in the content directory so that you can change the files around without redoing the symbolic links.</p>
<p>You can take a look at an example implementation of this scheme in the <a href="http://staff.washington.edu/agraf/multi-auth">multi-auth</a> directory on my staff Web site.</p>
]]></content:encoded>
			<wfw:commentRss>http://staff.washington.edu/agraf/2008/08/01/web-auth-via-pubcookie-and-basic-auth/feed/</wfw:commentRss>
		</item>
		<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>bin/mysqldump -u root -p &#8211;lock-tables &#8211;add-drop-database DATABASE_NAME &gt; DATABASE_NAME.sql</p>
<p>/rc22/d77/agraf/bin/rpl  &#8216;ENGINE=InnoDB&#8217; &#8216;ENGINE=MyISAM&#8217; DATABASE_NAME.sql</p>
<p>bin/mysql -u root -p DATABASE_NAME &lt; DATABASE_NAME.sql</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>
		</item>
		<item>
		<title>WordPress 2.5.1 works with http-auth 2.0</title>
		<link>http://staff.washington.edu/agraf/2008/04/25/wordpress-251-works-with-http-auth-20/</link>
		<comments>http://staff.washington.edu/agraf/2008/04/25/wordpress-251-works-with-http-auth-20/#comments</comments>
		<pubDate>Fri, 25 Apr 2008 17:28:38 +0000</pubDate>
		<dc:creator>agraf</dc:creator>
		
		<category><![CDATA[blogs]]></category>

		<category><![CDATA[sso authentication]]></category>

		<category><![CDATA[web]]></category>

		<guid isPermaLink="false">http://staff.washington.edu/agraf/?p=25</guid>
		<description><![CDATA[WordPress 2.5.1 was released today, which means that I will now edit the WordPress installation documentation to use the latest WordPress release again, since version 2.5.1 works with the new http-authentication 2.0 plugin.
It is a relief to have the WordPress documentation using the latest, more secure version of WordPress again.  Of course this blog is [...]]]></description>
			<content:encoded><![CDATA[<p><a href="http://wordpress.org/development/2008/04/wordpress-251/">WordPress 2.5.1</a> was released today, which means that I will now edit the <a href="http://www.washington.edu/computing/web/publishing/wordpress.html">WordPress installation documentation</a> to use the latest WordPress release again, since version 2.5.1 works with the new <a href="http://wordpress.org/extend/plugins/http-authentication/">http-authentication 2.0</a> plugin.</p>
<p>It is a relief to have the WordPress documentation using the latest, more secure version of WordPress again.  Of course this blog is using WordPress 2.5.1 and the new http-authentication plugin now.</p>
]]></content:encoded>
			<wfw:commentRss>http://staff.washington.edu/agraf/2008/04/25/wordpress-251-works-with-http-auth-20/feed/</wfw:commentRss>
		</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>
		</item>
		<item>
		<title>New Software on the UA Web Servers</title>
		<link>http://staff.washington.edu/agraf/2008/04/23/new-software-on-the-ua-web-servers/</link>
		<comments>http://staff.washington.edu/agraf/2008/04/23/new-software-on-the-ua-web-servers/#comments</comments>
		<pubDate>Wed, 23 Apr 2008 19:07:38 +0000</pubDate>
		<dc:creator>agraf</dc:creator>
		
		<category><![CDATA[php]]></category>

		<category><![CDATA[python]]></category>

		<category><![CDATA[web]]></category>

		<category><![CDATA[ms sql]]></category>

		<category><![CDATA[sqlite]]></category>

		<guid isPermaLink="false">http://staff.washington.edu/agraf/?p=23</guid>
		<description><![CDATA[Today a couple of things were added to the UA Web servers.  This includes staff.washington.edu, faculty.washington.edu, courses.washington.edu, depts.washington.edu, students.washington.edu, ovid.u.washington.edu, and vergil.u.washington.edu.

Python was upgraded from 2.5 to 2.5.2
The sqlite3 (3.5.4) command-line tool was added.
Python&#8217;s sqlite3 module now functions properly
The MS SQL Server PHP module was added, which allows connections to MS SQL servers using PHP.

]]></description>
			<content:encoded><![CDATA[<p>Today a couple of things were added to the UA Web servers.  This includes staff.washington.edu, faculty.washington.edu, courses.washington.edu, depts.washington.edu, students.washington.edu, ovid.u.washington.edu, and vergil.u.washington.edu.</p>
<ul>
<li>Python was upgraded from 2.5 to <a href="http://www.python.org/download/releases/2.5.2/">2.5.2</a></li>
<li>The <a href="http://www.sqlite.org/about.html">sqlite3</a> (<a href="http://www.sqlite.org/changes.html#version_3_5_4">3.5.4</a>) command-line tool was added.</li>
<li>Python&#8217;s <a href="http://docs.python.org/lib/module-sqlite3.html">sqlite3 module</a> now functions properly</li>
<li>The <a href="http://www.php.net/manual/en/book.mssql.php">MS SQL Server</a> PHP module was added, which allows connections to MS SQL servers using PHP.</li>
</ul>
]]></content:encoded>
			<wfw:commentRss>http://staff.washington.edu/agraf/2008/04/23/new-software-on-the-ua-web-servers/feed/</wfw:commentRss>
		</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>
		</item>
		<item>
		<title>Making a per-user Ruby Gems repository work with your Rails app</title>
		<link>http://staff.washington.edu/agraf/2008/04/17/making-a-per-user-ruby-gems-repository-work-with-your-rails-app/</link>
		<comments>http://staff.washington.edu/agraf/2008/04/17/making-a-per-user-ruby-gems-repository-work-with-your-rails-app/#comments</comments>
		<pubDate>Thu, 17 Apr 2008 16:01:56 +0000</pubDate>
		<dc:creator>agraf</dc:creator>
		
		<category><![CDATA[ruby]]></category>

		<category><![CDATA[web]]></category>

		<guid isPermaLink="false">http://staff.washington.edu/agraf/?p=20</guid>
		<description><![CDATA[I previously published instructions for setting up a Ruby Gems repository on your own account, but I neglected to include the one special step that will let a Ruby on Rails application use that gem repository.
Now that step has been added to the end of the Ruby Gems on Your Account instructions.
I know we are [...]]]></description>
			<content:encoded><![CDATA[<p>I previously published instructions for setting up a Ruby Gems repository on your own account, but I neglected to include the one special step that will let a Ruby on Rails application use that gem repository.</p>
<p>Now that step has been added to the end of the <a href="https://wwwudev.cac.washington.edu/computing/web/publishing/rails.html#gems">Ruby Gems on Your Account</a> instructions.</p>
<p>I know we are running an out-of-date installation of Ruby and Rails, but we <em>have</em> requested a new one.  Keep your fingers crossed.</p>
<p><strong>Our Web &amp; Web dev hosts</strong><br />
ruby 1.8.4<br />
ruby on rails 1.1.6</p>
<p><strong>Current stable versions</strong><br />
ruby 1.8.6<br />
ruby on rails 2.0.2</p>
]]></content:encoded>
			<wfw:commentRss>http://staff.washington.edu/agraf/2008/04/17/making-a-per-user-ruby-gems-repository-work-with-your-rails-app/feed/</wfw:commentRss>
		</item>
		<item>
		<title>WordPress 2.5 and HTTP auth</title>
		<link>http://staff.washington.edu/agraf/2008/04/15/wordpress-25-and-http-auth/</link>
		<comments>http://staff.washington.edu/agraf/2008/04/15/wordpress-25-and-http-auth/#comments</comments>
		<pubDate>Tue, 15 Apr 2008 21:26:30 +0000</pubDate>
		<dc:creator>agraf</dc:creator>
		
		<category><![CDATA[blogs]]></category>

		<category><![CDATA[sso authentication]]></category>

		<category><![CDATA[web]]></category>

		<category><![CDATA[wordpress http-authentication]]></category>

		<guid isPermaLink="false">http://staff.washington.edu/agraf/?p=19</guid>
		<description><![CDATA[The http-authentication plugin required for the fancy Pubcookie authentication instructions for WordPress does not function with the new WordPress 2.5.
I have changed the WordPress instructions to use the old 2.0.11 version of WordPress until the plugin gets fixed.
]]></description>
			<content:encoded><![CDATA[<p>The <a href="http://dev.webadmin.ufl.edu/~dwc/2005/03/10/http-authentication-plugin/">http-authentication plugin</a> required for the fancy Pubcookie <a href="http://www.washington.edu/computing/web/publishing/wordpress.html#auth">authentication instructions</a> for WordPress does not function with the new WordPress 2.5.</p>
<p>I have changed the <a href="http://www.washington.edu/computing/web/publishing/wordpress.html#auth">WordPress instructions</a> to use the old 2.0.11 version of WordPress until the plugin gets fixed.</p>
]]></content:encoded>
			<wfw:commentRss>http://staff.washington.edu/agraf/2008/04/15/wordpress-25-and-http-auth/feed/</wfw:commentRss>
		</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>
		</item>
		<item>
		<title>Web Server Upgrades in 2008</title>
		<link>http://staff.washington.edu/agraf/2007/12/31/web-server-upgrades-in-2008/</link>
		<comments>http://staff.washington.edu/agraf/2007/12/31/web-server-upgrades-in-2008/#comments</comments>
		<pubDate>Mon, 31 Dec 2007 19:31:36 +0000</pubDate>
		<dc:creator>agraf</dc:creator>
		
		<category><![CDATA[web]]></category>

		<guid isPermaLink="false">http://staff.washington.edu/agraf/2007/12/31/web-server-upgrades-in-2008/</guid>
		<description><![CDATA[Near the beginning of 2008 we&#8217;re planning to upgrade the software on the student, staff, faculty, depts, courses, MyUW.net and www Web servers.
The upgrade will include Apache, PHP, OpenSSL, mod_uwa, and enabling compression.
More detail is available on the public Web page for this upgrade.
Update: This work was completed in March.
]]></description>
			<content:encoded><![CDATA[<p>Near the beginning of 2008 we&#8217;re planning to upgrade the software on the student, staff, faculty, depts, courses, MyUW.net and www Web servers.</p>
<p>The upgrade will include Apache, PHP, OpenSSL, mod_uwa, and enabling compression.</p>
<p>More detail is available on <a href="http://www.washington.edu/computing/web/publishing/server-upgrade.html">the public Web page for this upgrade</a>.</p>
<p>Update: This work was completed in March.</p>
]]></content:encoded>
			<wfw:commentRss>http://staff.washington.edu/agraf/2007/12/31/web-server-upgrades-in-2008/feed/</wfw:commentRss>
		</item>
	</channel>
</rss>
