Hi,

Recently my /tmp dir has been filled with tmp uploaded files which are never cleaned up.
I am using debian 6, apache2-2.2.16 with mod_fcgid and php5, using Virtualmin.

A file is received with HTTP POST and stored in /tmp/fcgid.tmp.*, with perm 0600, owner www-data . This means that apache (running under user www-data) is receiving the file, after which the file is moved to ~[site-user]/tmp, and processed further with suexec/fcgid/php5 (under user [site-user]).

I suspect that the /tmp file the process fcgid process running under [site-user] tries to delete the upload, but fails because /tmp has a sticky bit and may not delete it. Maybe the action fails because /tmp and ~[site-user]/tmp are on different partitions so it needs to copy/delete instead of renaming?

My question: Which process (httpd/fcgid/suexec/php5) is responsible for deleting the tmp file, and how might I fix this problem?

--

Kind regards,

Fester Zigterman Rustenburg
Software developer, Info-kanaal


Maximedia BV | Lintelerweg 40, 7556 PD | Postbus 182, 7550 AD | Hengelo (Ov)
www.maximedia.nl | f.zigter...@maximedia.nl | +31 (0)74 851 3800

Reply via email to