Topic on Project:Support desk

Lua error: Cannot create process: proc_open(/dev/null): failed to open stream: Operation not permitted

7
37.128.215.197 (talkcontribs)

MediaWiki 1.22.2 PHP 5.4.24 (litespeed) MySQL 5.5.32-cll-lve Lua 5.1.5

I'm trying to get Infoboxes to work on my website, but keep getting the above mentioned error message in all my templates. I have given public_html/wiki/extensions/Scribunto/engines/LuaStandalone/binaries/lua5_1_5_linux_64_generic/lua a 755 permission, added:

require_once __DIR__ . "/extensions/Scribunto/Scribunto.php"; $wgScribuntoDefaultEngine = 'luastandalone';

to my local_settings.php file but nothing works. Any ideas what might be the problem?

Bawolff (talkcontribs)

Does the user apache is running as have rights to open /dev/null ?

Ausrpdesigns (talkcontribs)

Hi Bawolff.

Do we set the access in http.conf or 'chown' the 'null' file?

Your help would be appreciated!

Bawolff (talkcontribs)

Usually /dev/null is read-writable by everyone. That is how it should be. Check what the permissions on that file are

Could perhaps be other things, if for example php/lua is restricted from accessing files outside its working directory or something like that.

Ausrpdesigns (talkcontribs)

Permissions look fine for /dev/null - crw-rw-rw.

This is strange as I was previously receiving the script error - 'attempt to index field 'text' (a nil value)', now I'm receiving this '/dev/null' error. You can see my previous thread here

When I try to enable my lua error file - 'Lua error: Cannot create process: proc_open(/mysite/tmp/lua-error.log): failed to open stream: Permission denied'. I tested with 777 permissions on the /tmp/ dir but no luck.

I'm not sure what changed permission wise but I read somewhere it could be my /image/ folder? not sure how its related tho.

Thanks

213.57.141.105 (talkcontribs)

Hi did U find an issue to LUA Error : Impossible de créer le processus : proc_open(/dev/null): failed to open stream: Operation not permitted

Bawolff (talkcontribs)

check also php open_basedir, SELinux settings, and any other sandboxing your host might have set up

Reply to "Lua error: Cannot create process: proc_open(/dev/null): failed to open stream: Operation not permitted"