<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://masspirates.org/wiki/index.php?action=history&amp;feed=atom&amp;title=Notes_on_Mediawiki_Migration</id>
	<title>Notes on Mediawiki Migration - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://masspirates.org/wiki/index.php?action=history&amp;feed=atom&amp;title=Notes_on_Mediawiki_Migration"/>
	<link rel="alternate" type="text/html" href="https://masspirates.org/wiki/index.php?title=Notes_on_Mediawiki_Migration&amp;action=history"/>
	<updated>2026-05-09T16:34:07Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.41.0</generator>
	<entry>
		<id>https://masspirates.org/wiki/index.php?title=Notes_on_Mediawiki_Migration&amp;diff=1104&amp;oldid=prev</id>
		<title>Srevilak: initial revision</title>
		<link rel="alternate" type="text/html" href="https://masspirates.org/wiki/index.php?title=Notes_on_Mediawiki_Migration&amp;diff=1104&amp;oldid=prev"/>
		<updated>2013-05-11T21:21:50Z</updated>

		<summary type="html">&lt;p&gt;initial revision&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;== Outline of MediaWiki Migration ==&lt;br /&gt;
&lt;br /&gt;
Build a list of all pages to migrate.  Provide these as a list to&lt;br /&gt;
Special:Export.  Be sure to include templates and the full history.&lt;br /&gt;
&lt;br /&gt;
MFPL Control panel: create new mediawiki installation + database&lt;br /&gt;
setup.  The wiki lives in a subdirectory of our hosting order, as&lt;br /&gt;
opposed to a separate hosting order.  In the initial installation, the&lt;br /&gt;
choice of admin user isn't important.  We'll change it later.&lt;br /&gt;
&lt;br /&gt;
In include/php5/php.ini, add&lt;br /&gt;
  upload_max_filesize = 7M&lt;br /&gt;
  post_max_size = 7M&lt;br /&gt;
  max_execution_time = 300&lt;br /&gt;
&lt;br /&gt;
Verify that you can log onto wiki.&lt;br /&gt;
&lt;br /&gt;
Mysqldump original user and group tables:&lt;br /&gt;
&lt;br /&gt;
  mysqldump  -u USER -pPASSWD DBNAME \&lt;br /&gt;
    --no-create-info --complete-insert --extended-insert=0 \&lt;br /&gt;
    mdw_user mdw_user_groups &amp;gt; wiki-user.sql&lt;br /&gt;
&lt;br /&gt;
In the dump file change &amp;quot;INSERT INTO&amp;quot; to &amp;quot;REPLACE INTO&amp;quot;.  Execute SQL&lt;br /&gt;
against new mediawiki installation.&lt;br /&gt;
&lt;br /&gt;
After loading new user table, verify that you can log in.&lt;br /&gt;
&lt;br /&gt;
Next, go to Special:Import, and import pages.  If you see the error&lt;br /&gt;
message &amp;quot;Fatal error: Call to undefined method User::isAllowedAny()&amp;quot;,&lt;br /&gt;
then follow the workaround in this support ticket&lt;br /&gt;
https://support.mayfirst.org/ticket/7017&lt;br /&gt;
&lt;br /&gt;
After import, the Main_Page will be the mediawiki default.  Copy the&lt;br /&gt;
old text of out Main_Page's history, then edit Main_Page and paste it&lt;br /&gt;
in.&lt;br /&gt;
&lt;br /&gt;
Our old version of mediawiki was 1.16.  The new installation uses&lt;br /&gt;
mediawiki 1.15.  The two store user preferences in different formats,&lt;br /&gt;
so users will need to reset their preferences in the new&lt;br /&gt;
installation.  If you notice that the edit box is really really small,&lt;br /&gt;
then you'll have to update your preferences.&lt;br /&gt;
&lt;br /&gt;
Mayfirst's mediawiki installation leverages a global baseline&lt;br /&gt;
configuration.  Part of this configuration limits editing to a group&lt;br /&gt;
called `approved'.  When adding new accounts, be sure to put them in&lt;br /&gt;
the approved group.&lt;br /&gt;
&lt;br /&gt;
Add this to the bottom of LocalSettings.php&lt;br /&gt;
&lt;br /&gt;
  # MassPirates customizations&lt;br /&gt;
  require_once(dirname( __FILE__ ) . &amp;quot;/MassPirates.php&amp;quot;);&lt;br /&gt;
&lt;br /&gt;
All of our configuration settings go in MassPirates.php&lt;br /&gt;
&lt;br /&gt;
Disable self-serve signups&lt;br /&gt;
&lt;br /&gt;
  $wgGroupPermissions['*']['createaccount'] = false;&lt;br /&gt;
&lt;br /&gt;
Favicon&lt;br /&gt;
&lt;br /&gt;
  $wgFavicon = &amp;quot;/images/MassPiratesFlagIcon.png&amp;quot;;&lt;br /&gt;
&lt;br /&gt;
Set up logo&lt;br /&gt;
&lt;br /&gt;
  $wgLogo = 'images/MassPiratesFlagMedium.png';&lt;br /&gt;
&lt;br /&gt;
Rewrite Rules (httpd configuration):&lt;br /&gt;
&lt;br /&gt;
  RewriteEngine on&lt;br /&gt;
  RewriteCond %{DOCUMENT_ROOT}%{REQUEST_URI} !-f&lt;br /&gt;
  RewriteCond %{DOCUMENT_ROOT}%{REQUEST_URI} !-d&lt;br /&gt;
  RewriteRule ^/?wiki(/.*)?$ %{DOCUMENT_ROOT}/wiki/index.php [L]&lt;br /&gt;
&lt;br /&gt;
Clean URLs&lt;br /&gt;
&lt;br /&gt;
  $wgScriptPath       = &amp;quot;/wiki&amp;quot;;&lt;br /&gt;
  $wgScriptExtension  = &amp;quot;.php&amp;quot;;&lt;br /&gt;
  $wgArticlePath = &amp;quot;/wiki/$1&amp;quot;;&lt;br /&gt;
  $wgUsePathInfo = true;&lt;/div&gt;</summary>
		<author><name>Srevilak</name></author>
	</entry>
</feed>