From:             
Operating system: Debian
PHP version:      5.3.6
Package:          FPM related
Bug Type:         Bug
Bug description:Apache : TRANSLATED_PATH doesn't consider chroot

Description:
------------
I use Apache and mod_fastcgi and I use PHP-FPM via a socket. I try to use
the chroot directive.

When I don't use the chroot directive, the setup works fine. But when I use
the chroot directive, I've an Apache error : File does not exist:
/index.php

My vhost config : http://pastebin.com/fmCJQUsS
My pool config : http://pastebin.com/9NqEjEft

I think it's due to the fact that TRANSLATED_PATH doesn't consider the
chroot.

We could add a directive "chroot_translated_path", which, when activated,
would truncate the PATH_TRANSLATED.

Actual result:
--------------
Apache log :
[error] File does not exist: /index.php


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

Reply via email to