Archive for the ‘Disk Space Administration’ Category

Unlimited Disk Space

Thursday, October 29th, 2009

Sometimes, you list accounts in WHM and the disk limit of each account is unlimited. That’s obviously a problem, because you wont be able to limit disk space usage. The fix is normally an easy fix. Just login to your server with ssh and run this command

/scripts/fixquotas

Usually this script will fix this problem.

/usr Partition Full

Thursday, October 29th, 2009

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.