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
[email protected]              ||

---
Talk Mailing List
[email protected]
https://gtalug.org/mailman/listinfo/talk

Reply via email to