php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #42867 open_basedir restriction in effect. File(/tmp) is not within the allowed path
Submitted: 2007-10-05 12:35 UTC Modified: 2007-10-13 01:00 UTC
Votes:4
Avg. Score:4.5 ± 0.9
Reproduced:4 of 4 (100.0%)
Same Version:1 (25.0%)
Same OS:1 (25.0%)
From: hosting at edv-doelker dot de Assigned:
Status: No Feedback Package: FTP related
PHP Version: 5.2.4 OS: Debian ETCH
Private report: No CVE-ID: None
View Add Comment Developer Edit
Anyone can comment on a bug. Have a simpler test case? Does it work for you on a different platform? Let us know!
Just going to say 'Me too!'? Don't clutter the database with that please — but make sure to vote on the bug!
Your email address:
MUST BE VALID
Solve the problem:
23 + 24 = ?
Subscribe to this entry?

 
 [2007-10-05 12:35 UTC] 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



Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2007-10-13 01:00 UTC] php-bugs at lists dot php dot net
No feedback was provided for this bug for over a week, so it is
being suspended automatically. If you are able to provide the
information that was originally requested, please do so and change
the status of the bug back to "Open".
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Thu Mar 28 14:01:29 2024 UTC