Knowledge Base Article
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.
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.
Rating
|
Related Articles |
Views |

