You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@httpd.apache.org by startx <st...@plentyfact.org> on 2011/09/30 09:59:39 UTC

[users@httpd] setting mod_fcgid tmp directory?

hello.

i try to figure out if it is possible to tell mod_fcgid to use a 
temporary directory other then /tmp , i.e. at best to use a different
temp dir for each virtual host. ( i mean the file fcgid writes to
if the file is larger then max_mem_request_len)

it seems to me that mod_fcgid ignores "SetEnv TMP /where/ever" in
the virtual host. looking at the source code i could find no reference
to anything like getenv("TMP"), too.

is there a way to realise that?

note: this is mod_fcid version 2.3.6-1 on debian squeeze.

startx

---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
   "   from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org


Re: [users@httpd] setting mod_fcgid tmp directory?

Posted by Eric Covener <co...@gmail.com>.
On Tue, Oct 4, 2011 at 9:22 AM, startx <st...@plentyfact.org> wrote:
>> > On Fri, 30 Sep 2011 01:30:14 -0700
>> > Wade Evans  wrote:
>> >
>> >> what happens when you set "TEMP"?
>> >>
>> >> -w
>> >
>> > unfortunately that doesn't do anything either, still
>> > fcgid creates  /tmp/fcgid.XXXX
>>
>>
>> apr tries for a writable temp dir in this order -- sure you had the
>> native envvar set?
>>
>>     const char *try_envs[] = { "TMPDIR", "TMP", "TEMP"};
>>     const char *try_dirs[] = { "/tmp", "/usr/tmp", "/var/tmp" };
>
> sorry late reply.
>
> i am not sure what you mean by native envvar, as i try to
> set different tmp pathes for different vhosts, or maybe i
> misunderstand what you mean.
>
> i tried SetEnv with "TMPDIR" "TMP" and "TEMP" in the vhost
> and all of them seem to be ignored.
>

I don't think those will work, they need to be set as real environment
variables outside of httpd (e.g. bin/envvars file or exported before
calling apachectl)

---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
   "   from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org


Re: [users@httpd] setting mod_fcgid tmp directory?

Posted by startx <st...@plentyfact.org>.
> > On Fri, 30 Sep 2011 01:30:14 -0700
> > Wade Evans  wrote:
> >
> >> what happens when you set "TEMP"?
> >>
> >> -w
> >
> > unfortunately that doesn't do anything either, still
> > fcgid creates  /tmp/fcgid.XXXX
> 
> 
> apr tries for a writable temp dir in this order -- sure you had the
> native envvar set?
> 
>     const char *try_envs[] = { "TMPDIR", "TMP", "TEMP"};
>     const char *try_dirs[] = { "/tmp", "/usr/tmp", "/var/tmp" };

sorry late reply.

i am not sure what you mean by native envvar, as i try to 
set different tmp pathes for different vhosts, or maybe i 
misunderstand what you mean.

i tried SetEnv with "TMPDIR" "TMP" and "TEMP" in the vhost
and all of them seem to be ignored.

startx

---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
   "   from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org


Re: [users@httpd] setting mod_fcgid tmp directory?

Posted by Eric Covener <co...@gmail.com>.
On Fri, Sep 30, 2011 at 4:50 AM, startx <st...@plentyfact.org> wrote:
>> On Fri, Sep 30, 2011 at 12:59 AM, startx <st...@plentyfact.org>
>> wrote:
>>
>> > hello.
>> >
>> > i try to figure out if it is possible to tell mod_fcgid to use a
>> > temporary directory other then /tmp , i.e. at best to use a
>> > different temp dir for each virtual host. ( i mean the file fcgid
>> > writes to if the file is larger then max_mem_request_len)
>
> On Fri, 30 Sep 2011 01:30:14 -0700
> Wade Evans  wrote:
>
>> what happens when you set "TEMP"?
>>
>> -w
>
> unfortunately that doesn't do anything either, still
> fcgid creates  /tmp/fcgid.XXXX


apr tries for a writable temp dir in this order -- sure you had the
native envvar set?

    const char *try_envs[] = { "TMPDIR", "TMP", "TEMP"};
    const char *try_dirs[] = { "/tmp", "/usr/tmp", "/var/tmp" };

---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
   "   from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org


Re: [users@httpd] setting mod_fcgid tmp directory?

Posted by startx <st...@plentyfact.org>.
> On Fri, Sep 30, 2011 at 12:59 AM, startx <st...@plentyfact.org>
> wrote:
> 
> > hello.
> >
> > i try to figure out if it is possible to tell mod_fcgid to use a
> > temporary directory other then /tmp , i.e. at best to use a
> > different temp dir for each virtual host. ( i mean the file fcgid
> > writes to if the file is larger then max_mem_request_len)

On Fri, 30 Sep 2011 01:30:14 -0700
Wade Evans  wrote:

> what happens when you set "TEMP"?
> 
> -w

unfortunately that doesn't do anything either, still
fcgid creates  /tmp/fcgid.XXXX

startx

---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
   "   from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org