At 10:45 PM 2/16/2009 -0800, Vivek Ayer wrote:
Hi guys,

Because I believe OpenBSD's apache is chrooted, it's causing problems
with texvc parsing stuff.

Don't know anything about texvc, however if you ARE running Apache chroot'd, you need to accomodate it properly.

'./uploads/tmp' was actually previously /mediawiki/uploads/tmp, which
makes no sense under chrooted apache so I set the variable
$wgTmpDirectory to './uploads/tmp'. However, I still get no output. If
I run texvc manually, it works just fine and I get a .png at the end,
but when apache runs texvc, something seems to go wrong.

You cannot run texvc manually as a valid test - it will not be running chroot'd. You can chroot into /var/www and run it from your web site directory, assuming you have a valid shell available in the chroot.

When Math.php is called in mediawiki, what's the working directory.
I'm guessing ./math/texvc './uploads/tmp' './uploads/tmp' 'E=mc^2'
'UTF-8' returns no output because ./math/texvc is not really taking me
to /var/www/mediawiki/math/texvc, which would mean ./uploads/tmp is
also incorrect.

No, ./uploads/tmp must resolve INSIDE the chroot - for example:

If you are chroot'd to /var/www:

./uploads/tmp           =>      /var/www/uploads/tmp

The Apache code sees the path on the left, however the absolute path ON the machine is on the right.

You will need to ensure that all fires required by texvc are properly copied into the chroot, /var/www, with reference to a '/' of '/var/www' - e.g. /usr/local/bin -> /var/www/use/loca./bin.

        HTH,

        Lee


Please help me debug this. I really wish texvc would be replaced by
somethng else. It's too complicated. There's an alternative at
http://www.mediawiki.org/wiki/Texvc_PHP_Alternative and I tried that,
but it said latex couldn't be found even though I changed the
directory to /usr/local/bin/latex in that Math.php file

If someone could just test mediawiki on their OpenBSD box to see if
they got LaTex to work, that would a big help. I'd be willing to
document all this steps on the mediawiki so someone in the future
doesn't have to go through all this trouble I'm going through.

Thanks,
Vivek

Reply via email to