Could not generate a temporary file - Printable Version +- ispCP - Board - Support (http://www.isp-control.net/forum) +-- Forum: ispCP Omega Support Area (/forum-30.html) +--- Forum: System Setup & Installation (/forum-32.html) +--- Thread: Could not generate a temporary file (/thread-265.html) |
RE: Could not generate a temporary file - Cube - 01-27-2008 11:02 PM I also have this problem: Quote:Warning: ftp_rawlist() [function.ftp-rawlist]: open_basedir restriction in effect. File(/tmp) is not within the allowed path(s): (/var/www/ispcp/gui/:/etc/ispcp/:/var/run/ispcp.lock:/proc/:/bin/df:/bin/mount:/var/log/rkhunter.log:/var/log/chkrootkit.log:/usr/share/php/) in /var/www/ispcp/gui/tools/filemanager/includes/browse.inc.php on line 123When I add /tmp to php.ini it works again. But the reason for this error has to be somewhere else, because normally /tmp isn't in php.ini and it works (e.g. in BeNe's demo). I use Debian Etch and the latest trunk. Any ideas? RE: Could not generate a temporary file - raphael - 01-28-2008 02:02 AM that's a known problem in php5 which is solved by setting the right TMPDIR environment var. AFAIR I applied a fix for it some time ago but I guess in the last update by rats he probably overwritten it. RE: Could not generate a temporary file - Cube - 01-28-2008 02:47 AM In main.inc.php i found this line: Code: // putenv("TMPDIR=" . $net2ftp_globals["application_tempdir"]); RE: Could not generate a temporary file - raphael - 01-29-2008 01:48 AM I was about to commit a simple patch management system some time ago so we keep the ispCP specific changes in .diff's rather than merging all. But then some changes were made on the files and I haven't had time to diffy them with the original ones. RE: Could not generate a temporary file - joximu - 01-29-2008 02:18 AM The change with TMPDIR (see 2 comments above) was already included by raphael in July 2007 - but with the updates in November all was thrown away... http://www.isp-control.net/ispcp/changeset/696/trunk/gui/tools/filemanager So, this putenv command should be enabled... as it seems... /J |