My Ubuntu version is 22.04.3, and my Lua version is 5.1.5. I am trying to create a new module, but the system reports an error: lua error: internal error: the interpreter exited with status 127
. I have tried pointing the Lua path to both the one included with the Scribunto plugin and the system-installed Lua path, but both return the same error 127. I have correctly set the permissions, and both Lua versions work fine. What should I do now?
Topic on Extension talk:Scribunto
I am having the same problem.
- I am on a Linux server.
- PHP's proc_open function is not restricted as far as I can tell.
- proc_terminate and shell_exec are not disabled in PHP as far as I can tell.
- I don't know how to tell if my web server is configured to allow the execution of binary files in the MediaWiki tree.
/Scribunto/includes/Engines/LuaStandalone/binaries/lua5_1_5_linux_64_generic/lua is set to 755.
With this, I get 'Lua error: Internal error: The interpreter has terminated with signal "11".'
If I add '$wgScribuntoDefaultEngine = 'luastandalone';' to LocalSettings.php, I get 'Lua error: Internal error: The interpreter has terminated with signal "11".'
If use instead'$wgScribuntoEngineConf['luastandalone']['luaPath'] = '/usr/bin/lua';' I get 'Lua error: Internal error: The interpreter exited with status 127.'
My hosting provider says that that is the correct path, but the Lua version they install is 5.3, so probably not an approach that will work for me.
It seems that I need to actually figure out how to use the Lua installed with Scribunto, but I don't know what the issue is.