You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@httpd.apache.org by Paolo Giammarco <pa...@gmail.com> on 2016/05/23 13:28:29 UTC

[users@httpd] Change TMP dir

Hello to all.
Should I change the default temporary directory (/tmp) using apache but I
can not.
I tried to edit the file /etc/apache2/envvars adding:

export TMPDIR=/newtmp
export TMP=/newtmp

but no, I modified /etc/init.d/apache2

adding:

ENV = "$ENV TMPDIR=/newtmp TMP=/newtmp"

still nothing.
You can help me?


Thank you


*Rispetta l'ambiente. Non stampare questa mail se non è necessario.*

Re: [users@httpd] Change TMP dir

Posted by Marat Khalili <mk...@rqc.ru>.
> One other thought.  If the proxy's backend supports HTTP/1.1
> then there's no reason to spool any tempfile in the first place.
> Check out proxy-sendchunked vs proxy-sendcl in the docs.
I'd also check if it's Apache creating temporary files and not user 
agent. E.g. Windows WebClient may do it.

--

With Best Regards,
Marat Khalili


Re: [users@httpd] Change TMP dir

Posted by Nick Kew <ni...@webthing.com>.
On Tue, 2016-05-24 at 05:45 +0200, Paolo Giammarco wrote:
> I configured apache as a reverse proxy, and when I do an upload it
> writes in the /tmp directory but is too small.

One other thought.  If the proxy's backend supports HTTP/1.1
then there's no reason to spool any tempfile in the first place.
Check out proxy-sendchunked vs proxy-sendcl in the docs.

-- 
Nick Kew



---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org


Re: [users@httpd] Change TMP dir

Posted by Paolo Giammarco <pa...@gmail.com>.
Ops

I tried so also:

sudo TMP=/newtmp apachectl start

apache start but always writes in /tmp




*Rispetta l'ambiente. Non stampare questa mail se non è necessario.*

2016-05-24 10:56 GMT+02:00 Paolo Giammarco <pa...@gmail.com>:

> Thanks for the reply.
>
> I do not have the LD_LIBRARY_PATH in envvars files but I commented out
> APACHE_RUN_USER and APACHE_RUN_GROUP, and Apache did not start.
>
> Then the file is the right one
>
>
>
>
> *Rispetta l'ambiente. Non stampare questa mail se non è necessario.*
>
> 2016-05-24 10:18 GMT+02:00 Nick Kew <ni...@webthing.com>:
>
>> On Tue, 2016-05-24 at 05:45 +0200, Paolo Giammarco wrote:
>> > I configured apache as a reverse proxy, and when I do an upload it
>> > writes in the /tmp directory but is too small.
>>
>> OK, what you originally tried with envvars should work.
>> Either your syntax is at odds with the shell, or you've
>> edited the wrong file.  Anything in /etc/ comes from
>> your distro package or a customised install, so
>> you'd have to check elsewhere for whether it's right.
>>
>> If you try to break it completely using envvars
>> (like, break LD_LIBRARY_PATH), what happens?
>>
>> --
>> Nick Kew
>>
>>
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
>> For additional commands, e-mail: users-help@httpd.apache.org
>>
>>
>

Re: [users@httpd] Change TMP dir

Posted by Paolo Giammarco <pa...@gmail.com>.
I tried so also:

sudo TMP=/newtmp apachectl

apache start but always writes in /tmp



*Rispetta l'ambiente. Non stampare questa mail se non è necessario.*

2016-05-24 10:56 GMT+02:00 Paolo Giammarco <pa...@gmail.com>:

> Thanks for the reply.
>
> I do not have the LD_LIBRARY_PATH in envvars files but I commented out
> APACHE_RUN_USER and APACHE_RUN_GROUP, and Apache did not start.
>
> Then the file is the right one
>
>
>
>
> *Rispetta l'ambiente. Non stampare questa mail se non è necessario.*
>
> 2016-05-24 10:18 GMT+02:00 Nick Kew <ni...@webthing.com>:
>
>> On Tue, 2016-05-24 at 05:45 +0200, Paolo Giammarco wrote:
>> > I configured apache as a reverse proxy, and when I do an upload it
>> > writes in the /tmp directory but is too small.
>>
>> OK, what you originally tried with envvars should work.
>> Either your syntax is at odds with the shell, or you've
>> edited the wrong file.  Anything in /etc/ comes from
>> your distro package or a customised install, so
>> you'd have to check elsewhere for whether it's right.
>>
>> If you try to break it completely using envvars
>> (like, break LD_LIBRARY_PATH), what happens?
>>
>> --
>> Nick Kew
>>
>>
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
>> For additional commands, e-mail: users-help@httpd.apache.org
>>
>>
>

Re: [users@httpd] Change TMP dir

Posted by Paolo Giammarco <pa...@gmail.com>.
Thanks for the reply.

I do not have the LD_LIBRARY_PATH in envvars files but I commented out
APACHE_RUN_USER and APACHE_RUN_GROUP, and Apache did not start.

Then the file is the right one




*Rispetta l'ambiente. Non stampare questa mail se non è necessario.*

2016-05-24 10:18 GMT+02:00 Nick Kew <ni...@webthing.com>:

> On Tue, 2016-05-24 at 05:45 +0200, Paolo Giammarco wrote:
> > I configured apache as a reverse proxy, and when I do an upload it
> > writes in the /tmp directory but is too small.
>
> OK, what you originally tried with envvars should work.
> Either your syntax is at odds with the shell, or you've
> edited the wrong file.  Anything in /etc/ comes from
> your distro package or a customised install, so
> you'd have to check elsewhere for whether it's right.
>
> If you try to break it completely using envvars
> (like, break LD_LIBRARY_PATH), what happens?
>
> --
> Nick Kew
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
> For additional commands, e-mail: users-help@httpd.apache.org
>
>

Re: [users@httpd] Change TMP dir

Posted by Nick Kew <ni...@webthing.com>.
On Tue, 2016-05-24 at 05:45 +0200, Paolo Giammarco wrote:
> I configured apache as a reverse proxy, and when I do an upload it
> writes in the /tmp directory but is too small.

OK, what you originally tried with envvars should work.
Either your syntax is at odds with the shell, or you've
edited the wrong file.  Anything in /etc/ comes from
your distro package or a customised install, so
you'd have to check elsewhere for whether it's right.

If you try to break it completely using envvars
(like, break LD_LIBRARY_PATH), what happens?

-- 
Nick Kew



---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org


Re: [users@httpd] Change TMP dir

Posted by Paolo Giammarco <pa...@gmail.com>.
I configured apache as a reverse proxy, and when I do an upload it writes
in the /tmp directory but is too small.



*Rispetta l'ambiente. Non stampare questa mail se non è necessario.*

2016-05-23 22:29 GMT+02:00 Nick Kew <ni...@webthing.com>:

> On Mon, 23 May 2016 15:28:29 +0200
> Paolo Giammarco <pa...@gmail.com> wrote:
>
> > Hello to all.
> > Should I change the default temporary directory (/tmp) using apache
> > but I can not.
>
> In what context is /tmp being used?
>
> If it's something like CGI, they don't get the
> server's environment, as that could be a big
> security issue.  The per-request environment
> serves as an alternative in such cases.
>
> --
> Nick Kew
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
> For additional commands, e-mail: users-help@httpd.apache.org
>
>

Re: [users@httpd] Change TMP dir

Posted by Nick Kew <ni...@webthing.com>.
On Mon, 23 May 2016 15:28:29 +0200
Paolo Giammarco <pa...@gmail.com> wrote:

> Hello to all.
> Should I change the default temporary directory (/tmp) using apache
> but I can not.

In what context is /tmp being used?

If it's something like CGI, they don't get the
server's environment, as that could be a big
security issue.  The per-request environment
serves as an alternative in such cases.

-- 
Nick Kew

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org