Current time: 04-18-2024, 11:06 AM Hello There, Guest! (LoginRegister)


Post Reply 
File Upload does not write in /tmp
Author Message
FUSiON Offline
Newbie
*

Posts: 8
Joined: Feb 2010
Reputation: 0
Post: #1
File Upload does not write in /tmp
Hi Folks,

i have a problem with one of my applications since i installed ispcp.
The application is a file upload tool, which display the upload progress.

To get the PECL modul "uploadprogress" to work, it needs that the Apache2 store the uploaded data in the time of the upload to the temp folder (here /tmp) to read the actual progress of the file upload.

This works fine with a standard Apache2 / PHP 5 installation without ispCP. If i upload a file, the data will stored by chunks in the /tmp folder and the PECL modul can access this temp file.

Since i installed ispCP .. the upload store the chunk files in the memory instead of the /tmp folder. In this case, the PECL modul can't read the size of temp file.

So my question is: How can i configure ispcp, that file uploads will store per file chunks in /tmp during file upload.

Greetz

FUSiON
(This post was last modified: 02-12-2010 10:55 PM by FUSiON.)
02-12-2010 10:50 PM
Find all posts by this user Quote this message in a reply
rbtux Offline
Moderator
*****
Moderators

Posts: 1,847
Joined: Feb 2007
Reputation: 33
Post: #2
RE: File Upload does not write in /tmp
the chunk files are not uploaded in the memory but in the users tmp dir.

check upload_tmp_dir in users php.ini...
02-12-2010 10:53 PM
Visit this user's website Find all posts by this user Quote this message in a reply
FUSiON Offline
Newbie
*

Posts: 8
Joined: Feb 2010
Reputation: 0
Post: #3
RE: File Upload does not write in /tmp
(02-12-2010 10:53 PM)rbtux Wrote:  the chunk files are not uploaded in the memory but in the users tmp dir.

check upload_tmp_dir in users php.ini...

if already checked this

i tested it with a 500 MB file and an "du -h" over the complete file system. No folder is growing during the upload, but the memory is growing.

greetz FUSiON

PS: i can send you the php info per pm if you need this.
PS2: which is the whole path of the "users tmp dir" beginning from root
(This post was last modified: 02-12-2010 11:43 PM by FUSiON.)
02-12-2010 10:58 PM
Find all posts by this user Quote this message in a reply
kilburn Offline
Development Team
*****
Dev Team

Posts: 2,182
Joined: Feb 2007
Reputation: 34
Post: #4
RE: File Upload does not write in /tmp
Read this thread from the mod-fcgid mailing list, that may give you some insight into how uploads are handled. Obviously, this will also depend on your mod_fcgid's version....
02-13-2010 01:01 AM
Visit this user's website Find all posts by this user Quote this message in a reply
FUSiON Offline
Newbie
*

Posts: 8
Joined: Feb 2010
Reputation: 0
Post: #5
RE: File Upload does not write in /tmp
(02-13-2010 01:01 AM)kilburn Wrote:  Read this thread from the mod-fcgid mailing list, that may give you some insight into how uploads are handled. Obviously, this will also depend on your mod_fcgid's version....

ive read this thread but the only info i found is, that this problem is "fixed" since 2007.

the debian resp give the following fcgid version:

Richte libapache2-mod-fcgid ein (1:2.2-1) ...
Enabling module fcgid.


This is the modul i've actually installed. The problem is still exist.

How can i switch from fcgid to fastcgi for ispcp? This should resolve the problem.
(This post was last modified: 02-13-2010 01:48 AM by FUSiON.)
02-13-2010 01:17 AM
Find all posts by this user Quote this message in a reply
Post Reply 


Forum Jump:


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