Thread:Extension talk:Scribunto/Lua scribunto error on many pages (status 127)/reply (5)

That's almost certainly not going to help. Try installing Lua 5.1 via your package manager, and then point $wgScribuntoEngineConf['luastandalone']['luaPath'] to the path that it installed to.