<?xml version="1.0"?>
<rss xmlns:dc="http://purl.org/dc/elements/1.1/" version="2.0">
  <channel>
    <title>CRIN Trac: Ticket #5: Migrate MediaWiki from GreenQloud</title>
    <link>https://trac.crin.org/trac/ticket/5</link>
    <description>&lt;p&gt;
Migrate the MediaWiki site at &lt;a class="ext-link" href="http://wiki.crin.org/"&gt;&lt;span class="icon"&gt;​&lt;/span&gt;http://wiki.crin.org/&lt;/a&gt; to crin1.crin.org.
&lt;/p&gt;
</description>
    <language>en-us</language>
    <image>
      <title>CRIN Trac</title>
      <url>https://trac.crin.org/trac/chrome/site/logo.gif</url>
      <link>https://trac.crin.org/trac/ticket/5</link>
    </image>
    <generator>Trac 1.0.2</generator>
    <item>
      
        <dc:creator>chris</dc:creator>

      <pubDate>Sat, 02 May 2015 14:02:19 GMT</pubDate>
      <title>hours changed; totalhours set</title>
      <link>https://trac.crin.org/trac/ticket/5#comment:1</link>
      <guid isPermaLink="false">https://trac.crin.org/trac/ticket/5#comment:1</guid>
      <description>
          &lt;ul&gt;
            &lt;li&gt;&lt;strong&gt;hours&lt;/strong&gt;
                changed from &lt;em&gt;0&lt;/em&gt; to &lt;em&gt;2.51&lt;/em&gt;
            &lt;/li&gt;
            &lt;li&gt;&lt;strong&gt;totalhours&lt;/strong&gt;
                set to &lt;em&gt;2.51&lt;/em&gt;
            &lt;/li&gt;
          &lt;/ul&gt;
        &lt;p&gt;
The ssh public key from &lt;a class="wiki" href="https://trac.crin.org/trac/wiki/Crin1"&gt;Crin1&lt;/a&gt; was added to the &lt;tt&gt;~/.ssh/authorized_keys&lt;/tt&gt; file on the server at wiki.crin.org and this was prefixed with the servers IP address to only allow it to be used from &lt;a class="wiki" href="https://trac.crin.org/trac/wiki/Crin1"&gt;Crin1&lt;/a&gt;:
&lt;/p&gt;
&lt;pre class="wiki"&gt;from="93.95.228.179" ssh-rsa AAAA...
&lt;/pre&gt;&lt;p&gt;
The site is in &lt;tt&gt;/var/www/html/mw/mediawiki&lt;/tt&gt;, so create a directory on &lt;a class="wiki" href="https://trac.crin.org/trac/wiki/Crin1"&gt;Crin1&lt;/a&gt; and rsync it:
&lt;/p&gt;
&lt;pre class="wiki"&gt;sudo -i
mkdir /var/ww/mediawiki/w
rsync -av wiki:/var/www/html/mw/mediawiki/ /var/www/mediawiki/w/
&lt;/pre&gt;&lt;p&gt;
Create a system account for mediawiki and chown the files that need to be writable:
&lt;/p&gt;
&lt;pre class="wiki"&gt;adduser --system --disabled-password --disabled-login --group --home=/var/www/mediawiki mediawiki
  Warning: The home dir /var/www/mediawiki you specified already exists.
  Adding system user `mediawiki' (UID 114) ...
  Adding new group `mediawiki' (GID 119) ...
  Adding new user `mediawiki' (UID 114) with group `mediawiki' ...
  The home directory `/var/www/mediawiki' already exists.  Not copying from `/etc/skel'.
  adduser: Warning: The home directory `/var/www/mediawiki' does not belong to the user you are currently creating.
chown -R mediawiki:mediawiki /var/www/mediawiki/w/cache
chown -R mediawiki:mediawiki /var/www/mediawiki/w/images
&lt;/pre&gt;&lt;p&gt;
Dump the MySQL database:
&lt;/p&gt;
&lt;pre class="wiki"&gt;mysqldump -ucontent -pXXX mw &amp;gt; /root/mediawiki.sql
&lt;/pre&gt;&lt;p&gt;
SCP it and create a new one to import it into:
&lt;/p&gt;
&lt;pre class="wiki"&gt;scp wiki:mediawiki.sql /root/
mysql mysql
 mysql&amp;gt; CREATE DATABASE mediawiki;
 mysql&amp;gt; GRANT ALL ON mediawiki.* to 'mediawiki'@'localhost' identified by 'XXX';
 mysql&amp;gt; FLUSH PRIVILEGES;
cat /root/mediawiki.sql | mysql mediawiki
&lt;/pre&gt;&lt;p&gt;
A script for syncing the site was created &lt;tt&gt;/root/bin/mediawiki-sync&lt;/tt&gt;, it is set to omit the config file:
&lt;/p&gt;
&lt;pre class="wiki"&gt;#!/bin/bash
# sync and chown the data
rsync -av --exclude "LocalSettings.php" wiki:/var/www/html/mw/mediawiki/ /var/www/mediawiki/w/
chown -R root:root /var/www/mediawiki/
chown -R mediawiki:mediawiki /var/www/mediawiki/w/cache
chown -R mediawiki:mediawiki /var/www/mediawiki/w/images
# dump and copy the database
ssh wiki "mysqldump -ucontent -pXXX mw &amp;gt; /root/mediawiki.sql"
scp wiki:mediawiki.sql /root/
# import the database
cat /root/mediawiki.sql | mysql mediawiki
&lt;/pre&gt;&lt;p&gt;
The following things were changed in the &lt;tt&gt;LocalSettings.php&lt;/tt&gt; config file:
&lt;/p&gt;
&lt;pre class="wiki"&gt;## The protocol and server name to use in fully-qualified URLs
$wgServer = "https://wiki.crin1.crin.org";
/* $wgScriptPath       = "/mediawiki"; */
$wgScriptPath       = "/w";
$wgArticlePath      = "/wiki/$1";
/* $wgLogo             = "$wgStylePath/common/images/wiki.png"; */
$wgLogo             = "";
/* $wgDBserver         = "localhost";
 * $wgDBname           = "mw";
 * $wgDBuser           = "content";
 * $wgDBpassword       = "XXX";
**/
$wgDBserver         = "localhost";
$wgDBname           = "mediawiki";
$wgDBuser           = "mediawiki";
$wgDBpassword       = "XXX";
/* $wgCacheDirectory='D:/Html/LocalUser/userweb505/Html/mediawiki/cache/'; */
$wgCacheDirectory = "$IP/cache";
/* $wgRightsUrl = "http://wiki.crin.org/mediawiki/index.php?title=MediaWiki:Copyright"; */
$wgRightsUrl = "/wiki/MediaWiki:Copyright";
&lt;/pre&gt;&lt;p&gt;
The following Apache config file was created at &lt;tt&gt;/etc/apache2/sites-available/mediawiki.conf&lt;/tt&gt;:
&lt;/p&gt;
&lt;pre class="wiki"&gt;&amp;lt;VirtualHost *:80&amp;gt;
        &amp;lt;IfModule mpm_itk_module&amp;gt;
                AssignUserID mediawiki mediawiki
                MaxClientsVHost 60
        &amp;lt;/IfModule&amp;gt;
        ServerName wiki.crin.org
        ServerAlias www.wiki.crin.org
        ServerAlias wiki.crin1.crin.org
        &amp;lt;If "%{HTTP_HOST} == 'wiki.crin.org'"&amp;gt;
                Redirect / https://wiki.crin.org/
        &amp;lt;/If&amp;gt;
        &amp;lt;If "%{HTTP_HOST} == 'www.wiki.crin.org'"&amp;gt;
                Redirect / https://wiki.crin.org/
        &amp;lt;/If&amp;gt;
        &amp;lt;If "%{HTTP_HOST} == 'wiki.crin1.crin.org'"&amp;gt;
                Redirect / https://wiki.crin1.crin.org/
        &amp;lt;/If&amp;gt;
&amp;lt;/VirtualHost&amp;gt;
&amp;lt;IfModule mod_ssl.c&amp;gt;
&amp;lt;VirtualHost *:443&amp;gt;
        &amp;lt;IfModule mpm_itk_module&amp;gt;
                AssignUserID mediawiki mediawiki
                MaxClientsVHost 60
        &amp;lt;/IfModule&amp;gt;
        ServerName wiki.crin.org
        ServerAlias www.wiki.crin.org
        ServerAlias wiki.crin1.crin.org
        SSLEngine on
        SSLCertificateFile    /etc/ssl/gandi/wiki.crt.pem
        SSLCertificateKeyFile /etc/ssl/gandi/wiki.key.pem
        SSLCACertificateFile  /etc/ssl/gandi/root.pem
        SetEnv TMPDIR /var/www/mediawiki/tmp
        &amp;lt;Directory /&amp;gt;
                Options FollowSymLinks
                AllowOverride None
                Require all denied
        &amp;lt;/Directory&amp;gt;
        DocumentRoot /var/www/mediawiki
        &amp;lt;Directory /var/www/mediawiki&amp;gt;
                Options Indexes FollowSymLinks
                AllowOverride All
                Require all granted
		# http://www.mediawiki.org/wiki/Manual:Short_URL/Apache
                &amp;lt;IfModule mod_rewrite.c&amp;gt;
                        # Enable the rewrite engine
                        RewriteEngine On
                        # Short url for wiki pages
                        RewriteRule ^/?wiki(/.*)?$ /var/www/mediawiki/w/index.php [L]
                        # Ensure that old URL's still work
                        RewriteRule ^/?mediawiki(/.*)?$ /var/www/mediawiki/w/index.php [L]
                        # Redirect / to Main Page
                        RewriteRule ^/*$ /var/www/mediawiki/w/index.php [L]
                &amp;lt;/IfModule&amp;gt;
        &amp;lt;/Directory&amp;gt;
        &amp;lt;IfModule mod_php5.c&amp;gt;
                php_admin_value open_basedir /var/www/mediawiki
                php_admin_value upload_tmp_dir /var/www/mediawiki/tmp
                php_admin_value session.save_path /var/www/mediawiki/tmp
                php_admin_value file_uploads 1
        &amp;lt;/IfModule&amp;gt;
        ErrorLog ${APACHE_LOG_DIR}/mediawiki.error.log
        # Possible values include: debug, info, notice, warn, error, crit,
        # alert, emerg.
        LogLevel warn
        CustomLog ${APACHE_LOG_DIR}/mediawiki.ssl_access.log combined
        &amp;lt;IfModule headers_module&amp;gt;
                # Use HTTP Strict Transport Security to force client to use secure connections only
                #Header always set Strict-Transport-Security "max-age=31536000; includeSubDomains"
                Header always set Strict-Transport-Security "max-age=31536000"
                # mitigate TIME attack
                Header always append X-Frame-Options "sameorigin"
        &amp;lt;/IfModule&amp;gt;
        &amp;lt;FilesMatch "\.(cgi|shtml|phtml|php)$"&amp;gt;
                SSLOptions +StdEnvVars
        &amp;lt;/FilesMatch&amp;gt;
        &amp;lt;Directory /usr/lib/cgi-bin&amp;gt;
                SSLOptions +StdEnvVars
        &amp;lt;/Directory&amp;gt;
        BrowserMatch "MSIE [2-6]" \
                nokeepalive ssl-unclean-shutdown \
                downgrade-1.0 force-response-1.0
        # MSIE 7 and newer should be able to use keepalive
        BrowserMatch "MSIE [17-9]" ssl-unclean-shutdown
&amp;lt;/VirtualHost&amp;gt;
&amp;lt;/IfModule&amp;gt;
&lt;/pre&gt;&lt;p&gt;
Create and chown the TMPDIR:
&lt;/p&gt;
&lt;pre class="wiki"&gt;mkdir /var/www/mediawiki/w/tmp
chown -R mediawiki:mediawiki /var/www/mediawiki/w/tmp
&lt;/pre&gt;&lt;p&gt;
Generate a certificate CSR:
&lt;/p&gt;
&lt;pre class="wiki"&gt;cd /etc/ssl/gandi
openssl req -nodes -newkey rsa:2048 -sha256 -keyout wiki.key.pem -out wiki.csr.pem
&lt;/pre&gt;&lt;p&gt;
For testing the cert was set to the Trac one and then the Apache config was symlinked and tested:
&lt;/p&gt;
&lt;pre class="wiki"&gt;cd /etc/apache2/sites-enabled
ln -s ../sites-available/mediawiki.conf 30-mediawiki.conf
apache2ctl configtest
  Syntax OK
service apache2 restart
&lt;/pre&gt;&lt;p&gt;
The site was tested at &lt;a class="ext-link" href="https://wiki.crin1.crin.org/"&gt;&lt;span class="icon"&gt;​&lt;/span&gt;https://wiki.crin1.crin.org/&lt;/a&gt; and there was this error:
&lt;/p&gt;
&lt;blockquote class="citation"&gt;
&lt;p&gt;
Children's Rights Wiki error
&lt;/p&gt;
&lt;p&gt;
Set $wgShowExceptionDetails = true; at the bottom of &lt;tt&gt;LocalSettings.php&lt;/tt&gt; to show detailed debugging information.
&lt;/p&gt;
&lt;/blockquote&gt;
&lt;p&gt;
The errors in the Apache logs:
&lt;/p&gt;
&lt;pre class="wiki"&gt;[Sat May 02 12:59:09.982784 2015] [:error] [pid 10281] [client X.X.X.X:36860] PHP Warning:  include(/var/www/mediawiki/w/extensions/MyExtension/MyExtension.i18n.php): failed to open stream: No such file or directory in /var/www/mediawiki/w/includes/LocalisationCache.php on line 405
[Sat May 02 12:59:09.982869 2015] [:error] [pid 10281] [client X.X.X.X:36860] PHP Warning:  include(): Failed opening '/var/www/mediawiki/w/extensions/MyExtension/MyExtension.i18n.php' for inclusion (include_path='/var/www/mediawiki/w:/var/www/mediawiki/w/includes:/var/www/mediawiki/w/languages:.:/usr/share/php:/usr/share/pear') in /var/www/mediawiki/w/includes/LocalisationCache.php on line 405
[Sat May 02 12:59:09.986350 2015] [:error] [pid 10281] [client X.X.X.X:36860] PHP Warning:  dba_open(/var/www/mediawiki/w/cache/l10n_cache-en.cdb.tmp.132944312): failed to open stream: Permission denied in /var/www/mediawiki/w/includes/Cdb.php on line 121
&lt;/pre&gt;&lt;p&gt;
So, enabled debugging and got an error regarding the cache not being writable, so:
&lt;/p&gt;
&lt;pre class="wiki"&gt;chown -R mediawiki:mediawiki /var/www/mediawiki/w/cache
&lt;/pre&gt;&lt;p&gt;
Get the logo and favicon:
&lt;/p&gt;
&lt;pre class="wiki"&gt;cd /var/www/mediawiki
wget https://www.crin.org/favicon.ico
wget https://www.crin.org/sites/default/themes/crin/images/logo.gif
chown mediawiki:mediawiki favicon.ico
chown mediawiki:mediawiki logo.gif
&lt;/pre&gt;&lt;p&gt;
And the site was tested at &lt;a class="ext-link" href="https://wiki.crin1.crin.org/wiki/Main_Page"&gt;&lt;span class="icon"&gt;​&lt;/span&gt;https://wiki.crin1.crin.org/wiki/Main_Page&lt;/a&gt;
&lt;/p&gt;
&lt;p&gt;
And images and page content was missing...
&lt;/p&gt;
&lt;p&gt;
However if you view source the content is there, for example: &lt;a class="ext-link" href="https://wiki.crin1.crin.org/w/index.php?title=Main_Page&amp;amp;action=edit"&gt;&lt;span class="icon"&gt;​&lt;/span&gt;https://wiki.crin1.crin.org/w/index.php?title=Main_Page&amp;amp;action=edit&lt;/a&gt;
&lt;/p&gt;
&lt;p&gt;
The Gandi SSL/TLS cert was installed.
&lt;/p&gt;
&lt;p&gt;
The config files was changed from DOS format:
&lt;/p&gt;
&lt;pre class="wiki"&gt;aptitude install dos2unix
dos2unix LocalSettings.php
  dos2unix: converting file LocalSettings.php to Unix format ...
&lt;/pre&gt;&lt;p&gt;
Trying the run the database upgrade script:
&lt;/p&gt;
&lt;pre class="wiki"&gt;su - mediawiki -s /bin/bash
cd ~/w/maintenance
php update.php
&lt;/pre&gt;&lt;p&gt;
Generated these errors:
&lt;/p&gt;
&lt;pre class="wiki"&gt;PHP Notice:  Undefined index: HTTP_USER_AGENT in /var/www/mediawiki/w/extensions/FCKeditor/fckeditor/fckeditor_php5.php on line 37
PHP Notice:  Undefined index: REMOTE_ADDR in /var/www/mediawiki/w/extensions/FormMailer.php on line 53
PHP Warning:  include(/var/www/mediawiki/w/extensions/MyExtension/MyExtension.i18n.php): failed to open stream: No such file or directory in /var/www/mediawiki/w/includes/LocalisationCache.php on line 405
PHP Warning:  include(): Failed opening '/var/www/mediawiki/w/extensions/MyExtension/MyExtension.i18n.php' for inclusion (include_path='/var/www/mediawiki/w:/var/www/mediawiki/w/includes:/var/www/mediawiki/w/languages:.:/usr/share/php:/usr/share/pear') in /var/www/mediawiki/w/includes/LocalisationCache.php on line 405
&lt;/pre&gt;&lt;p&gt;
Also this link was suggested via the ircs://irc.freenode.net/mediawiki channel:
&lt;/p&gt;
&lt;ul&gt;&lt;li&gt;&lt;a class="ext-link" href="https://www.mediawiki.org/wiki/Manual:Errors_and_symptoms#All_pages_have_no_content.2C_but_when_editing_a_page_the_wiki_text_is_there"&gt;&lt;span class="icon"&gt;​&lt;/span&gt;https://www.mediawiki.org/wiki/Manual:Errors_and_symptoms#All_pages_have_no_content.2C_but_when_editing_a_page_the_wiki_text_is_there&lt;/a&gt;
&lt;/li&gt;&lt;/ul&gt;&lt;p&gt;
Which says:
&lt;/p&gt;
&lt;blockquote class="citation"&gt;
&lt;p&gt;
This is caused by a change in PCRE 8.34. You need to downgrade PCRE, or update &lt;a class="wiki" href="https://trac.crin.org/trac/wiki/MediaWiki"&gt;MediaWiki&lt;/a&gt; to version 1.22.1 or newer (see &lt;a class="ext-link" href="https://phabricator.wikimedia.org/T60640"&gt;&lt;span class="icon"&gt;​&lt;/span&gt;Task T60640&lt;/a&gt;).
&lt;/p&gt;
&lt;/blockquote&gt;
&lt;p&gt;
So I think we might be forced to upgrade &lt;a class="wiki" href="https://trac.crin.org/trac/wiki/MediaWiki"&gt;MediaWiki&lt;/a&gt;, the current versions are 1.24.2 (LTS) and 1.23.9 and we are on 1.16.0...
&lt;/p&gt;
      </description>
      <category>Ticket</category>
    </item><item>
      
        <dc:creator>chris</dc:creator>

      <pubDate>Sat, 02 May 2015 15:36:35 GMT</pubDate>
      <title>hours, totalhours changed</title>
      <link>https://trac.crin.org/trac/ticket/5#comment:2</link>
      <guid isPermaLink="false">https://trac.crin.org/trac/ticket/5#comment:2</guid>
      <description>
          &lt;ul&gt;
            &lt;li&gt;&lt;strong&gt;hours&lt;/strong&gt;
                changed from &lt;em&gt;0&lt;/em&gt; to &lt;em&gt;1&lt;/em&gt;
            &lt;/li&gt;
            &lt;li&gt;&lt;strong&gt;totalhours&lt;/strong&gt;
                changed from &lt;em&gt;2.51&lt;/em&gt; to &lt;em&gt;3.51&lt;/em&gt;
            &lt;/li&gt;
          &lt;/ul&gt;
        &lt;p&gt;
Regarding this error:
&lt;/p&gt;
&lt;pre class="wiki"&gt;PHP Warning:  include(/var/www/mediawiki/w/extensions/MyExtension/MyExtension.i18n.php): failed to open stream: No such file or directory in /var/www/mediawiki/w/includes/LocalisationCache.php on line 405
PHP Warning:  include(): Failed opening '/var/www/mediawiki/w/extensions/MyExtension/MyExtension.i18n.php' for inclusion (include_path='/var/www/mediawiki/w:/var/www/mediawiki/w/includes:/var/www/mediawiki/w/languages:.:/usr/share/php:/usr/share/pear') in /var/www/mediawiki/w/includes/LocalisationCache.php on line 405
&lt;/pre&gt;&lt;p&gt;
That directory contains:
&lt;/p&gt;
&lt;pre class="wiki"&gt;-rwxr-xr-x  1 root root  222 Aug 28  2014 MyExtension.il8n.php
-rwxr-xr-x  1 root root 1.1K Aug 28  2014 MyExtension.php
-rwxr-xr-x  1 root root 2.4K Aug 28  2014 SpecialMyExtension.php
&lt;/pre&gt;&lt;p&gt;
So perhaps a symlink will solve this (it looks like a typo confusing a lowercase &lt;tt&gt;l&lt;/tt&gt; with a &lt;tt&gt;1&lt;/tt&gt;):
&lt;/p&gt;
&lt;pre class="wiki"&gt;ln -s MyExtension.il8n.php MyExtension.i18n.php
&lt;/pre&gt;&lt;p&gt;
And that did solve this issue.
&lt;/p&gt;
&lt;p&gt;
Trying an upgrade to the LTS version:
&lt;/p&gt;
&lt;pre class="wiki"&gt;cd /var/www/
wget https://releases.wikimedia.org/mediawiki/1.23/mediawiki-1.23.9.tar.gz
wget https://releases.wikimedia.org/mediawiki/1.23/mediawiki-1.23.9.tar.gz.sig
gpg --verify mediawiki-1.23.9.tar.gz.sig
  gpg: assuming signed data in `mediawiki-1.23.9.tar.gz'
  gpg: Signature made Tue 31 Mar 2015 05:57:22 PM GMT using DSA key ID 62D84F01
  gpg: Can't check signature: public key not found
gpg --search-key 62D84F01
  gpg: searching for "62D84F01" from hkp server keys.gnupg.net
  (1)     Chris Steipp &amp;lt;csteipp@wikimedia.org&amp;gt;
            2048 bit DSA key 62D84F01, created: 2012-08-30, expires: 2016-08-29
  Keys 1-1 of 1 for "62D84F01".  Enter number(s), N)ext, or Q)uit &amp;gt; 1
  gpg: requesting key 62D84F01 from hkp server keys.gnupg.net
  gpg: key 62D84F01: public key "Chris Steipp &amp;lt;csteipp@wikimedia.org&amp;gt;" imported
  gpg: no ultimately trusted keys found
  gpg: Total number processed: 1
  gpg:               imported: 1
gpg --verify mediawiki-1.23.9.tar.gz.sig
  gpg: assuming signed data in `mediawiki-1.23.9.tar.gz'
  gpg: Signature made Tue 31 Mar 2015 05:57:22 PM GMT using DSA key ID 62D84F01
  gpg: Good signature from "Chris Steipp &amp;lt;csteipp@wikimedia.org&amp;gt;"
  gpg: WARNING: This key is not certified with a trusted signature!
  gpg:          There is no indication that the signature belongs to the owner.
  Primary key fingerprint: 1624 32D9 E81C 1C61 8B30  1EEC EE1F 6634 62D8 4F01
tar -zxvf mediawiki-1.23.9.tar.gz
rsync -av mediawiki-1.23.9/ mediawiki/w/
su - mediawiki -s /bin/bash
cd ~/w/maintenance
php update.php
  PHP Notice:  Undefined index: HTTP_USER_AGENT in /var/www/mediawiki/w/extensions/FCKeditor/fckeditor/fckeditor_php5.php on line 37
  PHP Fatal error:  Call to undefined function wfLoadExtensionMessages() in /var/www/mediawiki/w/extensions/DiscussionThreading/DiscussionThreading.php on line 54
&lt;/pre&gt;&lt;p&gt;
So disabling the DiscussionThreading extension by commenting this from &lt;tt&gt;LocalSettings.php&lt;/tt&gt;:
&lt;/p&gt;
&lt;pre class="wiki"&gt;/* require_once("$IP/extensions/DiscussionThreading/DiscussionThreading.php"); */
&lt;/pre&gt;&lt;p&gt;
And now the updater runs OK, but the site generates an error and with debugging on the message is:
&lt;/p&gt;
&lt;pre class="wiki"&gt;[8c81b080] / Exception from line 1318 of /var/www/mediawiki/w/includes/cache/LocalisationCache.php: Unable to open CDB file for write "/var/www/mediawiki/w/cache/l10n_cache-en.cdb"
&lt;/pre&gt;&lt;p&gt;
So:
&lt;/p&gt;
&lt;pre class="wiki"&gt;rm -rf /var/www/mediawiki/w/cache/*.*
chown mediawiki:mediawiki /var/www/mediawiki/w/cache -R
&lt;/pre&gt;&lt;p&gt;
And now we get a 500 error and this in the logs:
&lt;/p&gt;
&lt;pre class="wiki"&gt;[Sat May 02 14:48:39.337197 2015] [:error] [pid 11930] [client X.X.X.X:37442] PHP Fatal error:  Call to undefined method Parser::strip() in /var/www/mediawiki/w/extensions/FCKeditor/FCKeditor.body.php on line 130
&lt;/pre&gt;&lt;p&gt;
So, disable that old and un-supported extension (the new VisualEditor would be a better one to use) by commenting out these lines:
&lt;/p&gt;
&lt;pre class="wiki"&gt;/* require_once("$IP/extensions/FCKeditor/FCKeditor.php"); */
&lt;/pre&gt;&lt;p&gt;
Reload and another 500 error, with this in the Apache logs:
&lt;/p&gt;
&lt;pre class="wiki"&gt;[Sat May 02 14:51:40.772447 2015] [:error] [pid 11970] [client X.X.X.X:37444] PHP Warning:  A skin using autodiscovery mechanism, Standard, was found in your skins/ directory. The mechanism will be removed in MediaWiki 1.25 and the skin will no longer be recognized. See https://www.mediawiki.org/wiki/Manual:Skin_autodiscovery for information how to fix this. [Called from Skin::getSkinNames in /var/www/mediawiki/w/includes/Skin.php at line 74] in /var/www/mediawiki/w/includes/debug/Debug.php on line 303
[Sat May 02 14:51:40.780890 2015] [:error] [pid 11970] [client X.X.X.X:37444] PHP Fatal error:  Call to undefined function wfLoadExtensionMessages() in /var/www/mediawiki/w/extensions/UsabilityInitiative/Vector/Vector.hooks.php on line 98
&lt;/pre&gt;&lt;p&gt;
So, following the &lt;a class="ext-link" href="https://www.mediawiki.org/wiki/Manual:Skin_autodiscovery#Migration_guide"&gt;&lt;span class="icon"&gt;​&lt;/span&gt;https://www.mediawiki.org/wiki/Manual:Skin_autodiscovery#Migration_guide&lt;/a&gt; and noting that the &lt;tt&gt;LocalSettings.php&lt;/tt&gt; specifies &lt;tt&gt;vector&lt;/tt&gt;:
&lt;/p&gt;
&lt;pre class="wiki"&gt;$wgDefaultSkin = 'vector';
&lt;/pre&gt;&lt;p&gt;
I think deleting the &lt;tt&gt;skins&lt;/tt&gt; directory and using the new one might solve this.
&lt;/p&gt;
&lt;pre class="wiki"&gt;rm -rf /var/www/mediawiki/w/skins/
cp -a /var/www/mediawiki-1.23.9/skins/ /var/www/mediawiki/w/
&lt;/pre&gt;&lt;p&gt;
We still have:
&lt;/p&gt;
&lt;pre class="wiki"&gt;==&amp;gt; /var/log/apache2/mediawiki.error.log &amp;lt;==
[Sat May 02 14:58:35.087352 2015] [:error] [pid 12051] [client X.X.X.X:37470] PHP Fatal error:  Call to undefined function wfLoadExtensionMessages() in /var/www/mediawiki/w/extensions/UsabilityInitiative/Vector/Vector.hooks.php on line 98
&lt;/pre&gt;&lt;p&gt;
So commenting that extension from the &lt;tt&gt;LocalSettings.php&lt;/tt&gt; file as it isn't a current extension, see &lt;a class="ext-link" href="https://www.mediawiki.org/wiki/Extension:UsabilityInitiative"&gt;&lt;span class="icon"&gt;​&lt;/span&gt;https://www.mediawiki.org/wiki/Extension:UsabilityInitiative&lt;/a&gt; :
&lt;/p&gt;
&lt;pre class="wiki"&gt;/* require_once( "$IP/extensions/UsabilityInitiative/Vector/Vector.php" ); */
&lt;/pre&gt;&lt;p&gt;
And the site is working but now with the default Vector skin.
&lt;/p&gt;
&lt;p&gt;
The copyright and main logo were sorted out.
&lt;/p&gt;
&lt;p&gt;
And the site is usable, but I'd strongly suggest an update of the extensions and installation of parsoid so the new VisualEditor can be used.
&lt;/p&gt;
      </description>
      <category>Ticket</category>
    </item><item>
      
        <dc:creator>chris</dc:creator>

      <pubDate>Sat, 02 May 2015 16:24:58 GMT</pubDate>
      <title>hours, totalhours changed</title>
      <link>https://trac.crin.org/trac/ticket/5#comment:3</link>
      <guid isPermaLink="false">https://trac.crin.org/trac/ticket/5#comment:3</guid>
      <description>
          &lt;ul&gt;
            &lt;li&gt;&lt;strong&gt;hours&lt;/strong&gt;
                changed from &lt;em&gt;0&lt;/em&gt; to &lt;em&gt;0.25&lt;/em&gt;
            &lt;/li&gt;
            &lt;li&gt;&lt;strong&gt;totalhours&lt;/strong&gt;
                changed from &lt;em&gt;3.51&lt;/em&gt; to &lt;em&gt;3.76&lt;/em&gt;
            &lt;/li&gt;
          &lt;/ul&gt;
        &lt;p&gt;
Checking that old URL's such as these:
&lt;/p&gt;
&lt;ul&gt;&lt;li&gt;&lt;a class="ext-link" href="http://wiki.crin.org/mediawiki/index.php/Main_Page"&gt;&lt;span class="icon"&gt;​&lt;/span&gt;http://wiki.crin.org/mediawiki/index.php/Main_Page&lt;/a&gt;
&lt;/li&gt;&lt;li&gt;&lt;a class="ext-link" href="http://wiki.crin.org/mediawiki/index.php/Special:PrefixIndex/A"&gt;&lt;span class="icon"&gt;​&lt;/span&gt;http://wiki.crin.org/mediawiki/index.php/Special:PrefixIndex/A&lt;/a&gt;
&lt;/li&gt;&lt;li&gt;&lt;a class="ext-link" href="http://wiki.crin.org/mediawiki/index.php?title=Special%3APrefixIndex&amp;amp;prefix=A&amp;amp;namespace=0"&gt;&lt;span class="icon"&gt;​&lt;/span&gt;http://wiki.crin.org/mediawiki/index.php?title=Special%3APrefixIndex&amp;amp;prefix=A&amp;amp;namespace=0&lt;/a&gt;
&lt;/li&gt;&lt;li&gt;&lt;a class="ext-link" href="http://wiki.crin.org/mediawiki/index.php?title=Mediawiki:Sidebar"&gt;&lt;span class="icon"&gt;​&lt;/span&gt;http://wiki.crin.org/mediawiki/index.php?title=Mediawiki:Sidebar&lt;/a&gt;
&lt;/li&gt;&lt;li&gt;&lt;a class="ext-link" href="http://wiki.crin.org/mediawiki/index.php?title=Special:Version"&gt;&lt;span class="icon"&gt;​&lt;/span&gt;http://wiki.crin.org/mediawiki/index.php?title=Special:Version&lt;/a&gt;
&lt;/li&gt;&lt;li&gt;&lt;a class="ext-link" href="http://wiki.crin.org/mediawiki/index.php/Special:Version"&gt;&lt;span class="icon"&gt;​&lt;/span&gt;http://wiki.crin.org/mediawiki/index.php/Special:Version&lt;/a&gt;
&lt;/li&gt;&lt;/ul&gt;&lt;ul&gt;&lt;li&gt;&lt;a class="ext-link" href="http://wiki.crin.org/mediawiki/api.php"&gt;&lt;span class="icon"&gt;​&lt;/span&gt;http://wiki.crin.org/mediawiki/api.php&lt;/a&gt;
&lt;/li&gt;&lt;li&gt;&lt;a class="ext-link" href="http://wiki.crin.org/mediawiki/load.php"&gt;&lt;span class="icon"&gt;​&lt;/span&gt;http://wiki.crin.org/mediawiki/load.php&lt;/a&gt;
&lt;/li&gt;&lt;/ul&gt;&lt;p&gt;
Will all still work:
&lt;/p&gt;
&lt;ul&gt;&lt;li&gt;&lt;a class="ext-link" href="https://wiki.crin1.crin.org/mediawiki/index.php/Main_Page"&gt;&lt;span class="icon"&gt;​&lt;/span&gt;https://wiki.crin1.crin.org/mediawiki/index.php/Main_Page&lt;/a&gt;
&lt;/li&gt;&lt;li&gt;&lt;a class="ext-link" href="https://wiki.crin1.crin.org/mediawiki/index.php/Special:PrefixIndex/A"&gt;&lt;span class="icon"&gt;​&lt;/span&gt;https://wiki.crin1.crin.org/mediawiki/index.php/Special:PrefixIndex/A&lt;/a&gt;
&lt;/li&gt;&lt;li&gt;&lt;a class="ext-link" href="https://wiki.crin1.crin.org/mediawiki/index.php?title=Special%3APrefixIndex&amp;amp;prefix=A&amp;amp;namespace=0"&gt;&lt;span class="icon"&gt;​&lt;/span&gt;https://wiki.crin1.crin.org/mediawiki/index.php?title=Special%3APrefixIndex&amp;amp;prefix=A&amp;amp;namespace=0&lt;/a&gt;
&lt;/li&gt;&lt;li&gt;&lt;a class="ext-link" href="https://wiki.crin1.crin.org/mediawiki/index.php?title=Mediawiki:Sidebar"&gt;&lt;span class="icon"&gt;​&lt;/span&gt;https://wiki.crin1.crin.org/mediawiki/index.php?title=Mediawiki:Sidebar&lt;/a&gt;
&lt;/li&gt;&lt;li&gt;&lt;a class="ext-link" href="https://wiki.crin1.crin.org/mediawiki/index.php?title=Special:Version"&gt;&lt;span class="icon"&gt;​&lt;/span&gt;https://wiki.crin1.crin.org/mediawiki/index.php?title=Special:Version&lt;/a&gt;
&lt;/li&gt;&lt;li&gt;&lt;a class="ext-link" href="https://wiki.crin1.crin.org/mediawiki/index.php/Special:Version"&gt;&lt;span class="icon"&gt;​&lt;/span&gt;https://wiki.crin1.crin.org/mediawiki/index.php/Special:Version&lt;/a&gt;
&lt;/li&gt;&lt;/ul&gt;&lt;ul&gt;&lt;li&gt;&lt;a class="ext-link" href="https://wiki.crin1.crin.org/mediawiki/api.php"&gt;&lt;span class="icon"&gt;​&lt;/span&gt;https://wiki.crin1.crin.org/mediawiki/api.php&lt;/a&gt;
&lt;/li&gt;&lt;li&gt;&lt;a class="ext-link" href="https://wiki.crin1.crin.org/mediawiki/load.php"&gt;&lt;span class="icon"&gt;​&lt;/span&gt;https://wiki.crin1.crin.org/mediawiki/load.php&lt;/a&gt;
&lt;/li&gt;&lt;/ul&gt;&lt;p&gt;
And they do thanks to these rules:
&lt;/p&gt;
&lt;pre class="wiki"&gt;        # Ensure that old URL's still work
        &amp;lt;If "%{HTTP_HOST} == 'wiki.crin.org'"&amp;gt;
                RedirectMatch "/mediawiki/index.php(.*)" "https://wiki.crin.org/wiki$1"
                RedirectMatch "/mediawiki/api.php(.*)"   "https://wiki.crin.org/w/api.php$1"
                RedirectMatch "/mediawiki/load.php(.*)"  "https://wiki.crin.org/w/load.php$1"
                Redirect "/mediawiki/" "https://wiki.crin.org/w/"
        &amp;lt;/If&amp;gt;
        &amp;lt;If "%{HTTP_HOST} == 'www.wiki.crin.org'"&amp;gt;
                RedirectMatch "/mediawiki/index.php(.*)" "https://www.wiki.crin.org/wiki$1"
                RedirectMatch "/mediawiki/api.php(.*)"   "https://www.wiki.crin.org/w/api.php$1"
                RedirectMatch "/mediawiki/load.php(.*)"  "https://www.wiki.crin.org/w/load.php$1"
                Redirect "/mediawiki/" "https://www.wiki.crin.org/w/"
        &amp;lt;/If&amp;gt;
        &amp;lt;If "%{HTTP_HOST} == 'wiki.crin1.crin.org'"&amp;gt;
                RedirectMatch "/mediawiki/index.php(.*)" "https://wiki.crin1.crin.org/wiki$1"
                RedirectMatch "/mediawiki/api.php(.*)"   "https://wiki.crin1.crin.org/w/api.php$1"
                RedirectMatch "/mediawiki/load.php(.*)"  "https://wiki.crin1.crin.org/w/load.php$1"
                Redirect "/mediawiki/" "https://wiki.crin1.crin.org/w/"
        &amp;lt;/If&amp;gt;
&lt;/pre&gt;
      </description>
      <category>Ticket</category>
    </item><item>
      
        <dc:creator>chris</dc:creator>

      <pubDate>Sun, 03 May 2015 11:06:53 GMT</pubDate>
      <title>hours, totalhours changed</title>
      <link>https://trac.crin.org/trac/ticket/5#comment:4</link>
      <guid isPermaLink="false">https://trac.crin.org/trac/ticket/5#comment:4</guid>
      <description>
          &lt;ul&gt;
            &lt;li&gt;&lt;strong&gt;hours&lt;/strong&gt;
                changed from &lt;em&gt;0&lt;/em&gt; to &lt;em&gt;1&lt;/em&gt;
            &lt;/li&gt;
            &lt;li&gt;&lt;strong&gt;totalhours&lt;/strong&gt;
                changed from &lt;em&gt;3.76&lt;/em&gt; to &lt;em&gt;4.76&lt;/em&gt;
            &lt;/li&gt;
          &lt;/ul&gt;
        &lt;h2 id="IssueswiththemigratedMediaWikisite"&gt;Issues with the migrated &lt;a class="wiki" href="https://trac.crin.org/trac/wiki/MediaWiki"&gt;MediaWiki&lt;/a&gt; site&lt;/h2&gt;
&lt;p&gt;
In addition to the customisation to the theme being lost (is this an issue, the only key difference I can see is that the "Q&amp;amp;A", "Contact Us" and "Home" tabs have been lost and I expect these could be restored if needs be) there are the following plugins which should be updated, removed or replaced.
&lt;/p&gt;
&lt;p&gt;
You can get a list of the plugins on the live site at &lt;a class="ext-link" href="http://wiki.crin.org/mediawiki/index.php/Special:Version"&gt;&lt;span class="icon"&gt;​&lt;/span&gt;http://wiki.crin.org/mediawiki/index.php/Special:Version&lt;/a&gt; and for the new site at &lt;a class="ext-link" href="https://wiki.crin1.crin.org/wiki/Special:Version"&gt;&lt;span class="icon"&gt;​&lt;/span&gt;https://wiki.crin1.crin.org/wiki/Special:Version&lt;/a&gt;
&lt;/p&gt;
&lt;h2 id="ConfirmAccount"&gt;ConfirmAccount&lt;/h2&gt;
&lt;p&gt;
The site is running an unknown version, it should probably be upgraded as there are different config option for &lt;a class="wiki" href="https://trac.crin.org/trac/wiki/MediaWiki"&gt;MediaWiki&lt;/a&gt; &amp;gt; 1.19, see: &lt;a class="ext-link" href="https://www.mediawiki.org/wiki/Extension:ConfirmAccount"&gt;&lt;span class="icon"&gt;​&lt;/span&gt;https://www.mediawiki.org/wiki/Extension:ConfirmAccount&lt;/a&gt;
&lt;/p&gt;
&lt;h2 id="ContactPage"&gt;ContactPage&lt;/h2&gt;
&lt;p&gt;
The site is running an unknown version:
&lt;/p&gt;
&lt;blockquote class="citation"&gt;
&lt;p&gt;
Upgrading from versions &amp;lt; 2.x (&lt;a class="wiki" href="https://trac.crin.org/trac/wiki/MediaWiki"&gt;MediaWiki&lt;/a&gt; ≤ 1.22) to versions ≥ 2.x (&lt;a class="wiki" href="https://trac.crin.org/trac/wiki/MediaWiki"&gt;MediaWiki&lt;/a&gt; ≥ 1.23) requires a complete reconfiguration of this extension in "LocalSetting.php" to avoid breakage.
&lt;/p&gt;
&lt;p&gt;
&lt;a class="ext-link" href="https://www.mediawiki.org/wiki/Extension:ContactPage"&gt;&lt;span class="icon"&gt;​&lt;/span&gt;https://www.mediawiki.org/wiki/Extension:ContactPage&lt;/a&gt;
&lt;/p&gt;
&lt;/blockquote&gt;
&lt;p&gt;
This should be upgraded if it is still needed.
&lt;/p&gt;
&lt;h2 id="MyExtension"&gt;MyExtension&lt;/h2&gt;
&lt;p&gt;
This looks like a &lt;a class="wiki" href="https://trac.crin.org/trac/wiki/MediaWiki"&gt;MediaWiki&lt;/a&gt; plugin which has been written especially for CRIN?
&lt;/p&gt;
&lt;h2 id="PasswordReset"&gt;Password Reset&lt;/h2&gt;
&lt;p&gt;
We have version 1.7.
&lt;/p&gt;
&lt;blockquote class="citation"&gt;
&lt;p&gt;
In MW 1.18 and above, a special page "PasswordReset" exists which overrides the special page of this extension. This means this extension no longer works from 1.18 on.
&lt;/p&gt;
&lt;p&gt;
&lt;a class="ext-link" href="https://www.mediawiki.org/wiki/Extension:Password_Reset"&gt;&lt;span class="icon"&gt;​&lt;/span&gt;https://www.mediawiki.org/wiki/Extension:Password_Reset&lt;/a&gt;
&lt;/p&gt;
&lt;/blockquote&gt;
&lt;p&gt;
This extension should be removed and replaced with something else if it provided functionality that &lt;a class="wiki" href="https://trac.crin.org/trac/wiki/MediaWiki"&gt;MediaWiki&lt;/a&gt; doesn't already provide (there is now a password reset feature available).
&lt;/p&gt;
&lt;h2 id="Cite"&gt;Cite&lt;/h2&gt;
&lt;blockquote class="citation"&gt;
&lt;p&gt;
Starting with &lt;a class="wiki" href="https://trac.crin.org/trac/wiki/MediaWiki"&gt;MediaWiki&lt;/a&gt; 1.25 the "Special:Cite" extension that used to be documented on this page too is no longer part of the "Cite" extension. When upgrading from &lt;a class="wiki" href="https://trac.crin.org/trac/wiki/MediaWiki"&gt;MediaWiki&lt;/a&gt; 1.24 the following line will have to be removed from your "LocalSettings.php" file:
&lt;/p&gt;
&lt;p&gt;
&lt;tt&gt;require_once "$IP/extensions/Cite/SpecialCite.php";&lt;/tt&gt;
&lt;/p&gt;
&lt;p&gt;
The "Special:Cite" extension is now know as the &lt;a class="ext-link" href="https://www.mediawiki.org/wiki/Extension:CiteThisPage"&gt;&lt;span class="icon"&gt;​&lt;/span&gt;CiteThisPage&lt;/a&gt; extension and may be installed separately.
&lt;/p&gt;
&lt;/blockquote&gt;
&lt;p&gt;
We are running the LTS version, 1.23.9 so the above will have an impact when upgrading to the next LTS version, in the meantime this extension should probably upgraded -- we have an unknown version.
&lt;/p&gt;
&lt;h2 id="EmailForm"&gt;EmailForm&lt;/h2&gt;
&lt;p&gt;
We have version 0.8a, latest version is 0.81, it has been unmaintained since 2009, I'd suggest removing this extension and replacing it with something else if needs be:
&lt;/p&gt;
&lt;blockquote class="citation"&gt;
&lt;p&gt;
This extension stores its source code on a wiki page. Please be aware that this code may be unreviewed or maliciously altered. They may contain security holes, outdated interfaces that are no longer compatible etc.
&lt;/p&gt;
&lt;p&gt;
&lt;a class="ext-link" href="https://www.mediawiki.org/wiki/Extension:EmailForm"&gt;&lt;span class="icon"&gt;​&lt;/span&gt;https://www.mediawiki.org/wiki/Extension:EmailForm&lt;/a&gt;
&lt;/p&gt;
&lt;/blockquote&gt;
&lt;h2 id="GoogleCalender"&gt;Google Calender&lt;/h2&gt;
&lt;p&gt;
We have an unknown version and the URL for the extension no longer resolves:
&lt;/p&gt;
&lt;p&gt;
&lt;a class="ext-link" href="http://wiki.couchsurfing.com/en/Google_Calendar_MediaWiki_plugin"&gt;&lt;span class="icon"&gt;​&lt;/span&gt;http://wiki.couchsurfing.com/en/Google_Calendar_MediaWiki_plugin&lt;/a&gt;
&lt;/p&gt;
&lt;p&gt;
We should invistigate what this plugin was used for and if it is needed and if so what can replace it, or simply remove it.
&lt;/p&gt;
&lt;h2 id="RSSReader"&gt;RSS Reader&lt;/h2&gt;
&lt;p&gt;
We have version 0.2.5, latest version from 2012 is 0.2.6:
&lt;/p&gt;
&lt;blockquote class="citation"&gt;
&lt;p&gt;
This extension stores its source code on a wiki page. Please be aware that this code may be unreviewed or maliciously altered. They may contain security holes, outdated interfaces that are no longer compatible etc.
&lt;/p&gt;
&lt;p&gt;
&lt;a class="ext-link" href="https://www.mediawiki.org/wiki/Extension:RSS_Reader"&gt;&lt;span class="icon"&gt;​&lt;/span&gt;https://www.mediawiki.org/wiki/Extension:RSS_Reader&lt;/a&gt;
&lt;/p&gt;
&lt;/blockquote&gt;
&lt;p&gt;
We should find which pages, if any, are pulling in RSS feeds and decide if this functionality is still needed and if a maintained extension can be used to replace it.
&lt;/p&gt;
&lt;h2 id="SelectCategory"&gt;SelectCategory&lt;/h2&gt;
&lt;p&gt;
We are running version 0.7dev, the latest version is 0.8.2, this extension should be upgraded, see &lt;a class="ext-link" href="https://www.mediawiki.org/wiki/Extension:SelectCategory"&gt;&lt;span class="icon"&gt;​&lt;/span&gt;https://www.mediawiki.org/wiki/Extension:SelectCategory&lt;/a&gt;
&lt;/p&gt;
&lt;h2 id="TreeAndMenu"&gt;TreeAndMenu&lt;/h2&gt;
&lt;p&gt;
We are running version 1.1.1, 2009-07-29, the latest version is 4.1.1 (2015-04-28), this extension should be upgraded, see &lt;a class="ext-link" href="https://www.mediawiki.org/wiki/Extension:TreeAndMenu"&gt;&lt;span class="icon"&gt;​&lt;/span&gt;https://www.mediawiki.org/wiki/Extension:TreeAndMenu&lt;/a&gt;
&lt;/p&gt;
&lt;h2 id="Boilerplate"&gt;Boilerplate&lt;/h2&gt;
&lt;p&gt;
We are running an unknown version, the latest version is from 2007:
&lt;/p&gt;
&lt;blockquote class="citation"&gt;
&lt;p&gt;
This extension is currently not actively maintained!
&lt;/p&gt;
&lt;p&gt;
This extension stores its source code on a wiki page. Please be aware that this code may be unreviewed or maliciously altered.
&lt;/p&gt;
&lt;p&gt;
Several users have reported bugs with this extension related to unmodifiable headers, please see the discussion tab for details.
&lt;/p&gt;
&lt;p&gt;
&lt;a class="ext-link" href="https://www.mediawiki.org/wiki/User:RouslanZenetl/Extension:Boilerplate"&gt;&lt;span class="icon"&gt;​&lt;/span&gt;https://www.mediawiki.org/wiki/User:RouslanZenetl/Extension:Boilerplate&lt;/a&gt;
&lt;/p&gt;
&lt;/blockquote&gt;
&lt;p&gt;
We should decide if this is needed and if it is if another extension can be used instead.
&lt;/p&gt;
&lt;h2 id="BoilerPlateSelection"&gt;BoilerPlateSelection&lt;/h2&gt;
&lt;p&gt;
We are running an unknown version, this extension hasn't been updated since 2007.
&lt;/p&gt;
&lt;blockquote class="citation"&gt;
&lt;p&gt;
This extension stores its source code on a wiki page. Please be aware that this code may be unreviewed or maliciously altered.
&lt;a class="ext-link" href="https://www.mediawiki.org/wiki/Extension:BoilerplateSelection"&gt;&lt;span class="icon"&gt;​&lt;/span&gt;https://www.mediawiki.org/wiki/Extension:BoilerplateSelection&lt;/a&gt;
&lt;/p&gt;
&lt;/blockquote&gt;
&lt;p&gt;
We should decide if this is needed and what could replace it, if it is needed.
&lt;/p&gt;
&lt;h2 id="FormMailer"&gt;FormMailer&lt;/h2&gt;
&lt;p&gt;
We are running version 1.0.3, 2011-01-02, which is the latest version, note that the author of the extsnsion said in 2009:
&lt;/p&gt;
&lt;blockquote class="citation"&gt;
&lt;p&gt;
Personally I don't use SimpleForms anymore, it has too many problems and is too difficult to maintain
&lt;/p&gt;
&lt;p&gt;
&lt;a class="ext-link" href="https://www.mediawiki.org/wiki/Extension_talk:FormMailer#I_need_help_with_this"&gt;&lt;span class="icon"&gt;​&lt;/span&gt;https://www.mediawiki.org/wiki/Extension_talk:FormMailer#I_need_help_with_this&lt;/a&gt;
&lt;/p&gt;
&lt;/blockquote&gt;
&lt;p&gt;
We should find where this extension is used and decide if it's still needed and if it is what can replace it.
&lt;/p&gt;
&lt;h2 id="MultiBoilerplate"&gt;MultiBoilerplate&lt;/h2&gt;
&lt;p&gt;
We are running 1.8.0, the latest version is 2.0.0 but this is only for &amp;gt; 1.24 and we are on 1.23 so this should only be upgraded when we upgrade &lt;a class="wiki" href="https://trac.crin.org/trac/wiki/MediaWiki"&gt;MediaWiki&lt;/a&gt; to the next LTS version.
&lt;/p&gt;
&lt;h2 id="DiscussionThreading"&gt;DiscussionThreading&lt;/h2&gt;
&lt;p&gt;
This was disabled due to problems, we were running Version 1.3, the latest version is 1.5.0, we should decide if this is needed and install it, if it is needed (I don't see any evidence of the discussion pages being used at all, never mind needing threading).
&lt;/p&gt;
&lt;h2 id="FCKeditor"&gt;FCKeditor&lt;/h2&gt;
&lt;p&gt;
This was disabled due to problems, it was Version 1.0.1, if a WYSIWYG editor is needed we should install Parsiod and the new VisualEditor, see:
&lt;/p&gt;
&lt;ul&gt;&lt;li&gt;&lt;a class="ext-link" href="https://www.mediawiki.org/wiki/Extension:VisualEditor"&gt;&lt;span class="icon"&gt;​&lt;/span&gt;https://www.mediawiki.org/wiki/Extension:VisualEditor&lt;/a&gt;
&lt;/li&gt;&lt;li&gt;&lt;a class="ext-link" href="https://www.mediawiki.org/wiki/Parsoid"&gt;&lt;span class="icon"&gt;​&lt;/span&gt;https://www.mediawiki.org/wiki/Parsoid&lt;/a&gt;
&lt;/li&gt;&lt;/ul&gt;&lt;h2 id="Preloader"&gt;Preloader&lt;/h2&gt;
&lt;p&gt;
We are running Version 1.1.1, the latest version, from 2011, is        1.2.0:
&lt;/p&gt;
&lt;blockquote class="citation"&gt;
&lt;p&gt;
This extension is currently not actively maintained!
&lt;/p&gt;
&lt;p&gt;
&lt;a class="ext-link" href="https://www.mediawiki.org/wiki/Extension:Preloader"&gt;&lt;span class="icon"&gt;​&lt;/span&gt;https://www.mediawiki.org/wiki/Extension:Preloader&lt;/a&gt;
&lt;/p&gt;
&lt;/blockquote&gt;
&lt;p&gt;
We should decide if this extension in still needed.
&lt;/p&gt;
&lt;h2 id="UsabilityInitiative"&gt;UsabilityInitiative&lt;/h2&gt;
&lt;p&gt;
We are running Version 0.1.1:
&lt;/p&gt;
&lt;p&gt;
This extension has been archived.
&lt;/p&gt;
&lt;blockquote class="citation"&gt;
&lt;p&gt;
The components of this extension have all now been moved out to their own extensions.
&lt;/p&gt;
&lt;ul&gt;&lt;li&gt;&lt;a class="ext-link" href="https://www.mediawiki.org/wiki/Extension:ClickTracking"&gt;&lt;span class="icon"&gt;​&lt;/span&gt;ClickTracking&lt;/a&gt;
&lt;/li&gt;&lt;li&gt;&lt;a class="ext-link" href="https://www.mediawiki.org/wiki/Extension:PrefSwitch"&gt;&lt;span class="icon"&gt;​&lt;/span&gt;PrefSwitch&lt;/a&gt;
&lt;/li&gt;&lt;li&gt;&lt;a class="ext-link" href="https://www.mediawiki.org/wiki/Extension:PrefStats"&gt;&lt;span class="icon"&gt;​&lt;/span&gt;PrefStats&lt;/a&gt;
&lt;/li&gt;&lt;li&gt;&lt;a class="ext-link" href="https://www.mediawiki.org/wiki/Extension:UserDailyContribs"&gt;&lt;span class="icon"&gt;​&lt;/span&gt;UserDailyContribs&lt;/a&gt;
&lt;/li&gt;&lt;li&gt;&lt;a class="ext-link" href="https://www.mediawiki.org/wiki/Extension:Vector"&gt;&lt;span class="icon"&gt;​&lt;/span&gt;Vector&lt;/a&gt;
&lt;/li&gt;&lt;li&gt;&lt;a class="ext-link" href="https://www.mediawiki.org/wiki/Extension:WikiEditor"&gt;&lt;span class="icon"&gt;​&lt;/span&gt;WikiEditor&lt;/a&gt;
&lt;/li&gt;&lt;/ul&gt;&lt;p&gt;
&lt;a class="ext-link" href="https://www.mediawiki.org/wiki/Extension:UsabilityInitiative"&gt;&lt;span class="icon"&gt;​&lt;/span&gt;https://www.mediawiki.org/wiki/Extension:UsabilityInitiative&lt;/a&gt;
&lt;/p&gt;
&lt;/blockquote&gt;
&lt;p&gt;
This extension should probably be removed and the extensions above installed if any functionality from it is still needed.
&lt;/p&gt;
&lt;h2 id="Vector"&gt;Vector&lt;/h2&gt;
&lt;p&gt;
We had Version 0.2.0, this appears to have been superceeded when the Vector skin became the default some years ago.
&lt;/p&gt;
&lt;h2 id="WikiEditor"&gt;WikiEditor&lt;/h2&gt;
&lt;p&gt;
We have Version 0.2.0:
&lt;/p&gt;
&lt;blockquote class="citation"&gt;
&lt;p&gt;
This extension is bundled with &lt;a class="wiki" href="https://trac.crin.org/trac/wiki/MediaWiki"&gt;MediaWiki&lt;/a&gt; 1.18 and above. Thus you do not have to download it again.
&lt;/p&gt;
&lt;p&gt;
&lt;a class="ext-link" href="https://www.mediawiki.org/wiki/Extension:WikiEditor"&gt;&lt;span class="icon"&gt;​&lt;/span&gt;https://www.mediawiki.org/wiki/Extension:WikiEditor&lt;/a&gt;
&lt;/p&gt;
&lt;/blockquote&gt;
      </description>
      <category>Ticket</category>
    </item><item>
      
        <dc:creator>chris</dc:creator>

      <pubDate>Thu, 07 May 2015 11:20:00 GMT</pubDate>
      <title>hours, estimatedhours, totalhours changed</title>
      <link>https://trac.crin.org/trac/ticket/5#comment:5</link>
      <guid isPermaLink="false">https://trac.crin.org/trac/ticket/5#comment:5</guid>
      <description>
          &lt;ul&gt;
            &lt;li&gt;&lt;strong&gt;hours&lt;/strong&gt;
                changed from &lt;em&gt;0&lt;/em&gt; to &lt;em&gt;0.05&lt;/em&gt;
            &lt;/li&gt;
            &lt;li&gt;&lt;strong&gt;estimatedhours&lt;/strong&gt;
                changed from &lt;em&gt;0&lt;/em&gt; to &lt;em&gt;8&lt;/em&gt;
            &lt;/li&gt;
            &lt;li&gt;&lt;strong&gt;totalhours&lt;/strong&gt;
                changed from &lt;em&gt;4.76&lt;/em&gt; to &lt;em&gt;4.81&lt;/em&gt;
            &lt;/li&gt;
          &lt;/ul&gt;
        &lt;p&gt;
So far 4h 45m has been spent on this ticket, resolving the issues with extensions documented at &lt;a class="closed ticket" href="https://trac.crin.org/trac/ticket/5#comment:4" title="task: Migrate MediaWiki from GreenQloud (closed: fixed)"&gt;ticket:5#comment:4&lt;/a&gt; and potentially installing a &lt;a class="ext-link" href="https://www.mediawiki.org/wiki/Parsoid"&gt;&lt;span class="icon"&gt;​&lt;/span&gt;Parsoid&lt;/a&gt; server for the new &lt;a class="ext-link" href="https://www.mediawiki.org/wiki/VisualEditor"&gt;&lt;span class="icon"&gt;​&lt;/span&gt;VisualEditor&lt;/a&gt; (assuming we want WYSIWYG editing) could take quite a few more hours, setting the estimated time to 8 hours in total.
&lt;/p&gt;
      </description>
      <category>Ticket</category>
    </item><item>
      
        <dc:creator>chris</dc:creator>

      <pubDate>Mon, 11 May 2015 08:55:09 GMT</pubDate>
      <title>cc changed</title>
      <link>https://trac.crin.org/trac/ticket/5#comment:6</link>
      <guid isPermaLink="false">https://trac.crin.org/trac/ticket/5#comment:6</guid>
      <description>
          &lt;ul&gt;
            &lt;li&gt;&lt;strong&gt;cc&lt;/strong&gt;
              &lt;em&gt;graham&lt;/em&gt; added
            &lt;/li&gt;
          &lt;/ul&gt;
        &lt;p&gt;
Adding Graham as a CC for this ticket.
&lt;/p&gt;
      </description>
      <category>Ticket</category>
    </item><item>
      
        <dc:creator>chris</dc:creator>

      <pubDate>Thu, 04 Jun 2015 12:47:41 GMT</pubDate>
      <title>cc changed</title>
      <link>https://trac.crin.org/trac/ticket/5#comment:7</link>
      <guid isPermaLink="false">https://trac.crin.org/trac/ticket/5#comment:7</guid>
      <description>
          &lt;ul&gt;
            &lt;li&gt;&lt;strong&gt;cc&lt;/strong&gt;
              &lt;em&gt;adam&lt;/em&gt; &lt;em&gt;jenny&lt;/em&gt; &lt;em&gt;gillian&lt;/em&gt; added; &lt;em&gt;graham&lt;/em&gt; removed
            &lt;/li&gt;
          &lt;/ul&gt;
        &lt;p&gt;
I have removed &lt;tt&gt;graham&lt;/tt&gt; as a Cc for this ticket, see &lt;a class="closed ticket" href="https://trac.crin.org/trac/ticket/16" title="task: Add Trac account for Adam (closed: fixed)"&gt;ticket:16&lt;/a&gt; and added &lt;tt&gt;adam&lt;/tt&gt;, &lt;tt&gt;gillian&lt;/tt&gt; and &lt;tt&gt;jenny&lt;/tt&gt; .
&lt;/p&gt;
      </description>
      <category>Ticket</category>
    </item><item>
      
        <dc:creator>chris</dc:creator>

      <pubDate>Fri, 12 Jun 2015 09:10:44 GMT</pubDate>
      <title>cc changed</title>
      <link>https://trac.crin.org/trac/ticket/5#comment:8</link>
      <guid isPermaLink="false">https://trac.crin.org/trac/ticket/5#comment:8</guid>
      <description>
          &lt;ul&gt;
            &lt;li&gt;&lt;strong&gt;cc&lt;/strong&gt;
              &lt;em&gt;jonas&lt;/em&gt; &lt;em&gt;adam&lt;/em&gt; removed
            &lt;/li&gt;
          &lt;/ul&gt;
        &lt;p&gt;
&lt;tt&gt;adam&lt;/tt&gt; and &lt;tt&gt;jonas&lt;/tt&gt; removed as CCs.
&lt;/p&gt;
      </description>
      <category>Ticket</category>
    </item><item>
      
        <dc:creator>chris</dc:creator>

      <pubDate>Fri, 03 Jul 2015 11:00:29 GMT</pubDate>
      <title>hours, totalhours changed</title>
      <link>https://trac.crin.org/trac/ticket/5#comment:9</link>
      <guid isPermaLink="false">https://trac.crin.org/trac/ticket/5#comment:9</guid>
      <description>
          &lt;ul&gt;
            &lt;li&gt;&lt;strong&gt;hours&lt;/strong&gt;
                changed from &lt;em&gt;0&lt;/em&gt; to &lt;em&gt;0.25&lt;/em&gt;
            &lt;/li&gt;
            &lt;li&gt;&lt;strong&gt;totalhours&lt;/strong&gt;
                changed from &lt;em&gt;4.81&lt;/em&gt; to &lt;em&gt;5.06&lt;/em&gt;
            &lt;/li&gt;
          &lt;/ul&gt;
        &lt;p&gt;
I have just spent some time looking at the relationship between &lt;a class="wiki" href="https://trac.crin.org/trac/wiki/Drupal"&gt;Drupal&lt;/a&gt; pages and &lt;a class="wiki" href="https://trac.crin.org/trac/wiki/MediaWiki"&gt;MediaWiki&lt;/a&gt; pages, for example:
&lt;/p&gt;
&lt;ul&gt;&lt;li&gt;&lt;a class="ext-link" href="https://www.crin.org/en/library/countries/burundi"&gt;&lt;span class="icon"&gt;​&lt;/span&gt;https://www.crin.org/en/library/countries/burundi&lt;/a&gt;
&lt;/li&gt;&lt;li&gt;&lt;a class="ext-link" href="http://wiki.crin.org/mediawiki/index.php?title=Burundi"&gt;&lt;span class="icon"&gt;​&lt;/span&gt;http://wiki.crin.org/mediawiki/index.php?title=Burundi&lt;/a&gt;
&lt;/li&gt;&lt;/ul&gt;&lt;p&gt;
The Drupal page has a "Wiki link" field:
&lt;/p&gt;
&lt;blockquote class="citation"&gt;
&lt;p&gt;
wiki link
&lt;/p&gt;
&lt;p&gt;
The link will try and format itself but if this fails then you can overwrite the default here
&lt;/p&gt;
&lt;p&gt;
&lt;a class="ext-link" href="http://wiki.crin.org/mediawiki/index.php?title=Burundi"&gt;&lt;span class="icon"&gt;​&lt;/span&gt;http://wiki.crin.org/mediawiki/index.php?title=Burundi&lt;/a&gt;
&lt;/p&gt;
&lt;/blockquote&gt;
&lt;p&gt;
And it looks like the &lt;a class="ext-link" href="https://www.crin.org/en/library/countries/burundi#barbox"&gt;&lt;span class="icon"&gt;​&lt;/span&gt;quick facts&lt;/a&gt; might be pulled in from the Wiki site as this data isn't present when editing this page using Drupal.
&lt;/p&gt;
      </description>
      <category>Ticket</category>
    </item><item>
      
        <dc:creator>jenny</dc:creator>

      <pubDate>Fri, 03 Jul 2015 11:30:05 GMT</pubDate>
      <title></title>
      <link>https://trac.crin.org/trac/ticket/5#comment:10</link>
      <guid isPermaLink="false">https://trac.crin.org/trac/ticket/5#comment:10</guid>
      <description>
        &lt;pre class="wiki"&gt;Hi Chris,
the Quick facts and the persistent violations are not editable in Drupal
and are drawn from the Wiki as well as the text for the introduction. Can
you confirm that this will not be lost?
Thanks
On 3 July 2015 at 12:00, CRIN Trac &amp;lt;trac@trac.crin.org&amp;gt; wrote:
&amp;gt; #5: Migrate MediaWiki from GreenQloud
&amp;gt; -------------------------------------+-------------------------------------
&amp;gt;                  Reporter:  chris    |                Owner:  chris
&amp;gt;                      Type:  task     |               Status:  new
&amp;gt;                  Priority:  major    |            Milestone:  Install and
&amp;gt;                 Component:           |  configure crin1
&amp;gt;   mediawiki                          |              Version:
&amp;gt;                Resolution:           |             Keywords:
&amp;gt; Estimated Number of Hours:  8        |  Add Hours to Ticket:  0.25
&amp;gt;                 Billable?:  1        |          Total Hours:  4.81
&amp;gt; -------------------------------------+-------------------------------------
&amp;gt; Changes (by chris):
&amp;gt;
&amp;gt;  * hours:  0 =&amp;gt; 0.25
&amp;gt;  * totalhours:  4.81 =&amp;gt; 5.06
&amp;gt;
&amp;gt;
&amp;gt; Comment:
&amp;gt;
&amp;gt;  I have just spent some time looking at the relationship between [[Drupal]]
&amp;gt;  pages and MediaWiki pages, for example:
&amp;gt;
&amp;gt;  * https://www.crin.org/en/library/countries/burundi
&amp;gt;  * http://wiki.crin.org/mediawiki/index.php?title=Burundi
&amp;gt;
&amp;gt;  The Drupal page has a "Wiki link" field:
&amp;gt;
&amp;gt;  &amp;gt; wiki link
&amp;gt;  &amp;gt;
&amp;gt;  &amp;gt; The link will try and format itself but if this fails then you can
&amp;gt;  overwrite the default here
&amp;gt;  &amp;gt;
&amp;gt;  &amp;gt; http://wiki.crin.org/mediawiki/index.php?title=Burundi
&amp;gt;  And it looks like the
&amp;gt;  [https://www.crin.org/en/library/countries/burundi#barbox quick facts]
&amp;gt;  might be pulled in from the Wiki site as this data isn't present when
&amp;gt;  editing this page using Drupal.
&amp;gt;
&amp;gt; --
&amp;gt; Ticket URL: &amp;lt;https://trac.crin.org/trac/ticket/5#comment:9&amp;gt;
&amp;gt; CRIN Trac &amp;lt;https://trac.crin.org/trac&amp;gt;
&amp;gt; Trac project for CRIN website and servers.
&amp;gt;
&lt;/pre&gt;
      </description>
      <category>Ticket</category>
    </item><item>
      
        <dc:creator>chris</dc:creator>

      <pubDate>Fri, 03 Jul 2015 12:06:44 GMT</pubDate>
      <title>hours, totalhours changed</title>
      <link>https://trac.crin.org/trac/ticket/5#comment:11</link>
      <guid isPermaLink="false">https://trac.crin.org/trac/ticket/5#comment:11</guid>
      <description>
          &lt;ul&gt;
            &lt;li&gt;&lt;strong&gt;hours&lt;/strong&gt;
                changed from &lt;em&gt;0&lt;/em&gt; to &lt;em&gt;0.55&lt;/em&gt;
            &lt;/li&gt;
            &lt;li&gt;&lt;strong&gt;totalhours&lt;/strong&gt;
                changed from &lt;em&gt;5.06&lt;/em&gt; to &lt;em&gt;5.61&lt;/em&gt;
            &lt;/li&gt;
          &lt;/ul&gt;
        &lt;p&gt;
Replying to &lt;a class="ticket" href="https://trac.crin.org/trac/ticket/5#comment:10" title="Comment 10"&gt;jenny&lt;/a&gt;:
&lt;/p&gt;
&lt;blockquote class="citation"&gt;
&lt;p&gt;
the Quick facts and the persistent violations are not editable in Drupal
and are drawn from the Wiki as well as the text for the introduction. Can
you confirm that this will not be lost?
&lt;/p&gt;
&lt;/blockquote&gt;
&lt;p&gt;
Looking at how this works, there is a &lt;a class="ext-link" href="https://www.crin.org/en/admin/modules"&gt;&lt;span class="icon"&gt;​&lt;/span&gt;module&lt;/a&gt;:
&lt;/p&gt;
&lt;blockquote class="citation"&gt;
&lt;p&gt;
CRIN wiki pull
&lt;/p&gt;
&lt;p&gt;
Module for populating county from wiki
&lt;/p&gt;
&lt;/blockquote&gt;
&lt;p&gt;
This module is in &lt;tt&gt;/var/www/drupal/sites/default/modules/crinqp&lt;/tt&gt; and these files contain the wiki URL:
&lt;/p&gt;
&lt;pre class="wiki"&gt;crinqp.module:  $link = "http://wiki.crin.org/mediawiki/index.php?title=".$counrty;
crinqp.php:  $link = "http://wiki.crin.org/mediawiki/index.php?title=".$counrty;
&lt;/pre&gt;&lt;p&gt;
So I would suggest that if the DNS was updated and above were changed to the following:
&lt;/p&gt;
&lt;pre class="wiki"&gt;crinqp.module:  $link = "https://wiki.crin.org/wiki?title=".$counrty;
crinqp.php:  $link = "https://wiki.crin.org/wiki?title=".$counrty;
&lt;/pre&gt;&lt;p&gt;
Then importing content should still work, assuming the import supports HTTPS, if it doesn't then the wiki could be changed so that content can be read over HTTP and HTTPS is only needed for editing.
&lt;/p&gt;
&lt;p&gt;
However I'm not clear when the data is pulled in, is it when the Drupal country page is created, or edited or on a regular basis (so if the wiki is updated the Drupal site is automatically updated), looking at the dump of the Drupal database and searching for the string 8749400 (the &lt;a class="ext-link" href="https://www.crin.org/en/library/countries/burundi#barbox"&gt;&lt;span class="icon"&gt;​&lt;/span&gt;population of Burundi&lt;/a&gt;) this value is present in the &lt;tt&gt;field_revision_field_population&lt;/tt&gt; table and the &lt;tt&gt;field_data_field_population&lt;/tt&gt; table.
&lt;/p&gt;
&lt;p&gt;
The unknown issues above could be clarified through testing (for example change some values on the wiki to see if they update automatically) and / or you could ask Code Positive how exactly this works.
&lt;/p&gt;
&lt;p&gt;
If I were you I'd keep the copy of the wiki on &lt;a class="wiki" href="https://trac.crin.org/trac/wiki/Crin1"&gt;Crin1&lt;/a&gt; and ask me to:
&lt;/p&gt;
&lt;ol&gt;&lt;li&gt;Make the copy of the wiki at &lt;a class="ext-link" href="https://wiki.crin1.crin.org/"&gt;&lt;span class="icon"&gt;​&lt;/span&gt;https://wiki.crin1.crin.org/&lt;/a&gt; available via HTTP for reading and HTTPS only for editing.
&lt;/li&gt;&lt;li&gt;Update the DNS for &lt;tt&gt;wiki.crin.org&lt;/tt&gt; so it points to &lt;a class="wiki" href="https://trac.crin.org/trac/wiki/Crin1"&gt;Crin1&lt;/a&gt; rather than the GreenQloud server.
&lt;/li&gt;&lt;li&gt;Update the wiki URLs in &lt;tt&gt;crinqp.module&lt;/tt&gt; and &lt;tt&gt;crinqp.php&lt;/tt&gt;.
&lt;/li&gt;&lt;li&gt;Update the wiki URLs in the Drupal database, perhaps using the &lt;a class="ext-link" href="https://www.drupal.org/project/sar"&gt;&lt;span class="icon"&gt;​&lt;/span&gt;Drush Search &amp;amp; Replace module&lt;/a&gt;.
&lt;/li&gt;&lt;/ol&gt;&lt;p&gt;
After the above had been done the GreenQloud wiki server could be shutdown.
&lt;/p&gt;
&lt;p&gt;
If however you want to get rid of the wiki site then if I were you I'd ask Code Positive:
&lt;/p&gt;
&lt;ol&gt;&lt;li&gt;Does the CRIN wiki pull module pull in content from the wiki at any time other when a new country is added to the Drupal site?
&lt;/li&gt;&lt;li&gt;If the answer to 1, is no then how would we add a new country or update data for a country if the wiki site is shutdown?
&lt;/li&gt;&lt;li&gt;If the answer to 1. is on a regular basis or when there are changes I think you might need to keep the wiki if you are not going to make changes to the way the Drupal country pages work.
&lt;/li&gt;&lt;li&gt;If the answer to 2. is not simple then you would either need to update the Drupal code to remove the dependancy on the wiki or keep the wiki.
&lt;/li&gt;&lt;/ol&gt;
      </description>
      <category>Ticket</category>
    </item><item>
      
        <dc:creator>chris</dc:creator>

      <pubDate>Fri, 03 Jul 2015 12:34:58 GMT</pubDate>
      <title></title>
      <link>https://trac.crin.org/trac/ticket/5#comment:12</link>
      <guid isPermaLink="false">https://trac.crin.org/trac/ticket/5#comment:12</guid>
      <description>
        &lt;p&gt;
Ideally the following would be first done on a dev server, so sorting out &lt;a class="closed ticket" href="https://trac.crin.org/trac/ticket/23" title="defect: Development and staging environment (closed: fixed)"&gt;ticket:23&lt;/a&gt; and then testing the relationship with the wiki and Drupal there would be the safest way to do things -- keep the GreenQloud wiki server running till these things have been tested and proven to work on dev before deploying to live.
&lt;/p&gt;
&lt;p&gt;
Replying to &lt;a class="ticket" href="https://trac.crin.org/trac/ticket/5#comment:11" title="Comment 11"&gt;chris&lt;/a&gt;:
&lt;/p&gt;
&lt;blockquote class="citation"&gt;
&lt;p&gt;
If I were you I'd keep the copy of the wiki on &lt;a class="wiki" href="https://trac.crin.org/trac/wiki/Crin1"&gt;Crin1&lt;/a&gt; and ask me to:
&lt;/p&gt;
&lt;ol&gt;&lt;li&gt;Make the copy of the wiki at &lt;a class="ext-link" href="https://wiki.crin1.crin.org/"&gt;&lt;span class="icon"&gt;​&lt;/span&gt;https://wiki.crin1.crin.org/&lt;/a&gt; available via HTTP for reading and HTTPS only for editing.
&lt;/li&gt;&lt;li&gt;Update the DNS for &lt;tt&gt;wiki.crin.org&lt;/tt&gt; so it points to &lt;a class="wiki" href="https://trac.crin.org/trac/wiki/Crin1"&gt;Crin1&lt;/a&gt; rather than the GreenQloud server.
&lt;/li&gt;&lt;li&gt;Update the wiki URLs in &lt;tt&gt;crinqp.module&lt;/tt&gt; and &lt;tt&gt;crinqp.php&lt;/tt&gt;.
&lt;/li&gt;&lt;li&gt;Update the wiki URLs in the Drupal database, perhaps using the &lt;a class="ext-link" href="https://www.drupal.org/project/sar"&gt;&lt;span class="icon"&gt;​&lt;/span&gt;Drush Search &amp;amp; Replace module&lt;/a&gt;.
&lt;/li&gt;&lt;/ol&gt;&lt;p&gt;
After the above had been done the GreenQloud wiki server could be shutdown.
&lt;/p&gt;
&lt;/blockquote&gt;
      </description>
      <category>Ticket</category>
    </item><item>
      
        <dc:creator>jenny</dc:creator>

      <pubDate>Fri, 03 Jul 2015 14:40:03 GMT</pubDate>
      <title></title>
      <link>https://trac.crin.org/trac/ticket/5#comment:13</link>
      <guid isPermaLink="false">https://trac.crin.org/trac/ticket/5#comment:13</guid>
      <description>
        &lt;pre class="wiki"&gt;Hi Chris,
Can we have a chat about this on Monday please?
Thanks,
Jenny
On 3 July 2015 at 13:06, CRIN Trac &amp;lt;trac@trac.crin.org&amp;gt; wrote:
&amp;gt; #5: Migrate MediaWiki from GreenQloud
&amp;gt; -------------------------------------+-------------------------------------
&amp;gt;                  Reporter:  chris    |                Owner:  chris
&amp;gt;                      Type:  task     |               Status:  new
&amp;gt;                  Priority:  major    |            Milestone:  Install and
&amp;gt;                 Component:           |  configure crin1
&amp;gt;   mediawiki                          |              Version:
&amp;gt;                Resolution:           |             Keywords:
&amp;gt; Estimated Number of Hours:  8        |  Add Hours to Ticket:  0.55
&amp;gt;                 Billable?:  1        |          Total Hours:  5.06
&amp;gt; -------------------------------------+-------------------------------------
&amp;gt; Changes (by chris):
&amp;gt;
&amp;gt;  * hours:  0 =&amp;gt; 0.55
&amp;gt;  * totalhours:  5.06 =&amp;gt; 5.61
&amp;gt;
&amp;gt;
&amp;gt; Comment:
&amp;gt;
&amp;gt;  Replying to [comment:10 jenny]:
&amp;gt;  &amp;gt;
&amp;gt;  &amp;gt; the Quick facts and the persistent violations are not editable in Drupal
&amp;gt;  &amp;gt; and are drawn from the Wiki as well as the text for the introduction.
&amp;gt;  Can
&amp;gt;  &amp;gt; you confirm that this will not be lost?
&amp;gt;
&amp;gt;  Looking at how this works, there is a
&amp;gt;  [https://www.crin.org/en/admin/modules module]:
&amp;gt;
&amp;gt;  &amp;gt; CRIN wiki pull
&amp;gt;  &amp;gt;
&amp;gt;  &amp;gt; Module for populating county from wiki
&amp;gt;
&amp;gt;  This module is in `/var/www/drupal/sites/default/modules/crinqp` and these
&amp;gt;  files contain the wiki URL:
&amp;gt;
&amp;gt;  {{{
&amp;gt;  crinqp.module:  $link =
&amp;gt;  "http://wiki.crin.org/mediawiki/index.php?title=".$counrty;
&amp;gt;  crinqp.php:  $link =
&amp;gt;  "http://wiki.crin.org/mediawiki/index.php?title=".$counrty;
&amp;gt;  }}}
&amp;gt;
&amp;gt;  So I would suggest that if the DNS was updated and above were changed to
&amp;gt;  the following:
&amp;gt;
&amp;gt;  {{{
&amp;gt;  crinqp.module:  $link = "https://wiki.crin.org/wiki?title=".$counrty;
&amp;gt;  crinqp.php:  $link = "https://wiki.crin.org/wiki?title=".$counrty;
&amp;gt;  }}}
&amp;gt;
&amp;gt;  Then importing content should still work, assuming the import supports
&amp;gt;  HTTPS, if it doesn't then the wiki could be changed so that content can be
&amp;gt;  read over HTTP and HTTPS is only needed for editing.
&amp;gt;
&amp;gt;  However I'm not clear when the data is pulled in, is it when the Drupal
&amp;gt;  country page is created, or edited or on a regular basis (so if the wiki
&amp;gt;  is updated the Drupal site is automatically updated), looking at the dump
&amp;gt;  of the Drupal database and searching for the string 8749400 (the
&amp;gt;  [https://www.crin.org/en/library/countries/burundi#barbox population of
&amp;gt;  Burundi]) this value is present in the `field_revision_field_population`
&amp;gt;  table and the `field_data_field_population` table.
&amp;gt;
&amp;gt;  The unknown issues above could be clarified through testing (for example
&amp;gt;  change some values on the wiki to see if they update automatically) and /
&amp;gt;  or you could ask Code Positive how exactly this works.
&amp;gt;
&amp;gt;  If I were you I'd keep the copy of the wiki on [[Crin1]] and ask me to:
&amp;gt;
&amp;gt;  1. Make the copy of the wiki at https://wiki.crin1.crin.org/ available
&amp;gt; via
&amp;gt;  HTTP for reading and HTTPS only for editing.
&amp;gt;  2. Update the DNS for `wiki.crin.org` so it points to [[Crin1]] rather
&amp;gt;  than the !GreenQloud server.
&amp;gt;  3. Update the wiki URLs in `crinqp.module` and `crinqp.php`.
&amp;gt;  4. Update the wiki URLs in the Drupal database, perhaps using the
&amp;gt;  [https://www.drupal.org/project/sar Drush Search &amp;amp; Replace module].
&amp;gt;
&amp;gt;  After the above had been done the !GreenQloud wiki server could be
&amp;gt;  shutdown.
&amp;gt;
&amp;gt;  If however you want to get rid of the wiki site then if I were you I'd ask
&amp;gt;  Code Positive:
&amp;gt;
&amp;gt;  1. Does the CRIN wiki pull module pull in content from the wiki at any
&amp;gt;  time other when a new country is added to the Drupal site?
&amp;gt;  2. If the answer to 1, is no then how would we add a new country or update
&amp;gt;  data for a country if the wiki site is shutdown?
&amp;gt;  3. If the answer to 1. is on a regular basis or when there are changes I
&amp;gt;  think you might need to keep the wiki if you are not going to make changes
&amp;gt;  to the way the Drupal country pages work.
&amp;gt;  4. If the answer to 2. is not simple then you would either need to update
&amp;gt;  the Drupal code to remove the dependancy on the wiki or keep the wiki.
&amp;gt;
&amp;gt; --
&amp;gt; Ticket URL: &amp;lt;https://trac.crin.org/trac/ticket/5#comment:11&amp;gt;
&amp;gt; CRIN Trac &amp;lt;https://trac.crin.org/trac&amp;gt;
&amp;gt; Trac project for CRIN website and servers.
&amp;gt;
&lt;/pre&gt;
      </description>
      <category>Ticket</category>
    </item><item>
      
        <dc:creator>chris</dc:creator>

      <pubDate>Fri, 03 Jul 2015 14:50:03 GMT</pubDate>
      <title></title>
      <link>https://trac.crin.org/trac/ticket/5#comment:14</link>
      <guid isPermaLink="false">https://trac.crin.org/trac/ticket/5#comment:14</guid>
      <description>
        &lt;pre class="wiki"&gt;Hi
Sure, I should be in our office from 9:30am to 3pm
All the best
Chris
On Fri 03-Jul-2015 at 02:40:03PM -0000, CRIN Trac wrote:
&amp;gt;
&amp;gt; Comment (by jenny):
&amp;gt;
&amp;gt;  Can we have a chat about this on Monday please?
&lt;/pre&gt;
      </description>
      <category>Ticket</category>
    </item><item>
      
        <dc:creator>jenny</dc:creator>

      <pubDate>Fri, 03 Jul 2015 16:25:03 GMT</pubDate>
      <title></title>
      <link>https://trac.crin.org/trac/ticket/5#comment:15</link>
      <guid isPermaLink="false">https://trac.crin.org/trac/ticket/5#comment:15</guid>
      <description>
        &lt;pre class="wiki"&gt;Hi Chris,
Can we say 10.30?
Have a good weekend,
Jenny
On 3 July 2015 at 15:47, Chris Croome &amp;lt;chris@webarchitects.co.uk&amp;gt; wrote:
&amp;gt; Hi
&amp;gt;
&amp;gt; Sure, I should be in our office from 9:30am to 3pm
&amp;gt;
&amp;gt; All the best
&amp;gt;
&amp;gt; Chris
&amp;gt;
&amp;gt; On Fri 03-Jul-2015 at 02:40:03PM -0000, CRIN Trac wrote:
&amp;gt; &amp;gt;
&amp;gt; &amp;gt; Comment (by jenny):
&amp;gt; &amp;gt;
&amp;gt; &amp;gt;  Can we have a chat about this on Monday please?
&amp;gt;
&lt;/pre&gt;
      </description>
      <category>Ticket</category>
    </item><item>
      
        <dc:creator>chris</dc:creator>

      <pubDate>Mon, 06 Jul 2015 13:20:47 GMT</pubDate>
      <title>hours, totalhours changed</title>
      <link>https://trac.crin.org/trac/ticket/5#comment:16</link>
      <guid isPermaLink="false">https://trac.crin.org/trac/ticket/5#comment:16</guid>
      <description>
          &lt;ul&gt;
            &lt;li&gt;&lt;strong&gt;hours&lt;/strong&gt;
                changed from &lt;em&gt;0&lt;/em&gt; to &lt;em&gt;1.15&lt;/em&gt;
            &lt;/li&gt;
            &lt;li&gt;&lt;strong&gt;totalhours&lt;/strong&gt;
                changed from &lt;em&gt;5.61&lt;/em&gt; to &lt;em&gt;6.76&lt;/em&gt;
            &lt;/li&gt;
          &lt;/ul&gt;
        &lt;p&gt;
TICKET SUMMURY: The &lt;a class="ext-link" href="https://wiki.crin.org/"&gt;&lt;span class="icon"&gt;​&lt;/span&gt;https://wiki.crin.org/&lt;/a&gt; site is now at 1984.is and the GreenQloud server can be shutdown (you could wait till tomorrow since the DNS will take some time to update, but this isn't critical).
&lt;/p&gt;
&lt;p&gt;
Following a phone call with Jenny I have done the followiong to make the copy of the wiki at 1984.is available at wiki.crin.org.
&lt;/p&gt;
&lt;p&gt;
Replying to &lt;a class="ticket" href="https://trac.crin.org/trac/ticket/5#comment:11" title="Comment 11"&gt;chris&lt;/a&gt;:
&lt;/p&gt;
&lt;blockquote class="citation"&gt;
&lt;ol&gt;&lt;li&gt;Make the copy of the wiki at &lt;a class="ext-link" href="https://wiki.crin1.crin.org/"&gt;&lt;span class="icon"&gt;​&lt;/span&gt;https://wiki.crin1.crin.org/&lt;/a&gt; available via HTTP for reading and HTTPS only for editing.
&lt;/li&gt;&lt;/ol&gt;&lt;/blockquote&gt;
&lt;p&gt;
I found that the &lt;a class="ext-link" href="https://wiki.crin1.crin.org/w/index.php?title=Special:UserLogin&amp;amp;returnto=Main+Page"&gt;&lt;span class="icon"&gt;​&lt;/span&gt;login page&lt;/a&gt; was generating a 500 error due to the ConfirmAccount plugin not working so I commented that out in &lt;tt&gt;/var/www/mediawiki/w/LocalSettings.php&lt;/tt&gt; and also disabled the public creation of accounts to stop spammers signing up for accounts:
&lt;/p&gt;
&lt;pre class="wiki"&gt;//require_once("$IP/extensions/ConfirmAccount/SpecialConfirmAccount.php");
$wgGroupPermissions['*']['createaccount'] = false;
&lt;/pre&gt;&lt;p&gt;
I updated the Apache config to:
&lt;/p&gt;
&lt;pre class="wiki"&gt;&amp;lt;VirtualHost *:80&amp;gt;
        &amp;lt;IfModule mpm_itk_module&amp;gt;
                AssignUserID mediawiki mediawiki
                MaxClientsVHost 60
        &amp;lt;/IfModule&amp;gt;
        ServerName  www.wiki.crin.org
        ServerAlias wiki.crin1.crin.org
        Redirect / http://wiki.crin.org/
&amp;lt;/VirtualHost&amp;gt;
&amp;lt;VirtualHost *:80&amp;gt;
        &amp;lt;IfModule mpm_itk_module&amp;gt;
                AssignUserID mediawiki mediawiki
                MaxClientsVHost 60
        &amp;lt;/IfModule&amp;gt;
        ServerName wiki.crin.org
        SetEnv TMPDIR /var/www/mediawiki/tmp
        &amp;lt;Directory /&amp;gt;
                Options FollowSymLinks
                AllowOverride None
                Require all denied
        &amp;lt;/Directory&amp;gt;
        DocumentRoot /var/www/mediawiki
        # Ensure that old URL's still work
        RedirectMatch "/mediawiki/index.php(.*)" "http://wiki.crin.org/wiki$1"
        RedirectMatch "/mediawiki/api.php(.*)"   "http://wiki.crin.org/w/api.php$1"
        RedirectMatch "/mediawiki/load.php(.*)"  "http://wiki.crin.org/w/load.php$1"
        Redirect "/mediawiki/" "http://wiki.crin.org/w/"
        &amp;lt;Directory /var/www/mediawiki&amp;gt;
                Options Indexes FollowSymLinks
                AllowOverride All
                Require all granted
                # http://www.mediawiki.org/wiki/Manual:Short_URL/Apache
                &amp;lt;IfModule mod_rewrite.c&amp;gt;
                        # Enable the rewrite engine
                        RewriteEngine On
                        # Short url for wiki pages
                        RewriteRule ^/?wiki(/.*)?$ /var/www/mediawiki/w/index.php [L]
                        # Redirect / to Main Page
                        RewriteRule ^/*$ /var/www/mediawiki/w/index.php [L]
                &amp;lt;/IfModule&amp;gt;
        &amp;lt;/Directory&amp;gt;
        &amp;lt;IfModule mod_php5.c&amp;gt;
                php_admin_value open_basedir /var/www/mediawiki
                php_admin_value upload_tmp_dir /var/www/mediawiki/tmp
                php_admin_value session.save_path /var/www/mediawiki/tmp
                php_admin_value file_uploads 1
        &amp;lt;/IfModule&amp;gt;
        ErrorLog ${APACHE_LOG_DIR}/mediawiki.error.log
        # Possible values include: debug, info, notice, warn, error, crit,
        # alert, emerg.
        LogLevel warn
        CustomLog ${APACHE_LOG_DIR}/mediawiki.access.log combined
&amp;lt;/VirtualHost&amp;gt;
&amp;lt;IfModule mod_ssl.c&amp;gt;
&amp;lt;VirtualHost *:443&amp;gt;
        &amp;lt;IfModule mpm_itk_module&amp;gt;
                AssignUserID mediawiki mediawiki
                MaxClientsVHost 60
        &amp;lt;/IfModule&amp;gt;
        ServerName  www.wiki.crin.org
        ServerAlias wiki.crin1.crin.org
        SSLEngine on
        SSLCertificateFile    /etc/ssl/gandi/wiki.crt.pem
        SSLCertificateKeyFile /etc/ssl/gandi/wiki.key.pem
        SSLCACertificateFile  /etc/ssl/gandi/root.pem
        Redirect / https://wiki.crin.org/
&amp;lt;/VirtualHost&amp;gt;
&amp;lt;/IfModule&amp;gt;
&amp;lt;IfModule mod_ssl.c&amp;gt;
&amp;lt;VirtualHost *:443&amp;gt;
        &amp;lt;IfModule mpm_itk_module&amp;gt;
                AssignUserID mediawiki mediawiki
                MaxClientsVHost 60
        &amp;lt;/IfModule&amp;gt;
        ServerName wiki.crin.org
        SSLEngine on
        SSLCertificateFile    /etc/ssl/gandi/wiki.crt.pem
        SSLCertificateKeyFile /etc/ssl/gandi/wiki.key.pem
        SSLCACertificateFile  /etc/ssl/gandi/root.pem
        SetEnv TMPDIR /var/www/mediawiki/tmp
        &amp;lt;Directory /&amp;gt;
                Options FollowSymLinks
                AllowOverride None
                Require all denied
        &amp;lt;/Directory&amp;gt;
        DocumentRoot /var/www/mediawiki
        # Ensure that old URL's still work
        &amp;lt;If "%{HTTP_HOST} == 'wiki.crin.org'"&amp;gt;
                RedirectMatch "/mediawiki/index.php(.*)" "https://wiki.crin.org/wiki$1"
                RedirectMatch "/mediawiki/api.php(.*)"   "https://wiki.crin.org/w/api.php$1"
                RedirectMatch "/mediawiki/load.php(.*)"  "https://wiki.crin.org/w/load.php$1"
                Redirect "/mediawiki/" "https://wiki.crin.org/w/"
        &amp;lt;/If&amp;gt;
        &amp;lt;If "%{HTTP_HOST} == 'www.wiki.crin.org'"&amp;gt;
                RedirectMatch "/mediawiki/index.php(.*)" "https://www.wiki.crin.org/wiki$1"
                RedirectMatch "/mediawiki/api.php(.*)"   "https://www.wiki.crin.org/w/api.php$1"
                RedirectMatch "/mediawiki/load.php(.*)"  "https://www.wiki.crin.org/w/load.php$1"
                Redirect "/mediawiki/" "https://www.wiki.crin.org/w/"
        &amp;lt;/If&amp;gt;
        &amp;lt;If "%{HTTP_HOST} == 'wiki.crin1.crin.org'"&amp;gt;
                RedirectMatch "/mediawiki/index.php(.*)" "https://wiki.crin1.crin.org/wiki$1"
                RedirectMatch "/mediawiki/api.php(.*)"   "https://wiki.crin1.crin.org/w/api.php$1"
                RedirectMatch "/mediawiki/load.php(.*)"  "https://wiki.crin1.crin.org/w/load.php$1"
                Redirect "/mediawiki/" "https://wiki.crin1.crin.org/w/"
        &amp;lt;/If&amp;gt;
        &amp;lt;Directory /var/www/mediawiki&amp;gt;
                Options Indexes FollowSymLinks
                AllowOverride All
                Require all granted
                # http://www.mediawiki.org/wiki/Manual:Short_URL/Apache
                &amp;lt;IfModule mod_rewrite.c&amp;gt;
                        # Enable the rewrite engine
                        RewriteEngine On
                        # Short url for wiki pages
                        RewriteRule ^/?wiki(/.*)?$ /var/www/mediawiki/w/index.php [L]
                        # Redirect / to Main Page
                        RewriteRule ^/*$ /var/www/mediawiki/w/index.php [L]
                &amp;lt;/IfModule&amp;gt;
        &amp;lt;/Directory&amp;gt;
        &amp;lt;IfModule mod_php5.c&amp;gt;
                php_admin_value open_basedir /var/www/mediawiki
                php_admin_value upload_tmp_dir /var/www/mediawiki/tmp
                php_admin_value session.save_path /var/www/mediawiki/tmp
                php_admin_value file_uploads 1
        &amp;lt;/IfModule&amp;gt;
        ErrorLog ${APACHE_LOG_DIR}/mediawiki.error.log
        # Possible values include: debug, info, notice, warn, error, crit,
        # alert, emerg.
        LogLevel warn
        CustomLog ${APACHE_LOG_DIR}/mediawiki.ssl_access.log combined
        &amp;lt;IfModule headers_module&amp;gt;
                # Use HTTP Strict Transport Security to force client to use secure connections only
                #Header always set Strict-Transport-Security "max-age=31536000; includeSubDomains"
                Header always set Strict-Transport-Security "max-age=31536000"
                # mitigate TIME attack
                Header always append X-Frame-Options "sameorigin"
        &amp;lt;/IfModule&amp;gt;
        &amp;lt;FilesMatch "\.(cgi|shtml|phtml|php)$"&amp;gt;
                SSLOptions +StdEnvVars
        &amp;lt;/FilesMatch&amp;gt;
        &amp;lt;Directory /usr/lib/cgi-bin&amp;gt;
                SSLOptions +StdEnvVars
        &amp;lt;/Directory&amp;gt;
        BrowserMatch "MSIE [2-6]" \
                nokeepalive ssl-unclean-shutdown \
                downgrade-1.0 force-response-1.0
        # MSIE 7 and newer should be able to use keepalive
        BrowserMatch "MSIE [17-9]" ssl-unclean-shutdown
&amp;lt;/VirtualHost&amp;gt;
&amp;lt;/IfModule&amp;gt;
&lt;/pre&gt;&lt;p&gt;
So now the site is available via HTTP.
&lt;/p&gt;
&lt;blockquote class="citation"&gt;
&lt;ol start="2"&gt;&lt;li&gt;Update the DNS for &lt;tt&gt;wiki.crin.org&lt;/tt&gt; so it points to &lt;a class="wiki" href="https://trac.crin.org/trac/wiki/Crin1"&gt;Crin1&lt;/a&gt; rather than the GreenQloud server.
&lt;/li&gt;&lt;/ol&gt;&lt;/blockquote&gt;
&lt;p&gt;
This has been done and and it should update soon.
&lt;/p&gt;
&lt;blockquote class="citation"&gt;
&lt;ol start="3"&gt;&lt;li&gt;Update the wiki URLs in &lt;tt&gt;crinqp.module&lt;/tt&gt; and &lt;tt&gt;crinqp.php&lt;/tt&gt;.
&lt;/li&gt;&lt;/ol&gt;&lt;/blockquote&gt;
&lt;p&gt;
This has been done for &lt;tt&gt;/var/www/drupal/sites/default/modules/crinqp/crinqp.module&lt;/tt&gt;:
&lt;/p&gt;
&lt;pre class="wiki"&gt;  // updated by chris on 2015-07-06 see https://trac.crin.org/trac/ticket/5
  //$link = "http://wiki.crin.org/mediawiki/index.php?title=".$counrty;
  $link = "http://wiki.crin.org/wiki/".$counrty;
&lt;/pre&gt;&lt;p&gt;
And for &lt;tt&gt;/var/www/drupal/sites/default/modules/crinqp/crinqp.php&lt;/tt&gt;:
&lt;/p&gt;
&lt;pre class="wiki"&gt;  // updated by chris on 2015-07-06 see https://trac.crin.org/trac/ticket/5
  //$link = "http://wiki.crin.org/mediawiki/index.php?title=".$counrty;
  $link = "http://wiki.crin.org/wiki/".$counrty;
&lt;/pre&gt;&lt;blockquote class="citation"&gt;
&lt;ol start="4"&gt;&lt;li&gt;Update the wiki URLs in the Drupal database, perhaps using the &lt;a class="ext-link" href="https://www.drupal.org/project/sar"&gt;&lt;span class="icon"&gt;​&lt;/span&gt;Drush Search &amp;amp; Replace module&lt;/a&gt;.
&lt;/li&gt;&lt;/ol&gt;&lt;/blockquote&gt;
&lt;p&gt;
Install the Drupal module on &lt;a class="wiki" href="https://trac.crin.org/trac/wiki/Crin2"&gt;Crin2&lt;/a&gt;:
&lt;/p&gt;
&lt;pre class="wiki"&gt;cd /usr/local/src
wget https://ftp.drupal.org/files/projects/sar-7.x-1.0.tar.gz
tar -zxvf sar-7.x-1.0.tar.gz
mkdir -p /var/www/.drush/commands
cp -a sar /var/www/.drush/commands/
&lt;/pre&gt;&lt;p&gt;
Backup the database on &lt;a class="wiki" href="https://trac.crin.org/trac/wiki/Crin1"&gt;Crin1&lt;/a&gt;:
&lt;/p&gt;
&lt;pre class="wiki"&gt;/usr/local/bin/backup-mysql
&lt;/pre&gt;&lt;p&gt;
However the Dtupal search and replace module doesn't work:
&lt;/p&gt;
&lt;pre class="wiki"&gt;su - www-data -s /bin/bash
cd drupal/
drush help sar
  Invalid command sar.                                                                             [error]
drush sql-cli
  ERROR 1045 (28000): Access denied for user 'drupal'@'crin2' (using password: YES)
drush sql-query "show tables"
  Query failed.                                                                                    [error]
&lt;/pre&gt;&lt;p&gt;
See &lt;a class="closed ticket" href="https://trac.crin.org/trac/ticket/18" title="defect: Drush (closed: fixed)"&gt;ticket:18&lt;/a&gt; for the above problem.
&lt;/p&gt;
&lt;p&gt;
So looking at doing this at a MySQL level, frirst fine which tables contain this data:
&lt;/p&gt;
&lt;pre class="wiki"&gt;cd /var/backups/mysql/databases/drupal
grep "wiki.crin.org" -rli
field_data_field_wiki_link.sql
field_revision_body.sql
field_data_body.sql
field_revision_field_wiki_link.sql
field_revision_field_attachment_link.sql
field_data_field_attachment_link.sql
cache_entity_node.sql
&lt;/pre&gt;&lt;p&gt;
The &lt;tt&gt;field_data_field_wiki_link&lt;/tt&gt; and &lt;tt&gt;field_revision_field_wiki_link&lt;/tt&gt; tables contains the links, so the dumps of these tables were edited and imported:
&lt;/p&gt;
&lt;pre class="wiki"&gt;cd /var/backups/mysql/databases/drupal
cp field_data_field_wiki_link.sql field_data_field_wiki_link.sql.bak
cp field_revision_field_wiki_link.sql field_revision_field_wiki_link.sql.bak
vim field_data_field_wiki_link.sql field_revision_field_wiki_link.sql
  :1,$s;http://wiki.crin.org/mediawiki/index.php?title=;http://wiki.crin.org/wiki/;g
cat field_data_field_wiki_link.sql | mysql drupal
cat field_revision_field_wiki_link.sql | mysql drupal
&lt;/pre&gt;&lt;p&gt;
I think that will do -- the links on the Drupal site haven't been updated, for example this link:
&lt;/p&gt;
&lt;ul&gt;&lt;li&gt;&lt;a class="ext-link" href="http://wiki.crin.org/mediawiki/index.php?title=Algeria"&gt;&lt;span class="icon"&gt;​&lt;/span&gt;http://wiki.crin.org/mediawiki/index.php?title=Algeria&lt;/a&gt;
&lt;/li&gt;&lt;/ul&gt;&lt;p&gt;
Exists on this page:
&lt;/p&gt;
&lt;ul&gt;&lt;li&gt;&lt;a class="ext-link" href="https://www.crin.org/en/library/countries/algeria"&gt;&lt;span class="icon"&gt;​&lt;/span&gt;https://www.crin.org/en/library/countries/algeria&lt;/a&gt;
&lt;/li&gt;&lt;/ul&gt;&lt;p&gt;
But a redirect is in place, eg:
&lt;/p&gt;
&lt;pre class="wiki"&gt;lynx -dump -head "http://wiki.crin.org/mediawiki/index.php?title=Algeria" | grep Location
Location: http://wiki.crin.org/wiki?title=Algeria
&lt;/pre&gt;&lt;p&gt;
So nobody should get a 404.
&lt;/p&gt;
      </description>
      <category>Ticket</category>
    </item><item>
      
        <dc:creator>chris</dc:creator>

      <pubDate>Mon, 06 Jul 2015 17:01:12 GMT</pubDate>
      <title>hours, totalhours changed</title>
      <link>https://trac.crin.org/trac/ticket/5#comment:17</link>
      <guid isPermaLink="false">https://trac.crin.org/trac/ticket/5#comment:17</guid>
      <description>
          &lt;ul&gt;
            &lt;li&gt;&lt;strong&gt;hours&lt;/strong&gt;
                changed from &lt;em&gt;0&lt;/em&gt; to &lt;em&gt;0.05&lt;/em&gt;
            &lt;/li&gt;
            &lt;li&gt;&lt;strong&gt;totalhours&lt;/strong&gt;
                changed from &lt;em&gt;6.76&lt;/em&gt; to &lt;em&gt;6.81&lt;/em&gt;
            &lt;/li&gt;
          &lt;/ul&gt;
        &lt;p&gt;
I forgot to update &lt;tt&gt;/var/www/mediawiki/w/LocalSettings.php&lt;/tt&gt; with the new server URL, this has now been done:
&lt;/p&gt;
&lt;pre class="wiki"&gt;#$wgServer = "https://wiki.crin1.crin.org";
$wgServer = "https://wiki.crin.org";
&lt;/pre&gt;
      </description>
      <category>Ticket</category>
    </item><item>
      
        <dc:creator>chris</dc:creator>

      <pubDate>Tue, 07 Jul 2015 09:21:05 GMT</pubDate>
      <title>hours, status, totalhours changed; resolution set</title>
      <link>https://trac.crin.org/trac/ticket/5#comment:18</link>
      <guid isPermaLink="false">https://trac.crin.org/trac/ticket/5#comment:18</guid>
      <description>
          &lt;ul&gt;
            &lt;li&gt;&lt;strong&gt;hours&lt;/strong&gt;
                changed from &lt;em&gt;0&lt;/em&gt; to &lt;em&gt;0.1&lt;/em&gt;
            &lt;/li&gt;
            &lt;li&gt;&lt;strong&gt;status&lt;/strong&gt;
                changed from &lt;em&gt;new&lt;/em&gt; to &lt;em&gt;closed&lt;/em&gt;
            &lt;/li&gt;
            &lt;li&gt;&lt;strong&gt;resolution&lt;/strong&gt;
                set to &lt;em&gt;fixed&lt;/em&gt;
            &lt;/li&gt;
            &lt;li&gt;&lt;strong&gt;totalhours&lt;/strong&gt;
                changed from &lt;em&gt;6.81&lt;/em&gt; to &lt;em&gt;6.91&lt;/em&gt;
            &lt;/li&gt;
          &lt;/ul&gt;
        &lt;p&gt;
The DNS for &lt;tt&gt;wiki.crin.org&lt;/tt&gt; should have updated now, so the old server at GreenQloud can be shutdown / deleted, so closing this ticket because none of the &lt;a class="wiki" href="https://trac.crin.org/trac/wiki/MediaWiki"&gt;MediaWiki&lt;/a&gt; plugin issues listed at &lt;a class="closed ticket" href="https://trac.crin.org/trac/ticket/5#comment:4" title="task: Migrate MediaWiki from GreenQloud (closed: fixed)"&gt;ticket:5#comment:4&lt;/a&gt; are to be fixed as the plan is to delete the wiki as soon as the Drupal dependencies have been removed by Code Positive.
&lt;/p&gt;
&lt;p&gt;
Note that &lt;a href="https://trac.crin.org/trac/report/6"&gt;all the migration tickets are now closed&lt;/a&gt;, however, there might be a need to re-open &lt;a href="https://trac.crin.org/trac/ticket/11"&gt;the backup ticket&lt;/a&gt;.
&lt;/p&gt;
      </description>
      <category>Ticket</category>
    </item><item>
      
        <dc:creator>jenny</dc:creator>

      <pubDate>Tue, 07 Jul 2015 09:50:05 GMT</pubDate>
      <title>status changed; resolution deleted</title>
      <link>https://trac.crin.org/trac/ticket/5#comment:19</link>
      <guid isPermaLink="false">https://trac.crin.org/trac/ticket/5#comment:19</guid>
      <description>
          &lt;ul&gt;
            &lt;li&gt;&lt;strong&gt;status&lt;/strong&gt;
                changed from &lt;em&gt;closed&lt;/em&gt; to &lt;em&gt;reopened&lt;/em&gt;
            &lt;/li&gt;
            &lt;li&gt;&lt;strong&gt;resolution&lt;/strong&gt;
                &lt;em&gt;fixed&lt;/em&gt; deleted
            &lt;/li&gt;
          &lt;/ul&gt;
        &lt;pre class="wiki"&gt;Thanks Chris, we just need to download our MyGreenQloud files which we will do ourselves and then we can shut down.
J
Sent from my iPhone
&amp;gt; On 7 Jul 2015, at 10:21, CRIN Trac &amp;lt;trac@trac.crin.org&amp;gt; wrote:
&amp;gt;
&amp;gt; #5: Migrate MediaWiki from GreenQloud
&amp;gt; -------------------------------------+-------------------------------------
&amp;gt;                 Reporter:  chris    |                Owner:  chris
&amp;gt;                     Type:  task     |               Status:  closed
&amp;gt;                 Priority:  major    |            Milestone:  Install and
&amp;gt;                Component:           |  configure crin1
&amp;gt;  mediawiki                          |              Version:
&amp;gt;               Resolution:  fixed    |             Keywords:
&amp;gt; Estimated Number of Hours:  8        |  Add Hours to Ticket:  0.1
&amp;gt;                Billable?:  1        |          Total Hours:  6.81
&amp;gt; -------------------------------------+-------------------------------------
&amp;gt; Changes (by chris):
&amp;gt;
&amp;gt; * hours:  0 =&amp;gt; 0.1
&amp;gt; * status:  new =&amp;gt; closed
&amp;gt; * resolution:   =&amp;gt; fixed
&amp;gt; * totalhours:  6.81 =&amp;gt; 6.91
&amp;gt;
&amp;gt;
&amp;gt; Comment:
&amp;gt;
&amp;gt; The DNS for `wiki.crin.org` should have updated now, so the old server at
&amp;gt; !GreenQloud can be shutdown / deleted, so closing this ticket because none
&amp;gt; of the MediaWiki plugin issues listed at ticket:5#comment:4 are to be
&amp;gt; fixed as the plan is to delete the wiki as soon as the Drupal dependencies
&amp;gt; have been removed by Code Positive.
&amp;gt;
&amp;gt; Note that [https://trac.crin.org/trac/report/6 all the migration tickets
&amp;gt; are now closed], however, there might be a need to re-open
&amp;gt; [https://trac.crin.org/trac/ticket/11 the backup ticket].
&amp;gt;
&amp;gt; --
&amp;gt; Ticket URL: &amp;lt;https://trac.crin.org/trac/ticket/5#comment:18&amp;gt;
&amp;gt; CRIN Trac &amp;lt;https://trac.crin.org/trac&amp;gt;
&amp;gt; Trac project for CRIN website and servers.
&lt;/pre&gt;
      </description>
      <category>Ticket</category>
    </item><item>
      
        <dc:creator>chris</dc:creator>

      <pubDate>Tue, 07 Jul 2015 09:54:50 GMT</pubDate>
      <title>hours, status, totalhours changed; resolution set</title>
      <link>https://trac.crin.org/trac/ticket/5#comment:20</link>
      <guid isPermaLink="false">https://trac.crin.org/trac/ticket/5#comment:20</guid>
      <description>
          &lt;ul&gt;
            &lt;li&gt;&lt;strong&gt;hours&lt;/strong&gt;
                changed from &lt;em&gt;0&lt;/em&gt; to &lt;em&gt;0.02&lt;/em&gt;
            &lt;/li&gt;
            &lt;li&gt;&lt;strong&gt;status&lt;/strong&gt;
                changed from &lt;em&gt;reopened&lt;/em&gt; to &lt;em&gt;closed&lt;/em&gt;
            &lt;/li&gt;
            &lt;li&gt;&lt;strong&gt;resolution&lt;/strong&gt;
                set to &lt;em&gt;fixed&lt;/em&gt;
            &lt;/li&gt;
            &lt;li&gt;&lt;strong&gt;totalhours&lt;/strong&gt;
                changed from &lt;em&gt;6.91&lt;/em&gt; to &lt;em&gt;6.93&lt;/em&gt;
            &lt;/li&gt;
          &lt;/ul&gt;
        &lt;p&gt;
The email from Jenny, &lt;a class="closed ticket" href="https://trac.crin.org/trac/ticket/5#comment:19" title="task: Migrate MediaWiki from GreenQloud (closed: fixed)"&gt;ticket:5#comment:19&lt;/a&gt;, reopened this ticket, closing it again.
&lt;/p&gt;
      </description>
      <category>Ticket</category>
    </item>
 </channel>
</rss>