azuremediawiki

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 MultimediaViewer directory in the Mediawiki extensions directory:

      $ tar -xzf MultimediaViewer-*.tar.gz -C /opt/bitnami/mediawiki/extensions
    
  • Add the MultimediaViewer plugin to the Mediawiki /opt/bitnami/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/apache/conf/vhosts/mediawiki-htaccess.conf and modify the Directory directive for that directory. The Directory directive should look like this:

<Directory "/opt/bitnami/mediawiki/images">
  # Protect against bug T30235
  <IfModule rewrite_module>
    RewriteEngine On
    RewriteOptions inherit
    RewriteCond %{QUERY_STRING} \.[^\\/:*?\x22<>|%]+(#|\?|$) [nocase]
    RewriteRule . - [forbidden]
    # Fix for bug T64289
    Options +FollowSymLinks
  </IfModule>
  ModPagespeed off
</Directory>
Last modification February 9, 2023