User logs files

Suurbier

Verified User
Joined
Apr 23, 2007
Messages
223
4e6e74bcc2423-scrn21.PNG


As you see this user has a big log file, how do i disable httpd logging on domain/user level (located at /home/user/domains/site.com/logs)
90% of the diskspace is because of the logs..
 
Last edited:
Ah ok, sorry for misunderstanding.

But, the user has 1024MB diskspace and has 100MB in his public_html folder, no databases, no email accounts.. Directadmin says this account is using 110% of his diskspace..
 
Last edited:
Yes that's the big question, did you watch my screenshot? Isn't this weird..?
 
Yes, I did. Nope, I'm not any surprised, really.

post here output of

Code:
# quota -u <USERNAME>

and

Code:
# repquota -a | grep <USERNAME>

Change <USERNAME> with real and actual username.
 
Run du command against his homedir to start.

du -h /home/username

Then you will know how much space is in /home/username

After that you will have to find other places where files might be
 
First of all, thank you both for your comments.

Code:
[root@reverse /]#du -h /home/surfen
4.0K    /home/surfen/imap/***.nl
8.0K    /home/surfen/imap
4.0K    /home/surfen/Maildir/cur
4.0K    /home/surfen/Maildir/new
4.0K    /home/surfen/Maildir/.INBOX.spam/cur
4.0K    /home/surfen/Maildir/.INBOX.spam/new
4.0K    /home/surfen/Maildir/.INBOX.spam/tmp
16K     /home/surfen/Maildir/.INBOX.spam
4.0K    /home/surfen/Maildir/tmp
32K     /home/surfen/Maildir
1.1M    /home/surfen/domains/***.nl/logs
112K    /home/surfen/domains/***.nl/public_html/includes
20K     /home/surfen/domains/***.nl/public_html/plugins
16K     /home/surfen/domains/***.nl/public_html/themes/simple
40K     /home/surfen/domains/***.nl/public_html/themes/default
60K     /home/surfen/domains/***.nl/public_html/themes
8.0K    /home/surfen/domains/***.nl/public_html/tmp
292K    /home/surfen/domains/***.nl/public_html
4.0K    /home/surfen/domains/***.nl/.htpasswd
4.0K    /home/surfen/domains/***.nl/public_ftp/incoming
8.0K    /home/surfen/domains/***.nl/public_ftp
1.4M    /home/surfen/domains/***.nl
1.4M    /home/surfen/domains
1.4M    /home/surfen
[root@reverse /]#quota --help
quota: invalid option -- -
quota: Usage: quota [-guqxvs] [-l | -Q] [-i] [-F quotaformat]
        quota [-qxvs] [-l | -Q] [-i] [-F quotaformat] -u username ...
        quota [-qxvs] [-l | -Q] [-i] [-F quotaformat] -g groupname ...
Bugs to: [email protected], [email protected]
[root@reverse /]#quota -u surfen
Disk quotas for user surfen (uid 525):
     Filesystem  blocks   quota   limit   grace   files   quota   limit   grace
      /dev/sda1  958596  1048576 1153433            8688       0       0
 
The output is too big, does this make any sense? It is showing eacccelerator files, tmp files, public_html files, everything..

Ive sent DA an support ticket, maybe they can look at my problem?
 
If you got eaccelerator on a partition with quota enable thats the problem.

Is happend to me aswell time ago.

An user with 150mb website was using 300mb website cause eaccelerator cache is owned by file owner and it was on a partition with quota enable.

Move the eaccelerator cache directory elsewhere (and also change php.ini config) and restart apache.

Delete the old eaccelerator files path and user usage will be cutted 50% off

Regards
 
This should be

Code:
find / -user <USERNAME>
I suppose.

Yes, that's right.

As I see quotas on /dev/sda1, I suppose it's mounted as / (root partition), so there is no way to move eacccelerator files, tmp files elsewhere. Thus you'd better re-partition your drive or disable quotas.
 
Thank you both for your comments.

What does quoatas exactly do? And what if i disable this? And what about re-partitioning, is this riskfull or difficult? I never have done this before :o
 
There are two basic types of disk quotas. The first, known as a usage quota or block quota, limits the amount of disk space that can be used. The second, known as a file quota or inode quota, limits the number of files and directories that can be created.

http://en.wikipedia.org/wiki/Disk_quota

To re-partition your drive you need to install a second HDD (and move all data to it) or re-setup your OS.

Anyway, feel free to contact me, if you need my paid assistance.
 
If you disable disk quotas your users will be able to use disk space more than assigned, and you will have to monitor it by yourself.
 
Back
Top