awsmediawiki

Install the Math extension

NOTE: We are in the process of modifying the file structure and configuration for many Bitnami stacks. On account of these changes, the file paths stated in this guide may change depending on whether your Bitnami stack uses native Linux system packages (Approach A), or if it is a self-contained installation (Approach B). To identify your Bitnami installation type and what approach to follow, run the command below:

 $ test ! -f "/opt/bitnami/common/bin/openssl" && echo "Approach A: Using system packages." || echo "Approach B: Self-contained installation."

The output of the command indicates which approach (A or B) is used by the installation, and will allow you to identify the paths, configuration and commands to use in this guide. Refer to the FAQ for more information on these changes.

If you want to install the Math extension on MediaWiki, please follow these steps depending on your installation type.

Approach A: Bitnami installations using system packages

  • Download the latest Math extension from https://www.mediawiki.org/wiki/Extension:Math.

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

    $ tar -xzf Math-*.tar.gz -C /opt/bitnami/mediawiki/extensions
    
  • Edit the permissions:

    $ sudo chmod 775 Math/
    $ sudo chown -R bitnami:daemon Math/
    
  • Edit the /opt/bitnami/mediawiki/LocalSettings.php file and add this code at the end of the file

    require_once ( "$IP/extensions/Math/Math.php" );
    
  • Run the update script which will automatically create the necessary database tables that this extension needs.

    $ cd /opt/bitnami/mediawiki
    $ php maintenance/update.php
    
  • Check that Math extension is installed by visiting the page Special:Version in your MediaWiki installation. You should see a message similar to this:

MediaWiki Math extension

Approach B: Self-contained Bitnami installations

  • Download the latest Math extension from https://www.mediawiki.org/wiki/Extension:Math.

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

    $ tar -xzf Math-*.tar.gz -C /opt/bitnami/apps/mediawiki/htdocs/extensions
    
  • Edit the permissions:

    $ sudo chmod 775 Math/
    $ sudo chown -R bitnami:daemon Math/
    
  • Edit the /opt/bitnami/apps/mediawiki/htdocs/LocalSettings.php file and add this code at the end of the file

    require_once ( "$IP/extensions/Math/Math.php" );
    
  • Run the update script which will automatically create the necessary database tables that this extension needs.

    $ cd /opt/bitnami/apps/mediawiki/htdocs
    $ php maintenance/update.php
    
  • Check that Math extension is installed by visiting the page Special:Version in your MediaWiki installation. You should see a message similar to this:

MediaWiki Math extension

Last modification June 30, 2020