Home > Dedicated Server Hosting, Dedicated Server Security > Freeing up cPanel Server logs

Freeing up cPanel Server logs

September 22nd, 2009 harry Leave a comment Go to comments

If you are looking for freeing up your cPanel servers logs then just use following commands

Login to your linux server as root

root@harry[#]vi logs

echo > /usr/local/apache/logs/error_log
echo > /usr/local/apache/logs/access_log
echo > /usr/local/apache/logs/access_log
echo > /usr/local/apache/logs/error_log
echo > /usr/local/cpanel/logs/access_log
echo > /usr/local/cpanel/logs/error_log
echo > /var/log/exim_mainlog
echo > /var/log/exim_rejectlog
echo > /var/log/maillog
echo > /var/log/messages
echo > /var/log/messages.1
echo > /var/log/maillog.1
:wq!

root@harary[#]chmod 755 logs
root@harry[#]./logs

that’s all using above commands will empty all logs present on your server.

  1. No comments yet.
  1. January 19th, 2010 at 22:30 | #1