Skip to content

How To Automatically Remove error_log Files

December 30, 2010

apache http server logoApache has great logging features, but if you’re using shared hosting, then sometimes removing error_log files might not be very simple.

Poking around the Internet did lead me to Lester’s site, where he has generously created and offered an error_log file cleaning script for free. Grab that script here. Just upload that script to your web server, run it, and any error_log file that it finds (it searches downwards recursively), it will delete. So if you’re looking for a way to automatically delete error_log files, this is probably your best bet.

I’ve also mirrored it here. It’s a .txt file, so just rename it to .php for it to work.

Related Posts.