Question

My Texvc seems to works, since texvc /home/wiki/tmp /home/wiki/math "y=x+2" gives

Cdaa63ef966cc412541190bc8794731de<i>y</i> = <i>x</i> + 2<mi>y</mi><mo>=</mo><mi>x</mi><mo>+</mo><mn>2</mn>

My LocalSettings.php at /var/www/wiki (source)

$IP = "81.111.1.1";
$wgMathPath         = "{$wgUploadPath}/math";
$wgMathDirectory = "{$IP}/images/math";
$wgUploadDirectory  = "{$IP}/images";
$wgUploadPath       = "{$wgScriptPath}/images";
$wgTexvc            = "{$IP}/math/texvc";  # Path to compiled 
texvc
$wgMathDirectory    = "{$wgUploadDirectory}/math";
$wgTmpDirectory     = "{$wgUploadDirectory}/tmp";

I go to my wiki in Firefox and I see the output

Warning: require_once(81.111.1.1/includes/OutputHandler.php) [function.require-once]: failed to open stream: No such file or directory in /var/www/wiki/includes/WebStart.php on line 123

Fatal error: require_once() [function.require]: Failed opening required '81.111.1.1/includes/OutputHandler.php' (include_path='/var/www/wiki:/var/www/wiki/includes:/var/www/wiki/languages:.:/usr/share/php:/usr/share/pear') in /var/www/wiki/includes/WebStart.php on line 123

I am using my correct IP in the variable $IP at /var/www/wiki/LocalSettings.php. I copied /wiki/includes/DefaultSettigs.php to /wiki/, but Math equations are not still working.

I run unsuccessfully RCS' suggestion about including the PATH to the variable $IP. I get the similar warning and error as above.

What would you change in my settings to make Math formulee work?

Was it helpful?

Solution

Check if the math temp directory exists and the permissions on that directory. I think mode 777 is necessary (i.e., chmod a+w /path/to/dir).

There is some further help in the MediaWiki Manual.

edit: the variable $IP is the (local) include path and not an IP-address:

Include path: The $IP (include path) variable holds the local file path to the base installation of your wiki. Make sure you refer to the fully qualified file path. Do not include a slash at the end of the path. The DefaultSettings.php file gets loaded from the directory designated by the IP variable.

OTHER TIPS

My mediawiki locates at /var/www/wiki. However, my $IP refers only to an IP address. It should also refer to the location of the installation directory.

I changed the $IP variable from /usr/share/mediawiki to /var/www/wiki wihout my IP at all. I seem to be able to access my wiki outside of my home though I do not have my IP in the variable.

This change made the Math formulee to work.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top