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
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If you forgot your password, you can retrieve your password here.
Password:
Status:
Package:
Bug Type:
Summary:
From: hosting at edv-doelker dot de
New email:
PHP Version: OS:

 

 [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

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: Sat Sep 07 23:01:27 2024 UTC