Monday 26 November 2018

How to Clear Error & Access Logs on Ubuntu 16.04 Apache Server

Here is an example of the terminal commands to clear error logs and access logs. Remember to update the file paths to the location of your error/access log/s.

sudo bash -c ‘echo > /var/www/html/logs/error.log’sudo bash -c ‘echo > /var/www/html/logs/access.log’

Original Article Posted On: https://andycorby.com/clear-error-access-logs-ubuntu-16-04/

No comments:

Post a Comment