ispCP - Board - Support
File Upload does not write in /tmp - Printable Version

+- ispCP - Board - Support (http://www.isp-control.net/forum)
+-- Forum: ispCP Omega Development Area (/forum-1.html)
+--- Forum: Suggestions (/forum-2.html)
+--- Thread: File Upload does not write in /tmp (/thread-9597.html)



File Upload does not write in /tmp - FUSiON - 02-12-2010 10:50 PM

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


RE: File Upload does not write in /tmp - rbtux - 02-12-2010 10:53 PM

the chunk files are not uploaded in the memory but in the users tmp dir.

check upload_tmp_dir in users php.ini...


RE: File Upload does not write in /tmp - FUSiON - 02-12-2010 10:58 PM

(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


RE: File Upload does not write in /tmp - kilburn - 02-13-2010 01:01 AM

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....


RE: File Upload does not write in /tmp - FUSiON - 02-13-2010 01:17 AM

(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.