Talk:Mediawiki collection extension installation: Difference between revisions

The educational technology and digital learning wiki
Jump to navigation Jump to search
Line 60: Line 60:


Hope this helps --[[User:Kghbln|Kghbln]] ([[User talk:Kghbln|talk]]) 17:51, 24 March 2016 (CET)
Hope this helps --[[User:Kghbln|Kghbln]] ([[User talk:Kghbln|talk]]) 17:51, 24 March 2016 (CET)
== Upgrading from Debian 7 to Debian 8 -- [[User:Kghbln|Kghbln]] ([[User talk:Kghbln|talk]]) 15:19, 13 September 2016 (CEST) -- [[User:Kghbln|Kghbln]] ([[User talk:Kghbln|talk]]) 15:19, 13 September 2016 (CEST) ==
My text

Revision as of 15:19, 13 September 2016

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:

  1. The working and logging directory is '/var/log/mediawiki' instead of '/data/mwcache' to find it easier.
  2. 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 -- Kghbln (talk) 15:19, 13 September 2016 (CEST) -- Kghbln (talk) 15:19, 13 September 2016 (CEST)

My text