Talk:Mediawiki collection extension installation
Ubuntu Updates -- Mdupont 18:29, 20 November 2010 (CET) -- Mdupont 18:29, 20 November 2010 (CET)
For me :
sudo aptitude install ttf-indic-fonts ttf-unfonts ttf-farsiweb ttf-arphic-uming ttf-gfs-artemisia ttf-sil-ezra ttf-thai-arundina linux-libertine
this did not work, needed to do this :
sudo apt-get install ttf-linux-libertine ttf-linux-libertine
Mdupont 18:29, 20 November 2010 (CET)
Re: Ubuntu Updates -- Mdupont 18:29, 20 November 2010 (CET) -- Learner 10:24, 30 July 2011 (CEST)
- Replace this text with your reply
I installed mediawiki extension collection. But after rendering is finished i could not download the file and got message "File does not begin with '%PDF-'.". What is the reason or missing something. My site is hosted under unix(linux) shared hosting.
Re: Re: Ubuntu Updates -- Mdupont 18:29, 20 November 2010 (CET) -- Daniel K. Schneider 12:23, 30 July 2011 (CEST)
Are you sure that you installed mwlib.rl also (the PDF renderer). And if it is installed, does it work, i.e. produce a PDF ? Try it on the command line, e.g.
mw-render --config=http://your.wiki/your_page --writer=rl --output=./test.pdf Title_something
Issues with the script on a Debian 8
In case you are using the user 'www-data' as suggested on a Debian 8 the script will not start and instead emit "This account is currently not available." This is because this name is reserved for apache2 to use. Instead create an different user e.g. 'mw-serve' and use this one in the script:
#!/bin/sh
PATH=/bin:/usr/bin:/sbin:/usr/sbin:/usr/local/bin:/usr/local/sbin
case "$1" in
start)
su - mw-serve -c 'nserve >> /var/log/mediawiki/mw-serve_log.txt 2>&1 &'
su - mw-serve -c 'mw-qserve >> /var/log/mediawiki/mw-serve_log.txt 2>&1 &'
su - mw-serve -c 'nslave --cachedir /var/log/mediawiki/ >> /var/log/mediawiki/mw-serve_log.txt 2>&1 &'
su - mw-serve -c 'postman --cachedir /var/log/mediawiki/ >> /var/log/mediawiki/mw-serve_log.txt 2>&1 &'
;;
stop)
mv /var/log/mediawiki/mw-serve_log.txt /var/log/mediawiki/mw-serve_log.txt.old
killall nserve
killall mw-qserve
killall nslave
killall postman
;;
force-reload|restart)
$0 stop
$0 start
;;
*)
echo "Usage: /etc/init.d/mw-serve {start|stop}"
exit 1
;;
esac
exit 0
Note that I did two other adaptations to the suggested script:
- The working and logging directory is '/var/log/mediawiki' instead of '/data/mwcache' to find it easier.
- The name of the log file is 'mw-serve_log.txt' instead of 'log.txt' to make it more unique.
Hope this helps --Kghbln (talk) 17:51, 24 March 2016 (CET)
Upgrading from Debian 7 to Debian 8
When upgrading from Debian 7 to Debian 8 most all of the software mentioned as prerequisite will be upgraded automatically except for "pil", "mwlib" and "mwlib.rl" so you need to issue:
- Step 1 - reinstall and upgrade "pil"
pip install --upgrade --force-reinstall -i http://pypi.pediapress.com/simple/ pil
- Step 2 - upgrade "mwlib"
pip install -i http://pypi.pediapress.com/simple/ --upgrade mwlib
- Step 3 - upgrade "mwlib.rl"
pip install -i http://pypi.pediapress.com/simple/ --upgrade mwlib.rl
- Step 4 - update "Mwlib server daemon"
- per suggestion of this example
- Step 5 - create user "mw-serve" since "www-data" will no longer work
adduser mw-serve
- Step 6 - change permissions of the log directory
chown mw-serve:mw-serve -R /var/log/mediawiki/
- Step 7 - start render servers
/etc/init.d/mw-serve start
- Step 8 - enjoy
- Hurray, it is actually working.
-- Kghbln (talk) 15:19, 13 September 2016 (CEST)
Thanx
- for this, Karsten. Currently, our mwlib installation is indeed broken and I didn't have time to fix it. There is also the new server framework which seems to be even more difficult and it's not really documented. You comments will help me fixing (as soon as I can find some time). - Daniel K. Schneider (talk) 21:52, 13 September 2016 (CEST)
- Btw. other extensions are broken too after a MW 1.27 upgrade, e.g. the discussion extension use here.
Re: Thanx
- You are welcome. Adding this information is the least I can do since this documentation is the only useful one on installing mwlib on Ubuntu and Debian. Yeah, the new MW 1.27 LTS is unexectedly an pretty painful release, but it appears that you have adapted to it in the meantime. :) I am also in big fear of the new Offline Content Generator (OCG), too. Cheers -- Kghbln (talk) 14:53, 4 October 2016 (CEST)