How to enable Math support in my MediaWiki application?

If you want to enable math support in your MediaWiki, you should follow these steps:

1) Login to your cPanel -> File Manager

2) Browse to your wiki directory and find the configuration file called LocalSettings.php

3) Edit the LocalSettings.php and change the line

$wgUseTeX = false;

to

$wgUseTeX = true;

Then add the following lines to the end of the file:

$wgUploadPath = "images"; 
$wgUploadDirectory = "images"; 
$wgMathPath = "{$wgUploadPath}/math";
$wgMathDirectory = "{$wgUploadDirectory}/math";
$wgTmpDirectory = "{$wgUploadDirectory}/tmp";

Also, you have to make sure that the following directories exist under your MediaWiki directory:

/images/math
/images/tmp

If they do not, please create them and set them 755 permissions. To create a file (directory), you could use the File Manager in your cPanel. To set permissions, you have to click on the name of the desired file (directory), and choose Change Permissions from the upper right corner of your screen.

4. Finally, you have to download the texvc binary from the link below:

Download texvc binary

Then place this file in the /math folder located in your MediaWiki root directory and make sure it is with 755 permissions.

If you have problems enabling Math support in MediaWiki, ask your host for assistance. SiteGround provides the best MediaWiki hosting and such requests are handled with ease.

You need help with an application? hostlantern is specialized in hosting and supporting more than 200 scripts. Sign up for our web hosting services and let us help you with your application, 24/7!

  • 0 Users Found This Useful
Was this answer helpful?

Related Articles

How to assign users to groups in MediaWiki?

If you want to grant extra permissions to some of your registered users in MediaWiki, you have to...

How to get complex math formulas working in MediaWiki

This article explains how to overcome issues with Math formulas not properly displaying in...

How to convert your MediaWiki database to SQLite?

Sometimes, when you have a very popular MediaWiki web site with a lot of articles, the database...

I am getting ‘libgomp: Thread creation failed: Cannot allocate memory’ when uploading images to MediaWiki.

This error message appears when you try to upload an image with large dimensions to a MediaWiki...

How to run the MediaWiki update script through a browser?

By default, when upgrading MediaWiki, you have to run the update.php file from a command prompt....