Current time: 11-30-2024, 02:00 AM Hello There, Guest! (LoginRegister)


Post Reply 
Could not generate a temporary file
Author Message
Cube Offline
Member
***

Posts: 740
Joined: Apr 2007
Reputation: 9
Post: #1
RE: Could not generate a temporary file
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 123
[...]
When 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?
01-27-2008 11:02 PM
Find all posts by this user Quote this message in a reply
raphael Offline
Member
***

Posts: 474
Joined: Apr 2007
Reputation: 8
Post: #2
RE: Could not generate a temporary file
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.
01-28-2008 02:02 AM
Visit this user's website Find all posts by this user Quote this message in a reply
Cube Offline
Member
***

Posts: 740
Joined: Apr 2007
Reputation: 9
Post: #3
RE: Could not generate a temporary file
In main.inc.php i found this line:
Code:
//    putenv("TMPDIR=" . $net2ftp_globals["application_tempdir"]);
I enabled this line, did a Apache restart and now it works. So perhaps this should be added to trunk.
01-28-2008 02:47 AM
Find all posts by this user Quote this message in a reply
raphael Offline
Member
***

Posts: 474
Joined: Apr 2007
Reputation: 8
Post: #4
RE: Could not generate a temporary file
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.
01-29-2008 01:48 AM
Visit this user's website Find all posts by this user Quote this message in a reply
joximu Offline
helper
*****
Moderators

Posts: 7,024
Joined: Jan 2007
Reputation: 92
Post: #5
RE: Could not generate a temporary file
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/changes...ilemanager

So, this putenv command should be enabled... as it seems...

/J
01-29-2008 02:18 AM
Visit this user's website Find all posts by this user Quote this message in a reply
Post Reply 


Forum Jump:


User(s) browsing this thread: 2 Guest(s)