Collections: Difference between revisions

No edit summary
m Text replacement - "<(\/?)source" to "<$1syntaxhighlight"
Line 22: Line 22:
== Installation ==
== Installation ==
To get the MediaWiki Document server going locally, follow the guide on pediapress.com
To get the MediaWiki Document server going locally, follow the guide on pediapress.com
<source lang="bash">
<syntaxhighlight lang="bash">
cd
cd
mkdir -p $HOME/lib/python2.7
mkdir -p $HOME/lib/python2.7
Line 51: Line 51:
make -f Makefile.Redhat > make.log 2>&1
make -f Makefile.Redhat > make.log 2>&1
cp pdftk ~/bin/
cp pdftk ~/bin/
</source>
</syntaxhighlight>
<pre>
<pre>
Successfully installed mwlib pyparsing timelib bottle pyPdf apipkg qserve lxml py sqlite3dbm simplejson roman gevent odfpy Pillow greenlet
Successfully installed mwlib pyparsing timelib bottle pyPdf apipkg qserve lxml py sqlite3dbm simplejson roman gevent odfpy Pillow greenlet
Line 62: Line 62:
I needed to create a script similar to the following so that the service would be available after system restarts
I needed to create a script similar to the following so that the service would be available after system restarts
(from http://svn.wikimedia.org/viewvc/mediawiki/trunk/tools/mw-serve/mw-serve.sh)
(from http://svn.wikimedia.org/viewvc/mediawiki/trunk/tools/mw-serve/mw-serve.sh)
<source lang="bash">
<syntaxhighlight lang="bash">
#! /bin/sh
#! /bin/sh
# run this service automatically in run-levels 3 or 5
# run this service automatically in run-levels 3 or 5
Line 123: Line 123:


exit 0
exit 0
</source>
</syntaxhighlight>