Bug #67415 [Opn->Fbk]: PHP-FPM chroot not working in 64 bit
| From: | aharvey@php.net | Date: | Tue, 10 Jun 2014 17:42:39 +0000 |
| Subject: | Bug #67415 [Opn->Fbk]: PHP-FPM chroot not working in 64 bit | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-186139@lists.php.net to get a copy of this message | ||
Edit report at https://bugs.php.net/bug.php?id=67415&edit=1
ID: 67415
Updated by: aharvey@php.net
Reported by: lars at dcmediahosting dot com
Summary: PHP-FPM chroot not working in 64 bit
-Status: Open
+Status: Feedback
Type: Bug
Package: FPM related
Operating System: Debian 7.5 64 bit
PHP Version: 5.4.29
Block user comment: N
Private report: N
New Comment:
Are you sure that your 64 bit chroot is configured properly? Can you run a shell within the chroot
and execute ls? (Indeed, is there a shell in your chroot â exec() calls popen() internally, and
that will return 127 if the shell can't be executed.)
Previous Comments:
------------------------------------------------------------------------
[2014-06-10 13:41:01] lars at dcmediahosting dot com
Description:
------------
We're using PHP-FPM with chroot and execute external binaries like graphicsmagick etc. within
chroot, but we're not able to execute binaries or any other command on 64 bit platform. Trying
to execute anything on 64 bit gives an exit code 127.
However it's working on 32 bit. So as a temporary solution we're using PHP-FPM on 32 bit
with same configuration settings as 64 bit.
Additional information:
nginx 1.4.x is configured with PHP-FPM via TCP on an external PHP-FPM server.
Test script:
---------------
exec('ls -la', $c, $o);
var_dump($c);
var_dump($o);
Expected result:
----------------
64 bit platform outputs:
array(0) { } int(127)
32 bit platform outputs a list of files and folders as it should.
------------------------------------------------------------------------
--
Edit this bug report at https://bugs.php.net/bug.php?id=67415&edit=1