SEDSwiki

From SEDSWiki

Jump to: navigation, search

SEDSWiki Server Admin Notes

SEDS is running MediaWiki version 1.12.0.

Contents

ImageMagick

MediaWiki uses ImageMagick for conversion of images (/usr/local/bin/convert). Control is specified in LocalSettings.php, in the same vicinity of variables to allow image uploads:

$wgUseImageMagick = true;
$wgImageMagickConvertCommand = "/usr/local/bin/convert";

Compilation

Some newer version of MediaWiki broke ImageMagic 5's thumbnail conversion. In order to fix it, we had to upgrade to version 6. The commandline argument to configure it is:

LDFLAGS='-L/sw/lib -L/usr/local/lib -L/usr/X11R6/lib -L/usr/X11R6/lib -lfreetype -L/usr/lib' \
CPPFLAGS='-I/sw/include -I/usr/local/include -I/usr/X11R6/include -I/usr/X11R6/include/freetype2 \
-I/usr/X11R6/include -I/usr/X11R6/include/X11 -I/usr/include/libxml2' ./configure

Getting the <Math> code to work

  1. Follow the basic instructions at http://meta.wikimedia.org/wiki/Enable_TeX
  2. Get the massive (300MB) package from http://www.ctan.org/tex-archive/systems/mac/mactex/MacTeX.dmg and install it
  3. Update /web/seds/wiki/html/math/render.ml with paths to the executables. The above installer puts them pretty deep in the path, specifically:
    • let cmd_dvips tmpprefix = "/usr/local/teTeX/bin/powerpc-apple-darwin-current/dvips ...
    • let cmd_latex tmpprefix = "/usr/local/teTeX/bin/powerpc-apple-darwin-current/latex ...
    • let cmd_dvipng tmpprefix finalpath = "/usr/local/teTeX/bin/powerpc-apple-darwin-current/dvipng ...
  4. Install ocaml as described at the first link above
  5. Make texvc in /web/seds/wiki/html/math as specified in the README file in the directory
  6. Enable $wgUseTeX in LocalSettings.php

--Chris 12:51, 13 January 2007 (MST)

When Thumbnails Stop Working

For reasons that I haven't quite figured out, sometimes mediawiki won't be able to make thumbnail previews of upload images. When it does this, re-installing ImageMagick (from /usr/local/src/ImageMagick-*) seems to do the trick. It appears that the permissions get updated as a result, so it may have something to do with that (don't know how they're changing otherwise). Something to investigate... --Chris 11:16, 20 October 2007 (MDT)

Personal tools