Just to close the loop on this.  I had to get the admin at the webhost
to recompile the luasandbox code using a newer toolchain.  They
created a VM with a newer toolchain but the same version of PHP and
rebuit luasandbox.  Here's the steps:

# phpize
Configuring for:
PHP Api Version:         20100412
Zend Module Api No:      20100525
Zend Extension Api No:   220100525

# php -na
Interactive shell

php > dl('luasandbox.so');
php > $extensions = get_loaded_extensions();
php > var_dump($extensions[29]);
string(10) "luasandbox"

The VM was running CentOS release 6.5 (Final)

# php --version
PHP 5.4.28 (cli) (built: May  2 2014 12:58:36)

# gcc --version
gcc (GCC) 4.4.7 20120313 (Red Hat 4.4.7-4)

When I then added the luasandbox line to LocalSettings.php, the Lua
modules started working.


On Sun, May 11, 2014 at 9:03 PM, Tim Starling <tstarl...@wikimedia.org> wrote:
> On 12/05/14 09:26, Bill Traynor wrote:
>>>> On Fri, May 9, 2014 at 6:05 PM, Bill Traynor <btray...@gmail.com> wrote:
>>>>> I'm trying to get Scribunto working and keep receiving this error when
>>>>> trying to use Modules:
>>>>>
>>>>> Script error: Lua error: Cannot create process: proc_open(/dev/null):
>>>>> failed to open stream: Operation not permitted.
>>>>>
>>>>> Does this mean that proc_open is restricted on my server?
>>>
>>> No, it means /dev/null is not writable (or possibly not readable).
>>
>> Looks right to me:
>>
>> ls -l /dev/null
>> crw-rw-rw- 1 root root 1, 3 Mar  4 01:12 /dev/null
>
> You could confirm it in strace, it will show you the exact open() call
> that failed. RHEL normally has SELinux enabled, doesn't it?
>
> -- Tim Starling
>
>
> _______________________________________________
> MediaWiki-l mailing list
> MediaWiki-l@lists.wikimedia.org
> https://lists.wikimedia.org/mailman/listinfo/mediawiki-l

_______________________________________________
MediaWiki-l mailing list
MediaWiki-l@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/mediawiki-l

Reply via email to