Community Forums
Connect with us on LinkedIn
+ Reply to Thread
Results 1 to 3 of 3
  1. #1
    Member
    Join Date
    Jun 2006
    Posts
    146

    Default how to optimize size of /usr/local/cpanel

    I have a pretty low /usr partition size and i cannot resize since i dont have LVM. Is there a way to optimize /usr/local/cpanel so it wont take so much space? Currently its roughly 1.7 GB

  2. #2
    Member
    Join Date
    Nov 2008
    Location
    United states
    Posts
    20

    Default

    Hi,

    You can compress your logs files that are located in /usr partition .i.e cPanel logs, various apache logs. You will have to check logs file regularly and will have to clean up logs.
    http://Hostwaresupport.com
    24x7 Technical Support | Server management | Server security

  3. #3
    Member
    Join Date
    Jan 2005
    Location
    Earth
    Posts
    1,050

    Default

    Quote Originally Posted by sharmaine001 View Post
    I have a pretty low /usr partition size and i cannot resize since i dont have LVM. Is there a way to optimize /usr/local/cpanel so it wont take so much space? Currently its roughly 1.7 GB
    What is the total size of your /usr partition? Since it's not possible to resize the partition, you can move the log directories to another partition say /home and create a symlink.

    The log directories you can move to /home directory and save space on /usr partition are:

    /usr/local/apache/domlogs
    /usr/local/apache/logs
    For example, create a directory under /home and set a symlink

    mkdir /home/apache/
    mv /usr/local/apache/domlogs /home/apache/
    ln -s /home/apache/domlogs /usr/local/apache/domlogs
    You can also remove the following directories under /usr/local/

    apache.backup
    apache.backup_archive
    cpanel.backup_archive

Similar Threads & Tags
Similar threads

  1. Moved /usr/local/ (and thus /usr/local/cpanel)
    By kbuser in forum cPanel and WHM Discussions
    Replies: 3
    Last Post: 12-02-2010, 10:59 AM
  2. Replies: 0
    Last Post: 04-08-2004, 01:18 PM
  3. Replies: 9
    Last Post: 10-30-2003, 02:55 AM
  4. Re: Cron <mailman@srv08> /usr/bin/python -S /usr/local/cpanel/3rd
    By sexy_guy in forum cPanel and WHM Discussions
    Replies: 2
    Last Post: 06-22-2003, 01:02 PM
  5. /usr/local/cpanel/cpanel-email: /usr/local/cpanel/cpanel-ema
    By jsteel in forum cPanel and WHM Discussions
    Replies: 0
    Last Post: 12-16-2002, 12:02 PM
Linkedin       Facebook       Twitter       RSS       Flickr       YouTube