Development Ubuntu 16.04 Server

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’

By Andy Corby

Being quick to learn, I am a confident team member, who is responsible and easy to get on with; the kind of hardworking person who is always thinking ahead and using initiative.

Experience in a range of direct and digital marketing techniques. Google AdWords Certified and I hold a BA(Hons) Business & Finance degree (2:1).

Key skills include: Google AdWords PPC (aka Google Ads); search engine optimisation (SEO); LinkedIn lead generation; web design; user interface (UI) and user experience (UX) design; software development; server management; and development experience with: HTML, CSS, PHP, MySQL, JavaScript, JQuery, AJAX, BootStrap, PHPMyAdmin, PhantomJS, CasperJS, VPS/VPC(Ubuntu 16.04 LTS).

Special interest in maximising productivity through: agile working, productivity tools, levaging time, and automating set processes.

Leave a Reply

Your email address will not be published. Required fields are marked *

1 × five =