Thread:Extension talk:Scribunto/2 Lua Errors/reply

You could try increasing $wgMaxShellMemory