Collection

This page is about getting a PDF renderserver working with Extension:Collection on this wiki. It's running on an Amazon AWS EC2 instance running Ubuntu.

Install some basics
$ sudo apt-get install python-dev $ sudo apt-get install build-essential $ sudo apt-get install libxml2-dev $ sudo apt-get install libxslt1-dev

Install pip
From StackOverflow.

$ curl -O http://python-distribute.org/distribute_setup.py $ sudo python distribute_setup.py $ curl -O https://raw.github.com/pypa/pip/master/contrib/get-pip.py $ sudo python get-pip.py

Install PIL and mwlib
From PediaPress. IF these behave strangely, you may need the -E switch on sudo, to get it to use your environment.

$ sudo apt-get install python-imaging $ sudo pip install -i http://pypi.pediapress.com/simple/ mwlib $ sudo pip install -i http://pypi.pediapress.com/simple/ mwlib.rl

Test mwlib
$ mw-zip -c :en -o test.zip Geophysics $ mw-render -c test.zip -o test.pdf -w rl

Supervisord configuration
Change the server name from 127.0.0.1 to * and add this:


 * PDF RENDERSERVER - MEDIAWIKI COLLECTION EXTENSION

[program:qserve] command = mw-qserve

[program:nserve] command = nserve

[program:nslave] command = nslave --cachedir /var/cache/mwlib

[program:postman] command = postman --cachedir /var/cache/mwlib