Topic on Extension talk:Scribunto

Error when switching to Luasandbox: Scribunto_LuaInterpreterNotFoundError

1
Lumenalbum (talkcontribs)

I installed a new Instance of MediaWiki 1.39 on a Debian 11 server with PHP 8.2.2. I installed the Scribunto extension (and its dependencies) with Luastandalone binaries at first and it worked. A script that we would like to use seems to meant for Luasandbox, though, so I wanted to switch to Luasandbox.

I followed the instructions from Extension:Scribunto and LuaSandbox. Because the prepackaged installation with "sudo apt-get install php-luasandbox" only seems to be able to get packages for php7.4 I used the manual installation.

Following the installation php -ini lists:

luasandbox

luasandbox support => enabled

and php -m contains:

luasandbox

In the LocalSettings.php I removed the other Scribunto entries and added

$wgScribuntoDefaultEngine = 'luasandbox';

instead.

The Special:Version page continued to list Scribunto as an active extension but when a script is invoked, it failes with an Internal Error:

Fatal exception of type "Scribunto_LuaInterpreterNotFoundError"

Does anybody know why this happens or have any pointers on how to diagnose the issue further? How can I make sure Scribunto looks in the right place? (i.e. the location where I downloaded and compiled the luasandbox files as described in the installation instructions) Are there any additional log files I could check?

Reply to "Error when switching to Luasandbox: Scribunto_LuaInterpreterNotFoundError"