generalmediawiki

Install the MultimediaViewer extension

The MultimediaViewer extension gives wiki users a different interface for viewing full-size, or nearly full-size, images in their browser without extraneous page loads or confusing interstitial pages.

To install the MultimediaViewer plugin, please follow the steps below:

  • Download the latest MultimediaViewer version from the official Mediawiki extension page.

  • Uncompress the downloaded file in the extensions directory of Mediawiki. The command below should create the Collection directory in the Mediawiki extensions directory:

    $ tar -xzf MultimediaViewer-*.tar.gz -C /opt/bitnami/apps/mediawiki/htdocs/extensions
    
  • Add the MultimediaViewer plugin to the Mediawiki LocalSettings.php file:

    require_once "$IP/extensions/MultimediaViewer/MultimediaViewer.php";
    

If you have enabled PageSpeed you will need to disable it for the images directory. To do this, edit the file /opt/bitnami/apps/mediawiki/conf/htaccess.conf and modify the Directory directive for that directory. The Directory directive should look like this:

<Directory "/opt/bitnami/apps/mediawiki/htdocs/images">
    # Protect against bug 28235
    <IfModule rewrite_module>
        RewriteEngine On
        RewriteCond %{QUERY_STRING} \.[^\\/:*?\x22<>|%]+(#|\?|$) [nocase]
        RewriteRule . - [forbidden]
    </IfModule>
    ModPagespeed off
</Directory>