From:             hosting at edv-doelker dot de
Operating system: Debian ETCH
PHP version:      5.2.4
PHP Bug Type:     FTP related
Bug description:  open_basedir restriction in effect. File(/tmp) is not within 
the allowed path

Description:
------------
Hi,

i've the problem by using FTP commands (ftp_nlist, ftp_rawlist).
This problem came after a Sever upgrade from Debian Sarge to Etch ans
upgrading PHP4 to 5 incl. all securityupdates.

###### SNAP #######
Warning: ftp_nlist() [function.ftp-nlist]: open_basedir restriction in
effect. File(/tmp) is not within the allowed path(s):
(/var/www/web63/html/:/var/www/web63/phptmp/:/var/www/web63/files/:/var/www/web63/atd/)
in /var/www/web63/html/admin/module/ftp_liste.php on line 9
###################

I hope you could help me.

thanks for checking
Tobias Frank



Reproduce code:
---------------
<?
@include ("db_connect.php");

// Herstellen der Basis-Verbindung
$conn_id = ftp_connect("$FTP_host");
// Einloggen mit Benutzername und Kennwort
$login_result = ftp_login($conn_id, "$FTP_user", "$FTP_pass");
// Upload der Datei
$list = ftp_nlist($conn_id, "$verzeichniss");
// Schließen des FTP-Streams
ftp_quit($conn_id);
?>

Expected result:
----------------
Warning: ftp_nlist() [function.ftp-nlist]: open_basedir restriction in
effect. File(/tmp) is not within the allowed path(s):
(/var/www/web63/html/:/var/www/web63/phptmp/:/var/www/web63/files/:/var/www/web63/atd/)
in /var/www/web63/html/admin/module/ftp_liste.php on line 9



-- 
Edit bug report at http://bugs.php.net/?id=42867&edit=1
-- 
Try a CVS snapshot (PHP 4.4): 
http://bugs.php.net/fix.php?id=42867&r=trysnapshot44
Try a CVS snapshot (PHP 5.2): 
http://bugs.php.net/fix.php?id=42867&r=trysnapshot52
Try a CVS snapshot (PHP 6.0): 
http://bugs.php.net/fix.php?id=42867&r=trysnapshot60
Fixed in CVS:                 http://bugs.php.net/fix.php?id=42867&r=fixedcvs
Fixed in release:             
http://bugs.php.net/fix.php?id=42867&r=alreadyfixed
Need backtrace:               http://bugs.php.net/fix.php?id=42867&r=needtrace
Need Reproduce Script:        http://bugs.php.net/fix.php?id=42867&r=needscript
Try newer version:            http://bugs.php.net/fix.php?id=42867&r=oldversion
Not developer issue:          http://bugs.php.net/fix.php?id=42867&r=support
Expected behavior:            http://bugs.php.net/fix.php?id=42867&r=notwrong
Not enough info:              
http://bugs.php.net/fix.php?id=42867&r=notenoughinfo
Submitted twice:              
http://bugs.php.net/fix.php?id=42867&r=submittedtwice
register_globals:             http://bugs.php.net/fix.php?id=42867&r=globals
PHP 3 support discontinued:   http://bugs.php.net/fix.php?id=42867&r=php3
Daylight Savings:             http://bugs.php.net/fix.php?id=42867&r=dst
IIS Stability:                http://bugs.php.net/fix.php?id=42867&r=isapi
Install GNU Sed:              http://bugs.php.net/fix.php?id=42867&r=gnused
Floating point limitations:   http://bugs.php.net/fix.php?id=42867&r=float
No Zend Extensions:           http://bugs.php.net/fix.php?id=42867&r=nozend
MySQL Configuration Error:    http://bugs.php.net/fix.php?id=42867&r=mysqlcfg

Reply via email to