how do you clear/delete the error logs for certain accounts?
how do you clear/delete the error logs for certain accounts?
Mitty Chang
Do you want to clear it or delete it?
To clear it:
echo > filename
To delete it:
rm filename
But where are the error logs located?
Mitty Chang
Hmm. I was thinking access logs, sorry. I don't think you can delete error logs individually. I think they are combined in /usr/local/apache/logs/error_log
But I could be wrong.
You're not wrong. They are all in 1 file which is read from as needed.
The only way to delete the error logs for just one account would be to write a script to read and rewrite the error log leaving out the lines for that domain. Wouldn't be worth the trouble.