generalmediawiki

Install the Parsoid extension

If you want to install the Parsoid extension on MediaWiki, please follow these steps:

  • Go to the MediaWiki extensions directory:

    $ cd /opt/bitnami/apps/mediawiki/htdocs/extensions
    
  • Download the extension from https://www.mediawiki.org/wiki/Extension:Parsoid.

    $ wget https://extdist.wmflabs.org/dist/extensions/Parsoid-REL1_25-f5500c1.tar.gz
    
  • Extract the code:

    $ tar -xzf Parsoid-REL1_25-f5500c1.tar.gz
    
  • Edit the /opt/bitnami/apps/mediawiki/htdocs/LocalSettings.php file and add this code at the end of the file

    wfLoadExtension( 'Parsoid' );
    
  • Restart the Apache server

    $ sudo /opt/bitnami/ctlscript.sh restart apache
    
  • Check that Parsoid extension is installed by visiting page Special:Version in your MediaWiki page. You will see something like this:

    MediaWiki Parsoid extension

    NOTE: If you are using MediaWiki 1.24 or earlier, you will need to add the line below to your LocalSettings.php file instead.

    require_once "$IP/extensions/Parsoid/Parsoid.php";
    
Last modification September 13, 2018