/usr Partition Full

Is your /usr partition full? Or almost full? That could be a problem. Here’s a way to fix it.

Run:

cd /usr/local/apache/logs/

List the contents of that directory with ll. Are there any big files? Empty those files. Here’s an example. If you want to empty error_log for example, just run:

echo > error_log

You can repeat this procedure in /usr/local/cpanel/logs/. Just empty any large files.

Then go to /usr/local/apache/domlogs/. And list the biggest 10 or 20 files. For the top 10, run:

ls -al -SR | head -10 —>

Are there any big files? Running awstats for that domain should clear the file. Just run:

/scripts/runweblogs user

Login to WHM. Check if log rotation is active for apache and cpanel logs. For apache, click Service Configuration -> Apache Configuration -> Log Rotation. For cpanel, click Service Configuration -> cPanel Log Rotation Configuration.

This entry was posted in Cpanel Administration, Disk Space Administration. Bookmark the permalink.

Leave a Reply

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

*

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>