Changes

Jump to navigation Jump to search
no edit summary
Installation procedure begins with installing the [https://www.mediawiki.org/wiki/Extension:Scribunto Scribunto extension] (the [https://www.mediawiki.org/wiki/Extension:ParserFunctions ParserFunctions extension] comes with Mediawiki 1.18 or newer).
 
$ cd ~/Downloads
$ wget https://extdist.wmflabs.org/dist/extensions/Scribunto-REL1_26-4d4766f.tar.gz
$ tar -xzvf Scribunto-REL1_26-4d4766f.tar.gz
$ cd /var/lib/mediawiki/extensions
$ cp -r ~/Downloads/Scribunto ./Scribunto
 
Then, per the installation instructions on the [https://www.mediawiki.org/wiki/Extension:Scribunto#Installation extension page], add these two lines to LocalSettings.php:
require_once "$IP/extensions/Scribunto/Scribunto.php";
$wgScribuntoDefaultEngine = 'luastandalone';
 
Finally, give all users execute permissions on the Lua binaries that come with the extension (note that you should choose the correct OS in the binaries directory; you can use the uname -m command to determine whether the Linux kernel is 64- or 32-bit)
 
$ sudo chmod a+x /var/lib/mediawiki/extensions/Scribunto/engines/LuaStandalone/binaries/lua5_1_5_linux_64_generic/lua
 
And check if SELinux is enabled with sestatus -v. If it is enabled, set the type:
 
$ chcon -t httpd_sys_script_exec_t /var/lib/mediawiki/extensions/Scribunto/engines/LuaStandalone/binaries/lua5_1_5_linux_64_generic/lua
== To-do list ==
Anonymous user

Navigation menu