Why can't apache access files in /tmp?
Colin Law
clanlaw at gmail.com
Tue Oct 30 15:56:26 UTC 2018
On Tue, 30 Oct 2018 at 15:44, Colin Watson <cjwatson at ubuntu.com> wrote:
> On Tue, Oct 30, 2018 at 03:00:25PM +0000, Colin Law wrote:
> > It should be easy enough to change the systemd startup script, it will
> > likely be in /etc/systemd/system. Make a copy of it with a different
> name
> > and edit that, then disable the usual one and enable yours.
>
> Don't do that; it makes it hard to stay in sync with other changes to
> the packaged service file. Instead, if you're going to take this
> approach, make a directory called /etc/systemd/system/apache.service.d,
> and create a file in that directory ending in ".conf" (e.g.
> no-private-tmp.conf), with contents:
>
> [Service]
> PrivateTmp=false
>
I didn't know about that, that is great to know, thanks.
I agree, though, this isn't the best way to solve the problem.
Colin
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.ubuntu.com/archives/ubuntu-users/attachments/20181030/2a0f3543/attachment.html>
More information about the ubuntu-users
mailing list