I have pretty much given up on troubleshooting this issue. I simply cannot get math/Latex to work. Here is the relevant information about my setup:
- Operating system: Fedora 20
- Mediawiki version: 1.23.5
- Database server: MySql 5.6.21
- PHP: 5.5.17 (apache2handler)
LocalSettings.php:
$wgEnableUploads = true;
$wgUseImageMagick = true;
$wgImageMagickConvertCommand = "/usr/bin/convert";
require_once("$IP/extensions/Math/Math.php");
$wgUseTeX =true;
$wgUploadDirectory = "{$IP}/images";
$wgUploadPath ="{$wgScriptPath}/images";
$wgMathPath = "{$wgUploadPath/}math";
$wgMathDirectory = "{$wgUploadDirectory}/math";
$wgTmpDirectory = "{$wgUploadDirectory}/tmp";
$wgTexvc ="{$IP}/extensions/Math/math";
$wgDebugLogFile="{$IP}/images/tmp/logfile.log";
Troubleshooting already done:
- Did not forget to use php ./maintenance/update.php after changing my LocalSettings.php file.
- I have a tmp and math directory in /images. They have group owner "apache" with the appropriate permissions (775).
- I checked texvc by issuing this command in the terminal (with the appropriate directory names changed):
texvc /home/wiki/tmp /home/wiki/math "y=x+2" iso-8859-1 "rgb 1.0 1.0 1.0"
and everything is fine (the file is created in the math directory).
- I tried editing my page with SELinux turned off by using "setenforce 0" and I still get "unknown error" when using math.
- I've made every relevant .php and .php5 file executable with group owner set to "apache".
- I've check the Special:Version page and the math extension is correctly installed.
- Here is the log file that is generated after trying to access the wiki page:
Start command line script ./maintenance/update.php [caches] main: EmptyBagOStuff, message: SqlBagOStuff, parser: SqlBagOStuff [caches] LocalisationCache: using store LCStoreNull Fully initialised Connected to database 0 at localhost DatabaseBase::query: Writes done: UPDATE `page` SET page_random = RAND() WHERE page_random = 0 SQL ERROR (ignored): Table 'my_wiki.profiling' doesn't exist (localhost)
- I tried placing the latex.fmt file in the /images/tmp directory and that still doesn't work.
Final comments:
I've followed every troubleshooting method that I could find through web search and nothing has worked. At this point, I have given up and I'm asking for some help.
Thank You