<?xml version="1.0"?>
<rss xmlns:dc="http://purl.org/dc/elements/1.1/" version="2.0">
  <channel>
    <title>Transition Technology: Ticket #706: Upgrade Mediawiki to 1.22.5 and install the new VisualEditor</title>
    <link>http://localhost:8080/trac/ticket/706</link>
    <description>&lt;p&gt;
From &lt;a class="ext-link" href="http://lists.wikimedia.org/pipermail/mediawiki-announce/2014-March/000144.html"&gt;&lt;span class="icon"&gt;​&lt;/span&gt;MediaWiki-announce&lt;/a&gt;:
&lt;/p&gt;
&lt;blockquote class="citation"&gt;
&lt;p&gt;
this is a notice that on Thursday, March 27th between 17:00-18:00 UTC (Thursday, March 27th, 9:00-10:00am PST) we will release security and maintenance updates for current and supported branches of the &lt;a class="wiki" href="http://localhost:8080/trac/wiki/MediaWiki"&gt;MediaWiki&lt;/a&gt; software. Downloads and patches will be available at that time.
&lt;/p&gt;
&lt;/blockquote&gt;
</description>
    <language>en-us</language>
    <image>
      <title>Transition Technology</title>
      <url>/trac/chrome/site/TransitionNetwork-Logo-Web-Small.jpg</url>
      <link>http://localhost:8080/trac/ticket/706</link>
    </image>
    <generator>Trac 0.12.5</generator>
    <item>
      
        <dc:creator>ed</dc:creator>

      <pubDate>Wed, 26 Mar 2014 15:54:44 GMT</pubDate>
      <title></title>
      <link>http://localhost:8080/trac/ticket/706#comment:1</link>
      <guid isPermaLink="false">http://localhost:8080/trac/ticket/706#comment:1</guid>
      <description>
        &lt;p&gt;
I am going to start asking for a wiki package with a much more significant WYSIWYG in the next few months. fyi.
&lt;/p&gt;
      </description>
      <category>Ticket</category>
    </item><item>
      
        <dc:creator>chris</dc:creator>

      <pubDate>Wed, 26 Mar 2014 15:59:50 GMT</pubDate>
      <title></title>
      <link>http://localhost:8080/trac/ticket/706#comment:2</link>
      <guid isPermaLink="false">http://localhost:8080/trac/ticket/706#comment:2</guid>
      <description>
        &lt;p&gt;
Replying to &lt;a href="http://localhost:8080/trac/ticket/706#comment:1" title="Comment 1 for Ticket #706"&gt;ed&lt;/a&gt;:
&lt;/p&gt;
&lt;blockquote class="citation"&gt;
&lt;p&gt;
I am going to start asking for a wiki package with a much more significant WYSIWYG in the next few months. fyi.
&lt;/p&gt;
&lt;/blockquote&gt;
&lt;p&gt;
We could update to 1.22.5 this week and switch to the new &lt;a class="ext-link" href="https://www.mediawiki.org/wiki/Extension:VisualEditor"&gt;&lt;span class="icon"&gt;​&lt;/span&gt;VisualEditor&lt;/a&gt; at the same time if you would like.
&lt;/p&gt;
      </description>
      <category>Ticket</category>
    </item><item>
      
        <dc:creator>chris</dc:creator>

      <pubDate>Wed, 26 Mar 2014 16:03:21 GMT</pubDate>
      <title></title>
      <link>http://localhost:8080/trac/ticket/706#comment:3</link>
      <guid isPermaLink="false">http://localhost:8080/trac/ticket/706#comment:3</guid>
      <description>
        &lt;p&gt;
More on the new WYSIWYG editor here &lt;a class="ext-link" href="https://www.mediawiki.org/wiki/VisualEditor"&gt;&lt;span class="icon"&gt;​&lt;/span&gt;https://www.mediawiki.org/wiki/VisualEditor&lt;/a&gt;
&lt;/p&gt;
&lt;p&gt;
Test it here: &lt;a class="ext-link" href="https://www.mediawiki.org/wiki/VisualEditor:Test"&gt;&lt;span class="icon"&gt;​&lt;/span&gt;https://www.mediawiki.org/wiki/VisualEditor:Test&lt;/a&gt;
&lt;/p&gt;
      </description>
      <category>Ticket</category>
    </item><item>
      
        <dc:creator>ed</dc:creator>

      <pubDate>Wed, 26 Mar 2014 16:06:24 GMT</pubDate>
      <title></title>
      <link>http://localhost:8080/trac/ticket/706#comment:4</link>
      <guid isPermaLink="false">http://localhost:8080/trac/ticket/706#comment:4</guid>
      <description>
        &lt;p&gt;
Whatever is available and more friendly for management people like me, and will encourage better documentation from techs, we need it.
&lt;/p&gt;
&lt;p&gt;
Documentation will be in the terms and conditions for future contracts and we will need to offer a *nice* solution. *Nice* from my perspective :)
&lt;/p&gt;
      </description>
      <category>Ticket</category>
    </item><item>
      
        <dc:creator>chris</dc:creator>

      <pubDate>Wed, 26 Mar 2014 16:11:51 GMT</pubDate>
      <title></title>
      <link>http://localhost:8080/trac/ticket/706#comment:5</link>
      <guid isPermaLink="false">http://localhost:8080/trac/ticket/706#comment:5</guid>
      <description>
        &lt;p&gt;
Replying to &lt;a href="http://localhost:8080/trac/ticket/706#comment:4" title="Comment 4 for Ticket #706"&gt;ed&lt;/a&gt;:
&lt;/p&gt;
&lt;blockquote class="citation"&gt;
&lt;p&gt;
Whatever is available and more friendly for management people like me
&lt;/p&gt;
&lt;/blockquote&gt;
&lt;p&gt;
Can you test this to see if it is acceptable?
&lt;/p&gt;
&lt;p&gt;
&lt;a class="ext-link" href="https://www.mediawiki.org/wiki/VisualEditor:Test"&gt;&lt;span class="icon"&gt;​&lt;/span&gt;https://www.mediawiki.org/wiki/VisualEditor:Test&lt;/a&gt;
&lt;/p&gt;
      </description>
      <category>Ticket</category>
    </item><item>
      
        <dc:creator>chris</dc:creator>

      <pubDate>Wed, 26 Mar 2014 16:26:39 GMT</pubDate>
      <title>hours, totalhours changed</title>
      <link>http://localhost:8080/trac/ticket/706#comment:6</link>
      <guid isPermaLink="false">http://localhost:8080/trac/ticket/706#comment:6</guid>
      <description>
          &lt;ul&gt;
            &lt;li&gt;&lt;strong&gt;hours&lt;/strong&gt;
                changed from &lt;em&gt;0.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;0.0&lt;/em&gt; to &lt;em&gt;0.25&lt;/em&gt;
            &lt;/li&gt;
          &lt;/ul&gt;
        &lt;blockquote class="citation"&gt;
&lt;p&gt;
The VisualEditor project aims to create a reliable rich-text editor for &lt;a class="wiki" href="http://localhost:8080/trac/wiki/MediaWiki"&gt;MediaWiki&lt;/a&gt;.
&lt;/p&gt;
&lt;p&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;/p&gt;
&lt;/blockquote&gt;
&lt;p&gt;
This is clearly the one to use and it looks stable enough for us:
&lt;/p&gt;
&lt;blockquote class="citation"&gt;
&lt;p&gt;
Use at your own risk; it's not ready for production deployment except for experts!
&lt;/p&gt;
&lt;/blockquote&gt;
&lt;p&gt;
Parsoid will be needed:
&lt;/p&gt;
&lt;ul&gt;&lt;li&gt;&lt;a class="ext-link" href="https://www.mediawiki.org/wiki/Parsoid#Getting_started"&gt;&lt;span class="icon"&gt;​&lt;/span&gt;https://www.mediawiki.org/wiki/Parsoid#Getting_started&lt;/a&gt;
&lt;/li&gt;&lt;li&gt;&lt;a class="ext-link" href="https://www.mediawiki.org/wiki/Parsoid/Setup"&gt;&lt;span class="icon"&gt;​&lt;/span&gt;https://www.mediawiki.org/wiki/Parsoid/Setup&lt;/a&gt;
&lt;/li&gt;&lt;/ul&gt;&lt;p&gt;
This will take some time to set up and document (a few hours I guess) but the result would be that we would using the new default WYSIWYG Wikipedia editor and this is clearly going to be the main one for the next few years, all these others will be abandoned in time:
&lt;/p&gt;
&lt;ul&gt;&lt;li&gt;&lt;a class="ext-link" href="https://www.mediawiki.org/wiki/WYSIWYG_editor"&gt;&lt;span class="icon"&gt;​&lt;/span&gt;https://www.mediawiki.org/wiki/WYSIWYG_editor&lt;/a&gt;
&lt;/li&gt;&lt;/ul&gt;&lt;p&gt;
Should I change the title of this ticket to "Upgrade Mediawiki to 1.22.5 and install the new VisualEditor"?
&lt;/p&gt;
      </description>
      <category>Ticket</category>
    </item><item>
      
        <dc:creator>chris</dc:creator>

      <pubDate>Thu, 27 Mar 2014 18:57:30 GMT</pubDate>
      <title></title>
      <link>http://localhost:8080/trac/ticket/706#comment:7</link>
      <guid isPermaLink="false">http://localhost:8080/trac/ticket/706#comment:7</guid>
      <description>
        &lt;p&gt;
I don't think I'll time tonight to do the 1.19.14 upgrade as it's not yet out.
&lt;/p&gt;
&lt;p&gt;
Tomorrow, if I have an answer to this:
&lt;/p&gt;
&lt;p&gt;
Replying to &lt;a href="http://localhost:8080/trac/ticket/706#comment:6" title="Comment 6 for Ticket #706"&gt;chris&lt;/a&gt;:
&lt;/p&gt;
&lt;blockquote class="citation"&gt;
&lt;p&gt;
Should I change the title of this ticket to "Upgrade Mediawiki to 1.22.5 and install the new VisualEditor"?
&lt;/p&gt;
&lt;/blockquote&gt;
&lt;p&gt;
I could either upgrade to 1.19.14 or 1.22.4 with the new WYSIWYG editor --Ed which would you like me to do?
&lt;/p&gt;
      </description>
      <category>Ticket</category>
    </item><item>
      
        <dc:creator>ed</dc:creator>

      <pubDate>Fri, 28 Mar 2014 06:36:46 GMT</pubDate>
      <title></title>
      <link>http://localhost:8080/trac/ticket/706#comment:8</link>
      <guid isPermaLink="false">http://localhost:8080/trac/ticket/706#comment:8</guid>
      <description>
        &lt;p&gt;
Thanks Chris, upgrade to 1.22.4 with the new WYSIWYG editor
&lt;/p&gt;
      </description>
      <category>Ticket</category>
    </item><item>
      
        <dc:creator>chris</dc:creator>

      <pubDate>Fri, 28 Mar 2014 12:57:22 GMT</pubDate>
      <title>summary changed</title>
      <link>http://localhost:8080/trac/ticket/706#comment:9</link>
      <guid isPermaLink="false">http://localhost:8080/trac/ticket/706#comment:9</guid>
      <description>
          &lt;ul&gt;
            &lt;li&gt;&lt;strong&gt;summary&lt;/strong&gt;
                changed from &lt;em&gt;Mediawiki 1.19.14&lt;/em&gt; to &lt;em&gt;Upgrade Mediawiki to 1.22.5 and install the new VisualEditor&lt;/em&gt;
            &lt;/li&gt;
          &lt;/ul&gt;
      </description>
      <category>Ticket</category>
    </item><item>
      
        <dc:creator>chris</dc:creator>

      <pubDate>Fri, 28 Mar 2014 14:38:08 GMT</pubDate>
      <title>hours, totalhours changed</title>
      <link>http://localhost:8080/trac/ticket/706#comment:10</link>
      <guid isPermaLink="false">http://localhost:8080/trac/ticket/706#comment:10</guid>
      <description>
          &lt;ul&gt;
            &lt;li&gt;&lt;strong&gt;hours&lt;/strong&gt;
                changed from &lt;em&gt;0.0&lt;/em&gt; to &lt;em&gt;1.75&lt;/em&gt;
            &lt;/li&gt;
            &lt;li&gt;&lt;strong&gt;totalhours&lt;/strong&gt;
                changed from &lt;em&gt;0.25&lt;/em&gt; to &lt;em&gt;2.0&lt;/em&gt;
            &lt;/li&gt;
          &lt;/ul&gt;
        &lt;p&gt;
The existing wiki site is running Mediawiki 1.19.13 and has the following &lt;a class="ext-link" href="http://wiki.transitionnetwork.org/Special:Version"&gt;&lt;span class="icon"&gt;​&lt;/span&gt;installed extensions&lt;/a&gt;:
&lt;/p&gt;
&lt;ul&gt;&lt;li&gt;SyntaxHighlight (Version 1.0.8.10) &lt;a class="ext-link" href="https://www.mediawiki.org/wiki/Extension:SyntaxHighlight_GeSHi"&gt;&lt;span class="icon"&gt;​&lt;/span&gt;https://www.mediawiki.org/wiki/Extension:SyntaxHighlight_GeSHi&lt;/a&gt; &lt;em&gt;"This extension is bundled with &lt;a class="wiki" href="http://localhost:8080/trac/wiki/MediaWiki"&gt;MediaWiki&lt;/a&gt; 1.21 and above. Thus you do not have to download it again."&lt;/em&gt;
&lt;/li&gt;&lt;li&gt;Piwik Integration (Version 2.0.0) &lt;a class="ext-link" href="https://www.mediawiki.org/wiki/Extension:Piwik_Integration"&gt;&lt;span class="icon"&gt;​&lt;/span&gt;https://www.mediawiki.org/wiki/Extension:Piwik_Integration&lt;/a&gt;
&lt;/li&gt;&lt;li&gt;WikiEditor (Version 0.3.1) &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;em&gt;"This extension is bundled with &lt;a class="wiki" href="http://localhost:8080/trac/wiki/MediaWiki"&gt;MediaWiki&lt;/a&gt; 1.18 and above. Thus you do not have to download it again."&lt;/em&gt;
&lt;/li&gt;&lt;/ul&gt;&lt;p&gt;
So the only extension that will need manually downloading is Piwik Integration.
&lt;/p&gt;
&lt;p&gt;
Following the upgrade notes, &lt;a class="ext-link" href="http://trac.edgewall.org/intertrac/wiki/MediaWiki%23Updates" title="wiki/MediaWiki#Updates in Trac project trac"&gt;&lt;span class="icon"&gt;​&lt;/span&gt;trac:wiki/MediaWiki#Updates&lt;/a&gt;
&lt;/p&gt;
&lt;pre class="wiki"&gt;sudo -i
cd /web/wiki.transitionnetwork.org
export MW="1.22.5"
wget http://releases.wikimedia.org/mediawiki/1.22/mediawiki-$MW.tar.gz -O mediawiki-$MW.tar.gz
wget http://releases.wikimedia.org/mediawiki/1.22/mediawiki-$MW.tar.gz.sig -O mediawiki-$MW.tar.gz.sig
  gpg --verify mediawiki-$MW.tar.gz.sig
  gpg: Signature made Fri Mar 28 00:21:11 2014 GMT using RSA key ID 7F901A30
  gpg: Good signature from "Mark A. Hershberger &amp;lt;mah@everybody.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: 3CEF 8262 806D 3F0B 6BA1  DBDD 7956 EE47 7F90 1A30
tar -zxvf mediawiki-$MW.tar.gz
rsync -av mediawiki-$MW/ www/
chown root:root -R www/
chown -R www-data:www-data www/cache/
chown -R www-data:www-data www/images/
cd www/maintenance/
php update.php
cd -
wget https://github.com/DaSchTour/piwik-mediawiki-extension/archive/master.zip
unzip master.zip
rsync -av piwik-mediawiki-extension-master/ www/extensions/Piwik/
rm mediawiki-$MW.tar.gz mediawiki-$MW.tar.gz.sig
rm -rf mediawiki-$MW
rm -rf piwik-mediawiki-extension-master/
rm master.zip
&lt;/pre&gt;&lt;p&gt;
And now on the &lt;a class="ext-link" href="https://wiki.transitionnetwork.org/Special:Version"&gt;&lt;span class="icon"&gt;​&lt;/span&gt;https://wiki.transitionnetwork.org/Special:Version&lt;/a&gt; page we have:
&lt;/p&gt;
&lt;ul&gt;&lt;li&gt;MediaWiki         1.22.5
&lt;/li&gt;&lt;li&gt;SyntaxHighlight (Version 1.0.8.11)
&lt;/li&gt;&lt;li&gt;Piwik Integration (Version 2.4.0)
&lt;/li&gt;&lt;li&gt;WikiEditor (Version 0.3.1)
&lt;/li&gt;&lt;/ul&gt;&lt;p&gt;
Now for the &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; install, following &lt;a class="ext-link" href="https://www.mediawiki.org/wiki/Parsoid/Setup"&gt;&lt;span class="icon"&gt;​&lt;/span&gt;https://www.mediawiki.org/wiki/Parsoid/Setup&lt;/a&gt;
&lt;/p&gt;
&lt;pre class="wiki"&gt;cd /web/wiki.transitionnetwork.org
git clone https://gerrit.wikimedia.org/r/p/mediawiki/services/parsoid
aptitude install nodejs npm
  Couldn't find any package whose name or description matched "nodejs"
  Couldn't find any package matching "npm".
&lt;/pre&gt;&lt;p&gt;
So, following &lt;a class="ext-link" href="https://github.com/joyent/node/wiki/Installing-Node.js-via-package-manager#backports"&gt;&lt;span class="icon"&gt;​&lt;/span&gt;https://github.com/joyent/node/wiki/Installing-Node.js-via-package-manager#backports&lt;/a&gt; &lt;tt&gt;/etc/apt/sources.list.d/backports.list&lt;/tt&gt; was created containing:
&lt;/p&gt;
&lt;pre class="wiki"&gt;deb http://ftp.debian.org/debian wheezy-backports main
&lt;/pre&gt;&lt;p&gt;
And following &lt;a class="ext-link" href="https://github.com/joyent/node/wiki/backports.debian.org"&gt;&lt;span class="icon"&gt;​&lt;/span&gt;https://github.com/joyent/node/wiki/backports.debian.org&lt;/a&gt;
&lt;/p&gt;
&lt;pre class="wiki"&gt;aptitude update
aptitude install nodejs-legacy curl
curl --insecure https://www.npmjs.org/install.sh | bash
&lt;/pre&gt;&lt;p&gt;
Then:
&lt;/p&gt;
&lt;pre class="wiki"&gt;cd /web/wiki.transitionnetwork.org/parsoid
npm install
&lt;/pre&gt;&lt;p&gt;
Then create /web/wiki.transitionnetwork.org/parsoid/api/localsettings.js containing:
&lt;/p&gt;
&lt;pre class="wiki"&gt;/*
 * This is a sample configuration file.
 *
 * Copy this file to localsettings.js and edit that file to fit your needs.
 *
 * Also see the file ParserService.js for more information.
 */
exports.setup = function( parsoidConfig ) {
        // The URL of your MediaWiki API endpoint
        //
        // We pre-define wikipedias as 'enwiki', 'dewiki' etc. Similarly for
        // other projects: 'enwiktionary', 'enwikiquote', 'enwikibooks',
        // 'enwikivoyage' etc.
        //
        // Optionally, you can also pass in a proxy specific to this prefix
        // (overrides defaultAPIProxyURI), or null to disable proxying for
        // this end point.
        //parsoidConfig.setInterwiki( 'localhost', 'http://localhost/w/api.php' );
        parsoidConfig.setInterwiki( 'localhost', 'http://wiki.transitionnetwork.org/api.php' );
        // A default proxy to connect to the API endpoints. Default: undefined
        // (no proxying). Overridden by per-wiki proxy config in setInterwiki.
        // parsoidConfig.defaultAPIProxyURI = 'http://proxy.example.org:8080';
        // Enable debug mode (prints extra debugging messages)
        // parsoidConfig.debug = true;
        // Use the PHP preprocessor to expand templates via the MW API (default true)
        //parsoidConfig.usePHPPreProcessor = false;
        // Use selective serialization (default false)
        parsoidConfig.useSelser = true;
        // Allow cross-domain requests to the API (default '*')
        // Sets Access-Control-Allow-Origin header
        // disable:
        //parsoidConfig.allowCORS = false;
        // restrict:
        parsoidConfig.allowCORS = 'wiki.transitionnetwork.org';
};
&lt;/pre&gt;&lt;p&gt;
The start the server:
&lt;/p&gt;
&lt;pre class="wiki"&gt;cd /web/wiki.transitionnetwork.org/parsoid
export INTERFACE=127.0.0.1
node api/server.js
&lt;/pre&gt;&lt;p&gt;
So it looks like it's working, create a &lt;tt&gt;/etc/init.d/pslparsoid&lt;/tt&gt; file following the example at &lt;a class="ext-link" href="https://www.mediawiki.org/wiki/Talk:Parsoid"&gt;&lt;span class="icon"&gt;​&lt;/span&gt;https://www.mediawiki.org/wiki/Talk:Parsoid&lt;/a&gt;
&lt;/p&gt;
&lt;pre class="wiki"&gt;#! /bin/sh
# /etc/init.d/pslparsoid
### BEGIN INIT INFO
# Provides:             pslparsoid
# Required-Start:       $remote_fs $syslog
# Required-Stop:        $remote_fs $syslog
# Should-Start:         $local_fs
# Should-Stop:          $local_fs
# Default-Start:        2 3 4 5
# Default-Stop:         0 1 6
# Short-Description:    Start Parsoid daemon
# Description:          Start up Parsoid, Debian run-level script by PSL GbR (draft)
### END INIT INFO
# Some things that run always
#env VCAP_APP_PORT="8000"
#env NODE_PATH="/web/wiki.transitionnetwork.org/parsoid/node_modules"
export VCAP_APP_PORT="8000"
export NODE_PATH="/web/wiki.transitionnetwork.org/parsoid/node_modules"
# Carry out specific functions when asked to by the system
case "$1" in
  start)
    echo "Starting Parsoid..."
    cd "/web/wiki.transitionnetwork.org/parsoid"
    /usr/bin/node /web/wiki.transitionnetwork.org/parsoid/api/server.js &amp;gt;&amp;gt; nohup.out 2&amp;gt;&amp;amp;1 &amp;amp;
    ;;
  restart)
    echo "Stopping Parsoid..."
    echo "killall -9 node, could do more here..."
    killall -9 node
    ;;
  'reload'|'force-reload')
    echo "Could fail..."
    cd "/web/wiki.transitionnetwork.org/parsoid"
    /usr/bin/node /web/wiki.transitionnetwork.org/parsoid/api/server.js &amp;gt;&amp;gt; nohup.out 2&amp;gt;&amp;amp;1 &amp;amp;
    ;;
  stop)
    echo "Stopping Parsoid..."
    killall -9 node
    ;;
  *)
    echo "Usage: /etc/init.d/pslparsoid {start|stop|restart|reload|force-reload}"
    exit 1
    ;;
esac
exit 0
&lt;/pre&gt;&lt;p&gt;
Install the VisualEditor extension:
&lt;/p&gt;
&lt;pre class="wiki"&gt;cd /web/wiki.transitionnetwork.org
wget https://codeload.github.com/wikimedia/mediawiki-extensions-VisualEditor/legacy.tar.gz/REL1_22 -O VisualEditor.tar.gz
tar -zxvf VisualEditor.tar.gz
mkdir /web/wiki.transitionnetwork.org/www/extensions/VisualEditor
rsync -av wikimedia-mediawiki-extensions-VisualEditor-43e96d7/ www/extensions/VisualEditor/
mv
rm -rf VisualEditor.tar.gz wikimedia-mediawiki-extensions-VisualEditor-43e96d7/
&lt;/pre&gt;&lt;p&gt;
Edit LocalSettings.php and add:
&lt;/p&gt;
&lt;pre class="wiki"&gt;require_once("$IP/extensions/VisualEditor/VisualEditor.php");
// OPTIONAL: Enable VisualEditor in other namespaces
// By default, VE is only enabled in NS_MAIN
//$wgVisualEditorNamespaces[] = NS_PROJECT;
// Enable by default for everybody
$wgDefaultUserOptions['visualeditor-enable'] = 1;
// Don't allow users to disable it
// $wgHiddenPrefs[] = 'visualeditor-enable';
// OPTIONAL: Enable VisualEditor's experimental code features
//$wgVisualEditorEnableExperimentalCode = true;
// URL to the Parsoid instance
// MUST NOT end in a slash due to Parsoid bug
$wgVisualEditorParsoidURL = 'http://localhost:8000';
&lt;/pre&gt;&lt;p&gt;
Start the Parsoid server and set it to run on a reboot:
&lt;/p&gt;
&lt;pre class="wiki"&gt;/etc/init.d/pslparsoid start
update-rc.d pslparsoid defaults
&lt;/pre&gt;&lt;p&gt;
And we now have a new WYSIWYG editor for the Main namespace (most pages):
&lt;/p&gt;
&lt;ul&gt;&lt;li&gt;&lt;a class="ext-link" href="https://wiki.transitionnetwork.org/index.php?title=Main_Page&amp;amp;veaction=edit"&gt;&lt;span class="icon"&gt;​&lt;/span&gt;https://wiki.transitionnetwork.org/index.php?title=Main_Page&amp;amp;veaction=edit&lt;/a&gt;
&lt;/li&gt;&lt;/ul&gt;&lt;p&gt;
TODO:
&lt;/p&gt;
&lt;ul&gt;&lt;li&gt;Test it
&lt;/li&gt;&lt;li&gt;Document it
&lt;/li&gt;&lt;/ul&gt;
      </description>
      <category>Ticket</category>
    </item><item>
      
        <dc:creator>chris</dc:creator>

      <pubDate>Fri, 28 Mar 2014 23:07:35 GMT</pubDate>
      <title>hours, status, totalhours changed; resolution set</title>
      <link>http://localhost:8080/trac/ticket/706#comment:11</link>
      <guid isPermaLink="false">http://localhost:8080/trac/ticket/706#comment:11</guid>
      <description>
          &lt;ul&gt;
            &lt;li&gt;&lt;strong&gt;hours&lt;/strong&gt;
                changed from &lt;em&gt;0.0&lt;/em&gt; to &lt;em&gt;0.25&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;2.0&lt;/em&gt; to &lt;em&gt;2.25&lt;/em&gt;
            &lt;/li&gt;
          &lt;/ul&gt;
        &lt;p&gt;
I have done some testing and the new editor seems to be working fine, I have also updated the &lt;a class="wiki" href="http://localhost:8080/trac/wiki/MediaWiki"&gt;wiki:MediaWiki&lt;/a&gt; page, the upgrade notes can be updated next time it is upgraded -- this will be a more complex task in the future.
&lt;/p&gt;
&lt;p&gt;
Closing this ticket now.
&lt;/p&gt;
      </description>
      <category>Ticket</category>
    </item><item>
      
        <dc:creator>chris</dc:creator>

      <pubDate>Fri, 28 Mar 2014 23:37:41 GMT</pubDate>
      <title>hours, totalhours changed</title>
      <link>http://localhost:8080/trac/ticket/706#comment:12</link>
      <guid isPermaLink="false">http://localhost:8080/trac/ticket/706#comment:12</guid>
      <description>
          &lt;ul&gt;
            &lt;li&gt;&lt;strong&gt;hours&lt;/strong&gt;
                changed from &lt;em&gt;0.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;2.25&lt;/em&gt; to &lt;em&gt;2.5&lt;/em&gt;
            &lt;/li&gt;
          &lt;/ul&gt;
        &lt;p&gt;
It's worth noting that adding nodejs has increased the memory usage on the server, see:
&lt;/p&gt;
&lt;p&gt;
&lt;a class="ext-link" href="https://penguin.transitionnetwork.org/munin/transitionnetwork.org/penguin.transitionnetwork.org/memory.html"&gt;&lt;span class="icon"&gt;​&lt;/span&gt;https://penguin.transitionnetwork.org/munin/transitionnetwork.org/penguin.transitionnetwork.org/memory.html&lt;/a&gt;
&lt;/p&gt;
&lt;p&gt;
I have updated the &lt;tt&gt;/etc/munin/plugin-conf.d/munin-node&lt;/tt&gt; files:
&lt;/p&gt;
&lt;pre class="wiki"&gt;[multips_memory]
env.names php5-fpm munin-node nginx mysqld tracd python PassengerHelper PassengerLoggin PassengerWatchd nodejs ruby1.8
&lt;/pre&gt;&lt;p&gt;
To keep track of this here:
&lt;/p&gt;
&lt;ul&gt;&lt;li&gt;&lt;a class="ext-link" href="https://penguin.transitionnetwork.org/munin/transitionnetwork.org/penguin.transitionnetwork.org/multips_memory.html"&gt;&lt;span class="icon"&gt;​&lt;/span&gt;https://penguin.transitionnetwork.org/munin/transitionnetwork.org/penguin.transitionnetwork.org/multips_memory.html&lt;/a&gt;
&lt;/li&gt;&lt;/ul&gt;&lt;p&gt;
There are 11 nodejs processes:
&lt;/p&gt;
&lt;pre class="wiki"&gt;ps -lA | grep nodejs | wc -l
11
&lt;/pre&gt;&lt;p&gt;
This is probably way more than we need, it's using over 500MB of RAM, but I can't find where to set this, we might need to allocate more RAM to the server.
&lt;/p&gt;
      </description>
      <category>Ticket</category>
    </item><item>
      
        <dc:creator>chris</dc:creator>

      <pubDate>Tue, 01 Apr 2014 11:52:24 GMT</pubDate>
      <title>attachment set</title>
      <link>http://localhost:8080/trac/ticket/706</link>
      <guid isPermaLink="false">http://localhost:8080/trac/ticket/706</guid>
      <description>
          &lt;ul&gt;
            &lt;li&gt;&lt;strong&gt;attachment&lt;/strong&gt;
                set to &lt;em&gt;penguin_2014-04-01_multips_memory-day.png&lt;/em&gt;
            &lt;/li&gt;
          &lt;/ul&gt;
      </description>
      <category>Ticket</category>
    </item><item>
      
        <dc:creator>chris</dc:creator>

      <pubDate>Tue, 01 Apr 2014 11:55:03 GMT</pubDate>
      <title>hours, totalhours changed</title>
      <link>http://localhost:8080/trac/ticket/706#comment:13</link>
      <guid isPermaLink="false">http://localhost:8080/trac/ticket/706#comment:13</guid>
      <description>
          &lt;ul&gt;
            &lt;li&gt;&lt;strong&gt;hours&lt;/strong&gt;
                changed from &lt;em&gt;0.0&lt;/em&gt; to &lt;em&gt;0.5&lt;/em&gt;
            &lt;/li&gt;
            &lt;li&gt;&lt;strong&gt;totalhours&lt;/strong&gt;
                changed from &lt;em&gt;2.5&lt;/em&gt; to &lt;em&gt;3.0&lt;/em&gt;
            &lt;/li&gt;
          &lt;/ul&gt;
        &lt;p&gt;
Looking at &lt;tt&gt;/web/wiki.transitionnetwork.org/parsoid/api/server.js&lt;/tt&gt; it's clear why 11 server are started:
&lt;/p&gt;
&lt;pre class="wiki"&gt; // Start a few more workers than there are cpus visible to the OS,
 // so that we get some degree of parallelism even on single-core
 // systems. A single long-running request would otherwise hold up
 // all concurrent short requests.
&lt;/pre&gt;&lt;p&gt;
We have these options:
&lt;/p&gt;
&lt;pre class="wiki"&gt;cd /web/wiki.transitionnetwork.org/parsoid/api
./server.js -h
  Usage: node ./server.js [-h|-v] [--param[=val]]
  Options:
    -n, --num-workers  [default: 11]
    -c, --config       [default: "/web/wiki.transitionnetwork.org/parsoid/api/localsettings.js"]
    -v, --version      [default: false]
    -h, --help         [default: false]
&lt;/pre&gt;&lt;p&gt;
So &lt;tt&gt;/etc/init.d/pslparsoid&lt;/tt&gt; has been edited to:
&lt;/p&gt;
&lt;pre class="wiki"&gt;#! /bin/sh
# /etc/init.d/pslparsoid
### BEGIN INIT INFO
# Provides:             pslparsoid
# Required-Start:       $remote_fs $syslog
# Required-Stop:        $remote_fs $syslog
# Should-Start:         $local_fs
# Should-Stop:          $local_fs
# Default-Start:        2 3 4 5
# Default-Stop:         0 1 6
# Short-Description:    Start Parsoid daemon
# Description:          Start up Parsoid, Debian run-level script by PSL GbR (draft)
### END INIT INFO
# Some things that run always
#env VCAP_APP_PORT="8000"
#env NODE_PATH="/web/wiki.transitionnetwork.org/parsoid/node_modules"
export VCAP_APP_PORT="8000"
export NODE_PATH="/web/wiki.transitionnetwork.org/parsoid/node_modules"
NUM_WORKERS="4"
# Carry out specific functions when asked to by the system
case "$1" in
  start)
    echo "Starting Parsoid with ${NUM_WORKERS} worker processes..."
    cd "/web/wiki.transitionnetwork.org/parsoid"
    /usr/bin/node /web/wiki.transitionnetwork.org/parsoid/api/server.js -n ${NUM_WORKERS} &amp;gt;&amp;gt; nohup.out 2&amp;gt;&amp;amp;1 &amp;amp;
    ;;
  restart)
    echo "Stopping Parsoid..."
    echo "killall -9 node, could do more here..."
    killall -9 node
    ;;
  'reload'|'force-reload')
    echo "Could fail..."
    cd "/web/wiki.transitionnetwork.org/parsoid"
    /usr/bin/node /web/wiki.transitionnetwork.org/parsoid/api/server.js -n ${NUM_WORKERS} &amp;gt;&amp;gt; nohup.out 2&amp;gt;&amp;amp;1 &amp;amp;
    ;;
  stop)
    echo "Stopping Parsoid..."
    killall -9 node
    ;;
  *)
    echo "Usage: /etc/init.d/pslparsoid {start|stop|restart|reload|force-reload}"
    exit 1
    ;;
esac
exit 0
&lt;/pre&gt;&lt;p&gt;
And it was stopped and restarted and the number of processes checked:
&lt;/p&gt;
&lt;pre class="wiki"&gt;/etc/init.d/pslparsoid stop
/etc/init.d/pslparsoid start
ps -lA | grep nodejs | wc -l
4
&lt;/pre&gt;&lt;p&gt;
We should now see less memory usage overall:
&lt;/p&gt;
&lt;ul&gt;&lt;li&gt;&lt;a class="ext-link" href="https://penguin.transitionnetwork.org/munin/transitionnetwork.org/penguin.transitionnetwork.org/memory.html"&gt;&lt;span class="icon"&gt;​&lt;/span&gt;https://penguin.transitionnetwork.org/munin/transitionnetwork.org/penguin.transitionnetwork.org/memory.html&lt;/a&gt;
&lt;/li&gt;&lt;/ul&gt;&lt;p&gt;
And specifically less used by nodejs:
&lt;/p&gt;
&lt;ul&gt;&lt;li&gt;&lt;a class="ext-link" href="https://penguin.transitionnetwork.org/munin/transitionnetwork.org/penguin.transitionnetwork.org/multips_memory.html"&gt;&lt;span class="icon"&gt;​&lt;/span&gt;https://penguin.transitionnetwork.org/munin/transitionnetwork.org/penguin.transitionnetwork.org/multips_memory.html&lt;/a&gt;
&lt;/li&gt;&lt;/ul&gt;&lt;p&gt;
&lt;a style="padding:0; border:none" href="http://localhost:8080/trac/attachment/ticket/706/penguin_2014-04-01_multips_memory-day.png"&gt;&lt;img src="http://localhost:8080/trac/raw-attachment/ticket/706/penguin_2014-04-01_multips_memory-day.png" /&gt;&lt;/a&gt;
&lt;/p&gt;
&lt;p&gt;
I have done some testing of the new editor on a new &lt;a class="ext-link" href="https://wiki.transitionnetwork.org/Sandbox"&gt;&lt;span class="icon"&gt;​&lt;/span&gt;https://wiki.transitionnetwork.org/Sandbox&lt;/a&gt; page and it seems good to me.
&lt;/p&gt;
&lt;p&gt;
There are now two edit options, "Edit" and "Edit source" -- the "Edit" option is the new editor and the "Edit source" is the old one.
&lt;/p&gt;
&lt;p&gt;
I have added a &lt;a class="wiki" href="http://localhost:8080/trac/wiki/MediaWiki#Parsoid"&gt;wiki:MediaWiki#Parsoid&lt;/a&gt; section to the documentation.
&lt;/p&gt;
      </description>
      <category>Ticket</category>
    </item><item>
      
        <dc:creator>chris</dc:creator>

      <pubDate>Tue, 01 Apr 2014 12:38:26 GMT</pubDate>
      <title>hours, totalhours changed</title>
      <link>http://localhost:8080/trac/ticket/706#comment:14</link>
      <guid isPermaLink="false">http://localhost:8080/trac/ticket/706#comment:14</guid>
      <description>
          &lt;ul&gt;
            &lt;li&gt;&lt;strong&gt;hours&lt;/strong&gt;
                changed from &lt;em&gt;0.0&lt;/em&gt; to &lt;em&gt;0.1&lt;/em&gt;
            &lt;/li&gt;
            &lt;li&gt;&lt;strong&gt;totalhours&lt;/strong&gt;
                changed from &lt;em&gt;3.0&lt;/em&gt; to &lt;em&gt;3.1&lt;/em&gt;
            &lt;/li&gt;
          &lt;/ul&gt;
        &lt;p&gt;
I have just dropped the number of node.js processes from 4 to 2 -- we don't use the Mediawiki site enough to justify more at the moment, this will half the RAM usage.
&lt;/p&gt;
      </description>
      <category>Ticket</category>
    </item><item>
      
        <dc:creator>ed</dc:creator>

      <pubDate>Tue, 01 Apr 2014 13:52:52 GMT</pubDate>
      <title></title>
      <link>http://localhost:8080/trac/ticket/706#comment:15</link>
      <guid isPermaLink="false">http://localhost:8080/trac/ticket/706#comment:15</guid>
      <description>
        &lt;p&gt;
nice
&lt;/p&gt;
      </description>
      <category>Ticket</category>
    </item><item>
      
        <dc:creator>chris</dc:creator>

      <pubDate>Tue, 01 Apr 2014 14:08:24 GMT</pubDate>
      <title></title>
      <link>http://localhost:8080/trac/ticket/706#comment:16</link>
      <guid isPermaLink="false">http://localhost:8080/trac/ticket/706#comment:16</guid>
      <description>
        &lt;p&gt;
Replying to &lt;a href="http://localhost:8080/trac/ticket/706#comment:15" title="Comment 15 for Ticket #706"&gt;ed&lt;/a&gt;:
&lt;/p&gt;
&lt;blockquote class="citation"&gt;
&lt;p&gt;
nice
&lt;/p&gt;
&lt;/blockquote&gt;
&lt;p&gt;
Indeed, it's by far the best HTML WYSIWYG editor I've ever used, the only issue I found was no table support, but I expect that this will be on the todo list.
&lt;/p&gt;
&lt;p&gt;
Now we need to work out how the Transition Network can make more use of their wiki!
&lt;/p&gt;
      </description>
      <category>Ticket</category>
    </item><item>
      
        <dc:creator>ed</dc:creator>

      <pubDate>Tue, 01 Apr 2014 14:41:09 GMT</pubDate>
      <title></title>
      <link>http://localhost:8080/trac/ticket/706#comment:17</link>
      <guid isPermaLink="false">http://localhost:8080/trac/ticket/706#comment:17</guid>
      <description>
        &lt;p&gt;
atm everyone is all over google docs. make it as good as that and we've a chance.
&lt;/p&gt;
      </description>
      <category>Ticket</category>
    </item><item>
      
        <dc:creator>chris</dc:creator>

      <pubDate>Tue, 01 Apr 2014 16:58:20 GMT</pubDate>
      <title></title>
      <link>http://localhost:8080/trac/ticket/706#comment:18</link>
      <guid isPermaLink="false">http://localhost:8080/trac/ticket/706#comment:18</guid>
      <description>
        &lt;p&gt;
Replying to &lt;a href="http://localhost:8080/trac/ticket/706#comment:17" title="Comment 17 for Ticket #706"&gt;ed&lt;/a&gt;:
&lt;/p&gt;
&lt;blockquote class="citation"&gt;
&lt;p&gt;
atm everyone is all over google docs. make it as good as that and we've a chance.
&lt;/p&gt;
&lt;/blockquote&gt;
&lt;p&gt;
Interesting.
&lt;/p&gt;
&lt;p&gt;
Are people doing real-time multi-user editing?
&lt;/p&gt;
&lt;p&gt;
If they are then we should look at setting up pad.transitionnetwork.org running Etherpad Lite:
&lt;/p&gt;
&lt;ul&gt;&lt;li&gt;&lt;a class="ext-link" href="http://etherpad.org/"&gt;&lt;span class="icon"&gt;​&lt;/span&gt;http://etherpad.org/&lt;/a&gt;
&lt;/li&gt;&lt;/ul&gt;&lt;p&gt;
It needs node.js and we have just installed this...
&lt;/p&gt;
&lt;ul&gt;&lt;li&gt;&lt;a class="ext-link" href="https://github.com/ether/etherpad-lite#installation"&gt;&lt;span class="icon"&gt;​&lt;/span&gt;https://github.com/ether/etherpad-lite#installation&lt;/a&gt;
&lt;/li&gt;&lt;/ul&gt;&lt;p&gt;
Are people also using Google for spreadsheets? If they are then Ethercalc at calc.transitionnetwork.org is the answer:
&lt;/p&gt;
&lt;ul&gt;&lt;li&gt;&lt;a class="ext-link" href="http://ethercalc.net/"&gt;&lt;span class="icon"&gt;​&lt;/span&gt;http://ethercalc.net/&lt;/a&gt;
&lt;/li&gt;&lt;/ul&gt;&lt;p&gt;
It also uses node.js:
&lt;/p&gt;
&lt;ul&gt;&lt;li&gt;&lt;a class="ext-link" href="http://ethercalc.net/#install"&gt;&lt;span class="icon"&gt;​&lt;/span&gt;http://ethercalc.net/#install&lt;/a&gt;
&lt;/li&gt;&lt;/ul&gt;&lt;p&gt;
Shall I open a new ticket for this...?
&lt;/p&gt;
      </description>
      <category>Ticket</category>
    </item><item>
      
        <dc:creator>ed</dc:creator>

      <pubDate>Tue, 01 Apr 2014 19:44:14 GMT</pubDate>
      <title></title>
      <link>http://localhost:8080/trac/ticket/706#comment:19</link>
      <guid isPermaLink="false">http://localhost:8080/trac/ticket/706#comment:19</guid>
      <description>
        &lt;p&gt;
No new tickets for now. TN have an intranet group working on doing some requirements as we type. Needs range from Open Atrium stuff to google docs and Huddle shared docs and groups stuff. Etherpad has the shared editing which is good - imo the killer app for google docs is the commenting - e.g. &lt;a class="ext-link" href="https://docs.google.com/document/d/1pINZIzr4NhqBS2KYph_llyuQ4ofSVNDYAE21tKAI-yQ/edit"&gt;&lt;span class="icon"&gt;​&lt;/span&gt;https://docs.google.com/document/d/1pINZIzr4NhqBS2KYph_llyuQ4ofSVNDYAE21tKAI-yQ/edit&lt;/a&gt;
&lt;/p&gt;
      </description>
      <category>Ticket</category>
    </item>
 </channel>
</rss>