<div dir="ltr"><div class="gmail_quote"><div dir="ltr">On Tue, 30 Oct 2018 at 14:51, Chris Green <<a href="mailto:cl@isbd.net">cl@isbd.net</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">On Tue, Oct 30, 2018 at 01:39:13PM +0000, Colin Law wrote:<br>
>    On Tue, 30 Oct 2018 at 13:33, Chris Green <[1]<a href="mailto:cl@isbd.net" target="_blank">cl@isbd.net</a>> wrote:<br>
> <br>
>      I want to put some temporary html files in /tmp (well, a<br>
>      sub-directory<br>
>      of /tmp) and view them using apache2.  I always get permission<br>
>      denied<br>
>      and it seems as if apache2 refuses to access any files in /tmp.<br>
> <br>
>    Could possibly be that the apache systemd script specifies privateTmp<br>
<br>
Yes, I think that's it (or at least it's something to do with<br>
systemd).  Whatever, it's a real nuisance. </blockquote><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<br>
Where can I put files that apache can 'see' and which will get cleared<br>
out at intervals?<br></blockquote><div><br></div><div>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.  If you don't make a copy then it will get overwritten when you update. <br></div><div>I did see mention that there could be security risks with that though, so you might like to check on that.</div><div><br></div><div>Otherwise put the files somewhere else and have a cron script that cleans it occasionally.<br></div><div><br></div><div>Colin<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<br>
-- <br>
Chris Green<br>
<br>
-- <br>
ubuntu-users mailing list<br>
<a href="mailto:ubuntu-users@lists.ubuntu.com" target="_blank">ubuntu-users@lists.ubuntu.com</a><br>
Modify settings or unsubscribe at: <a href="https://lists.ubuntu.com/mailman/listinfo/ubuntu-users" rel="noreferrer" target="_blank">https://lists.ubuntu.com/mailman/listinfo/ubuntu-users</a><br>
</blockquote></div></div>