$1 hosting

Log Rotation WHM

Table of Contents

Log Rotation WHM

Log files can take up a lot of disk space on your server and some operating system versions where your system will lockup if the log files growing greater than 2GB.

In this blog we will configure your server to rotate Apache logs and system logs. This compresses archives or log files. However you will still need to manually delete any unnecessary log files.

Let’s go ahead and login to WHM.

Log Rotation WHM, Hostripples Web HostingLog Rotation WHM, Hostripples Web Hosting

Here we are in the WHM interface.

Log Rotation WHM, Hostripples Web HostingLog Rotation WHM, Hostripples Web Hosting

First we will configure Apache log files rotation. Scroll down to “service configuration” and click “apache configuration”. The Apache configuration interface will appear.

Log Rotation WHM, Hostripples Web HostingLog Rotation WHM, Hostripples Web Hosting

Then let’s click log rotation. The log rotation interface will appear.

Log Rotation WHM, Hostripples Web HostingLog Rotation WHM, Hostripples Web Hosting

Let’s go ahead and rotate all of the logs. Select all of the checkboxes and click ‘Save’. A confirmation message will appear.

Click back. To return to the previous interface.

300MB is a decent size for a log file. But if you want to change that click the link and then the tweak settings interface will appear. Change the setting and then click ‘Save’ at the bottom of the interface.

To rotate the system logs scroll down to “service configuration” and click “cPanel log rotation configuration”. A list of log file names will appear.

 

Let’s go ahead and select them all. You know how some pranksters will press all the buttons in the elevator and then duck out at the last minute. Well! This isn’t anything like that, go ahead, and click them all! You want to, you know you do..

 

Then click ‘Save’

 

A confirmation message will appear. Remember you need to remove or transfer archived log files manually. You want to clean up those archived log files connect to your server via SSH and navigate to following directories.

# cd /usr/local/apache/logs/archive

#ls

# usr/local/cPanel/logs/archive

Then remove or transfer the log files as necessary.

 

Visit: Hostripples

Best cPanel Web Hosting Company

 

 


Vishwajit Kale
Vishwajit Kale blazed onto the digital marketing scene back in 2015 and is the digital marketing strategist of Hostripples, a company that aims to provide affordable web hosting solutions. Vishwajit is experienced in digital and content marketing along with SEO. He's fond of writing technology blogs, traveling and reading.

Recent Posts

How Can I Integrate ChatGPT into My WordPress Site?

Let's cut straight to the chase - ChatGPT is revolutionizing the way we interact with websites, and if you're not…

11 hours ago

Discover the SEO Trends That Will Define 2025

Hold onto your keyboards, fellow digital enthusiasts! The future of SEO is racing towards us faster than a Google algorithm…

1 week ago

The Ultimate Beginner’s Playbook for Instagram Marketing

What Is Instagram Marketing? Instagram Marketing includes using the platform to advertise your business or personal brand to increase visibility,…

2 weeks ago

The Ultimate Guide to DIY Website Builders for Entrepreneurs

Ah, the joys of building a website! Picture this: You're sitting there in your pajamas, coffee in hand, ready to…

4 weeks ago

Don’t Ignore These 11 Signs You Need a Hosting Upgrade

Are you feeling like your website is running in slow motion? It can be frustrating when your online presence doesn't…

1 month ago