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. 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'
- The name of the log file is 'mw-serve_log.txt' instead of 'log.txt'