you're also getting the error message above if you're using the wrong type of binary.
I've tried on an RaspberryPi the default Lua installation and got the status 2 error message. I enabled the Lua debugging by setting
$wgScribuntoEngineConf['luastandalone']['errorFile'] = '/var/www/html/lua.log' in LocalSettings.php
I've got the message "/var/www/html/extensions/Scribunto/includes/engines/LuaStandalone/lua_ulimit.sh: 1: exec: /var/www/html/extensions/Scribunto/includes/engines/LuaStandalone/binaries/lua5_1_5_linux_32_generic/lua: Exec format error"
what leads me to the <code>file</code> command
The <code>file</code> command returns on the default binaries for Linux
lua: ELF 32-bit LSB pie executable, Intel 80386, version 1 (SYSV), dynamically linked, interpreter /lib/ld-linux.so.2, for GNU/Linux 2.6.9, not stripped
What is on an ARM architecture definitely not right
I downloaded the lua source code and compiled the source with the default configuration and installed the resulting binary to the lua binary directory
The error 2 disappeared.
verified the lua binary using <code>file</code> and the result look good
lua: ELF 32-bit LSB executable, ARM, EABI5 version 1 (SYSV), dynamically linked, interpreter /lib/ld-linux-armhf.so.3, for GNU/Linux 3.2.0, BuildID[sha1]=cee7e1f55815ff1832378947c0b0c4e3a8af6bd3, stripped
solved <br />
~~~~