MediaWiki Math support

Install and Enable the Math Extension

In this tutorial we will show you how to enable Math support in your MediaWiki. For newer MediaWiki versions (1.18+) Math is provided as a separate extension and this tutorial will cover how to enable it. For older MediaWiki versions you can check our article about this in our Knowledge Base: How to enable Math support in MediaWiki.

The first step is to download the Math extension from this link.

Then you should extract the archive in the extensions/ folder within your MediaWiki installation directory.

Next, you need to add the following line to your LocalSettings.php file:

The next step is to run the update script which will automatically create the necessary database tables that this extension needs. You should do that over SSH. First, navigate to your MediaWiki installation folder. If it is installed on your main domain, that would be public_html/.

If you installed MediaWiki in a subfolder - for example wiki, the command to navigate to its folder would be similar to the one below.

After that, run the update script using the command below.

Once you've run the command, you need to download the texvc validator from here and upload it to your MediaWiki Installation folder/extensions/Math/math directory.

The last step is to change the permissions of the texvc file to 755.

To test that math support is working properly, you can edit a page and paste one of the below formulas:

The result you should see is: