Why can't apache access files in /tmp?

Chris Green cl at isbd.net
Tue Oct 30 14:48:56 UTC 2018


On Tue, Oct 30, 2018 at 01:39:13PM +0000, Colin Law wrote:
>    On Tue, 30 Oct 2018 at 13:33, Chris Green <[1]cl at isbd.net> wrote:
> 
>      I want to put some temporary html files in /tmp (well, a
>      sub-directory
>      of /tmp) and view them using apache2.  I always get permission
>      denied
>      and it seems as if apache2 refuses to access any files in /tmp.
> 
>    Could possibly be that the apache systemd script specifies privateTmp

Yes, I think that's it (or at least it's something to do with
systemd).  Whatever, it's a real nuisance.

Where can I put files that apache can 'see' and which will get cleared
out at intervals?

-- 
Chris Green




More information about the ubuntu-users mailing list