Knowledge Base Article

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:

http://sourceforge.net/project/showfiles.php?group_id=34373

Then place this file in the /math folder you created and make sure it is with 755 permissions.



Rating

Please indicate if this article was helpful for you.

rating :  3.5 from 5
views :  2648
votes :  42

Valid XHTML 1.0 Strict Valid CSS!