[GTALUG] File Permission Nusance

Alvin Starr alvin at netvel.net
Mon Apr 4 18:08:01 UTC 2016


logrotate is your friend.

A well configured logrotate will get around most of those problems.

On 04/04/2016 06:01 PM, Stephen wrote:
> I have Apache running on my system for web development with php.
>
> Apache writes to an error.log file unique for the specific web site 
> that I am working on.
>
> During debugging the log file grows, and I like to clear it every now 
> and then.
>
> I had to change ownership of the file to me. I five read/write to 
> everyone.
>
> But when I truncate the file and save, Apache no longer writes to it. 
> The Apache error logs do not indicate a problem.
>
> I restart Apache and all is good again. But this is a nuisance.
>
> Is there a way to avoid this nuisance?
>
> Thanks
>

-- 
Alvin Starr                   ||   voice: (905)513-7688
Netvel Inc.                   ||   Cell:  (416)806-0133
alvin at netvel.net              ||



More information about the talk mailing list