From command-line, try the following: sudo apache texvc /mediawiki/images/tmp /mediawiki/images/math "y=x+2" iso-8859-1
If that doesn't work, you should be able to debug from there. Potential fixes: try chgrp'ing images/math and images/tmp to apache as well as chown.
If it works on command-line, try viewing your wiki test page via 'edit this page' - I had problems with the page being cached if I viewed it normally.
--Rob
---------- Original Message ----------
FROM: "Sonali Tamhankar" stamhankar01@gw.hamline.edu TO: mediawiki-l@Wikimedia.org DATE: Tue, 06 Jun 2006 12:54:45 -0500
SUBJECT: [Mediawiki-l] math: Failed to parse (unknown error)
Hello all:
Can you please help me get math set up right with mediawiki?
Here is the problem: Typing "<math>a + b = c</math>" on a page produces output that says "Failed to parse (unknown error): a + b = c".
My OS is Fedora Core 4. I installed mediawiki using instructions on http://meta.wikimedia.org/wiki/Help:Running_MediaWiki_on_Fedora_Core
I've checked following four things: ----------------------------------------------------------------------------------- 1) I have created directories math and tmp: $ pwd /var/www/mediawiki/images $ ls -l total 24 drwxrwxr-x 2 apache root 4096 May 19 14:18 math -rw-r--r-- 1 root root 202 May 7 2004 README drwxrwxr-x 2 apache root 4096 May 19 14:18 tmp
2) latex, dvips, gs and convert are available: $ which gs convert latex dvips /usr/bin/gs /usr/local/bin/convert /usr/bin/latex /usr/bin/dvips
3) Here are some lines from my LocalSettings.php file: $IP = "/var/www/mediawiki"; $wgScriptPath = "/mediawiki"; $wgUploadPath = "$wgScriptPath/images"; $wgUploadDirectory = "$IP/images";
$wgUseTeX = true; $wgMathPath = "{$wgUploadPath}/math"; $wgMathDirectory = "{$wgUploadDirectory}/math"; $wgTmpDirectory = "{$wgUploadDirectory}/tmp";
$wgEnableUploads = true; $wgUseImageResize = true; $wgUseImageMagick = true; $wgImageMagickConvertCommand = "/usr/local/bin/convert";
4) Finally, there is a texvc file in the math directory: $ ls -l total 380 -rwxr-xr-x 1 root root 377016 Apr 3 08:48 texvc
----------------------------------------------------------------------------------- Everything seems okay, but it doesn't work anyway. Any ideas? How do I test the texvc file on command line?
Thanks, - Sonali.
______________________________________________________________________ This email has been scanned by the MessageLabs Email Security System. For more information please visit http://www.messagelabs.com/email ______________________________________________________________________