#42867 [Opn->Fbk]: open_basedir restriction in effect. File(/tmp) is not within the allowed path
| From: | jani@php.net | Date: | Fri, 05 Oct 2007 23:55:49 +0000 |
| Subject: | #42867 [Opn->Fbk]: open_basedir restriction in effect. File(/tmp) is not within the allowed path | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-118235@lists.php.net to get a copy of this message | ||
ID: 42867
Updated by: jani@php.net
Reported By: hosting at edv-doelker dot de
-Status: Open
+Status: Feedback
Bug Type: FTP related
Operating System: Debian ETCH
PHP Version: 5.2.4
New Comment:
Please try using this CVS snapshot:
http://snaps.php.net/php5.2-latest.tar.gz
For Windows (zip):
http://snaps.php.net/win32/php5.2-win32-latest.zip
For Windows (installer):
http://snaps.php.net/win32/php5.2-win32-installer-latest.msi
Previous Comments:
------------------------------------------------------------------------
[2007-10-05 12:35:26] hosting at edv-doelker dot de
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 this bug report at http://bugs.php.net/?id=42867&edit=1