Why can't apache access files in /tmp?
Chris Green
cl at isbd.net
Tue Oct 30 17:52:36 UTC 2018
On Tue, Oct 30, 2018 at 03:42:53PM +0000, Colin Watson wrote:
> > Otherwise put the files somewhere else and have a cron script that cleans
> > it occasionally.
>
> ... this would be my recommendation, rather than changing PrivateTmp.
> In fact, you could just create /etc/tmpfiles.d/apache2-tmp.conf with
> contents something like this:
>
> D /some/path/to/apache2/tmp 1777 root root 30d
>
> ... and then the systemd-tmpfiles(8) machinery will take care of it.
> See tmpfiles.d(5) for the format of such files.
>
Yes, I agree, I think one of these approaches makes more sense.
--
Chris Green
More information about the ubuntu-users
mailing list