MediaWiki math rendering support
To enable the MediaWiki math rendering engine, perform the following steps:
Install the mediawiki-math package
apt-get update apt-get install mediawiki-math
Create the math image directory and change ownership to the web server user
mkdir /var/lib/mediawiki/images/math chown www-data:www-data /var/lib/mediawiki/images/math
Add the following to /etc/mediawiki/LocalSettings.php or /etc/mediawiki/extensions.php
# Math engine
$wgUseTeX = true;
$wgUploadPath = "/images";
$wgUploadDirectory = "images";
$wgMathPath = "{$wgUploadPath}/math";
$wgMathDirectory = "{$wgUploadDirectory}/math";
$wgTmpDirectory = "{$wgUploadDirectory}/tmp";
Go create your math formulas...
Note: if you added the above to /etc/mediawiki/extensions.php you might have to clear mediawiki page cache.
More resources: