Bug #67415 [NEW]: PHP-FPM chroot not working in 64 bit

From: Date: Tue, 10 Jun 2014 13:41:02 +0000
Subject: Bug #67415 [NEW]: PHP-FPM chroot not working in 64 bit
Groups: php.bugs 
Request: Send a blank email to php-bugs+get-186134@lists.php.net to get a copy of this message
From:             lars at dcmediahosting dot com
Operating system: Debian 7.5 64 bit
PHP version:      5.4.29
Package:          FPM related
Bug Type:         Bug
Bug description:PHP-FPM chroot not working in 64 bit

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 bug report at https://bugs.php.net/bug.php?id=67415&edit=1
-- 
Try a snapshot (PHP 5.4):   https://bugs.php.net/fix.php?id=67415&r=trysnapshot54
Try a snapshot (PHP 5.5):   https://bugs.php.net/fix.php?id=67415&r=trysnapshot55
Try a snapshot (trunk):     https://bugs.php.net/fix.php?id=67415&r=trysnapshottrunk
Fixed in SVN:               https://bugs.php.net/fix.php?id=67415&r=fixed
Fixed in release:           https://bugs.php.net/fix.php?id=67415&r=alreadyfixed
Need backtrace:             https://bugs.php.net/fix.php?id=67415&r=needtrace
Need Reproduce Script:      https://bugs.php.net/fix.php?id=67415&r=needscript
Try newer version:          https://bugs.php.net/fix.php?id=67415&r=oldversion
Not developer issue:        https://bugs.php.net/fix.php?id=67415&r=support
Expected behavior:          https://bugs.php.net/fix.php?id=67415&r=notwrong
Not enough info:            https://bugs.php.net/fix.php?id=67415&r=notenoughinfo
Submitted twice:            https://bugs.php.net/fix.php?id=67415&r=submittedtwice
register_globals:           https://bugs.php.net/fix.php?id=67415&r=globals
PHP 4 support discontinued: https://bugs.php.net/fix.php?id=67415&r=php4
Daylight Savings:           https://bugs.php.net/fix.php?id=67415&r=dst
IIS Stability:              https://bugs.php.net/fix.php?id=67415&r=isapi
Install GNU Sed:            https://bugs.php.net/fix.php?id=67415&r=gnused
Floating point limitations: https://bugs.php.net/fix.php?id=67415&r=float
No Zend Extensions:         https://bugs.php.net/fix.php?id=67415&r=nozend
MySQL Configuration Error:  https://bugs.php.net/fix.php?id=67415&r=mysqlcfg



Thread (6 messages)

« previous php.bugs (#186134) next »