Please whitelist cPanel in your adblocker so that you’re able to see our version release promotions, thanks!

The Community Forums

Interact with an entire community of cPanel & WHM users!

CPanel and storage space

Discussion in 'Workarounds and Optimization' started by VapourMike, Oct 19, 2009.

  1. VapourMike

    VapourMike Member

    Joined:
    Jul 5, 2003
    Messages:
    14
    Likes Received:
    0
    Trophy Points:
    151
    Location:
    South East UK
    Hi,

    Im running Cpanel/WHM on a server with a mere 5gb mount and a 50gb mount for /home. Now my main mount is down to 140mb free space and Im really wondering if and what I can clean/flush out of cpanel/whm on a regular basis?

    Ive done a few easyapache builds, do these keep logs? are there stats I can rotate or archive off? logs that can be archived? features I can uninstall/remove etc etc

    Any ideas on how I can free up a bit of disk space and hopefully streamline my server a bit more.

    Thank you in advanced
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  2. Infopro

    Infopro cPanel Sr. Product Evangelist
    Staff Member

    Joined:
    May 20, 2003
    Messages:
    16,339
    Likes Received:
    402
    Trophy Points:
    583
    Location:
    Pennsylvania
    cPanel Access Level:
    Root Administrator
    Twitter:
    In cPanel for that main account, find the icon titled Disk Space Usage. Using that you might find some things on the account itself to remove. If logging is enabled on the account you can free up some real space by turning that off.

    cPanel > Raw Access Logs icon > make your selection there.

    EA3 logs are found at /usr/local/cpanel/logs/easy/apache/ Not sure that'll help much though. EA3 also renames and backs up the apache directory. You'd find that/those located here: /usr/local/
    you may find apache.backup and apache.backup archive there. If alls well with your server's Apache setup, these could be killed.

    You might login as root and check space with something like this:

    this one displays free dsk space
    df -h

    this one displays disk usage
    du -h

    Maybe something useful in there somewhere. ;)
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  3. cPanelDavidG

    cPanelDavidG Technical Product Specialist

    Joined:
    Nov 29, 2006
    Messages:
    11,216
    Likes Received:
    10
    Trophy Points:
    313
    Location:
    Houston, TX
    cPanel Access Level:
    Root Administrator
    Friendly Moderator Note

    Since this is a discussion about disk space optimization, I have moved this to the optimization forum.
     
  4. Infopro

    Infopro cPanel Sr. Product Evangelist
    Staff Member

    Joined:
    May 20, 2003
    Messages:
    16,339
    Likes Received:
    402
    Trophy Points:
    583
    Location:
    Pennsylvania
    cPanel Access Level:
    Root Administrator
    Twitter:
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  5. cPanelDon

    cPanelDon cPanel Quality Assurance Analyst
    Staff Member

    Joined:
    Nov 5, 2008
    Messages:
    2,554
    Likes Received:
    9
    Trophy Points:
    168
    Location:
    Houston, Texas, U.S.A.
    cPanel Access Level:
    DataCenter Provider
    Twitter:
    I would also consider using "du" to check what directories within the root partition are consuming the most disk space (assuming the root partition is what is being asked about); a command such as the following may be a good start:
    Code:
    # du -ahx --max-depth=1 /
    To search deeper, simply change or append to the existing path, such as the following:
    Code:
    # du -ahx --max-depth=1 /test
    For additional options and CLI switches I recommend checking the man page:
    Code:
    # man du
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  6. pacifich

    pacifich Member

    Joined:
    Dec 9, 2009
    Messages:
    7
    Likes Received:
    0
    Trophy Points:
    51

    Nice tips, thanks for sharing your thoughts ... well done!
     
Loading...

Share This Page

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice