Return-Path: X-Original-To: apmail-httpd-users-archive@www.apache.org Delivered-To: apmail-httpd-users-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 8CC6810D7C for ; Thu, 12 Dec 2013 10:32:14 +0000 (UTC) Received: (qmail 92224 invoked by uid 500); 12 Dec 2013 10:32:10 -0000 Delivered-To: apmail-httpd-users-archive@httpd.apache.org Received: (qmail 91969 invoked by uid 500); 12 Dec 2013 10:32:07 -0000 Mailing-List: contact users-help@httpd.apache.org; run by ezmlm Precedence: bulk Reply-To: users@httpd.apache.org list-help: list-unsubscribe: List-Post: List-Id: Delivered-To: mailing list users@httpd.apache.org Received: (qmail 91956 invoked by uid 99); 12 Dec 2013 10:32:06 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 12 Dec 2013 10:32:06 +0000 X-ASF-Spam-Status: No, hits=1.0 required=5.0 tests=SPF_SOFTFAIL X-Spam-Check-By: apache.org Received-SPF: softfail (athena.apache.org: transitioning domain of fester@maximedia.nl does not designate 217.119.233.201 as permitted sender) Received: from [217.119.233.201] (HELO mail.maximedia.nl) (217.119.233.201) by apache.org (qpsmtpd/0.29) with SMTP; Thu, 12 Dec 2013 10:32:00 +0000 Received: from [192.168.0.113] ([217.119.224.35]) by mail.maximedia.nl ; Thu, 12 Dec 2013 11:31:38 +0100 Message-ID: <52A9908D.7070200@maximedia.nl> Date: Thu, 12 Dec 2013 11:31:41 +0100 From: Fester Zigterman Rustenburg User-Agent: Mozilla/5.0 (X11; Linux i686; rv:24.0) Gecko/20100101 Thunderbird/24.1.1 MIME-Version: 1.0 To: users@httpd.apache.org References: <52A84817.8000908@maximedia.nl> In-Reply-To: <52A84817.8000908@maximedia.nl> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org Subject: [users@httpd] Re: Apache fcgid suexec not deleting POSTed /tmp files Hi, Sorry for posting HTML before. Is any one here using mod_fcgid, who has any idea how POST files are handled ? It seems that Ubuntu 12.04 (based on debian 6) does not have my problem using Apache 2.2.22, and I ruled out the different partition situation, so it must be something else. I would really appreciate any help, because i am stuck. Kind Regards, Fester Zigterman Rustenburg Maximedia On 12/11/2013 12:10 PM, I wrote: > 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? > --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org For additional commands, e-mail: users-help@httpd.apache.org