The Community Forums

Interact with an entire community of cPanel & WHM users!
  1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

cPanel file structure

Discussion in 'General Discussion' started by comptech520, Jul 31, 2012.

  1. comptech520

    comptech520 Well-Known Member

    Joined:
    Feb 23, 2006
    Messages:
    62
    Likes Received:
    0
    Trophy Points:
    6
    Hi,

    Just a couple quick questions from a new user.

    So I have the file structure correct:



    Is this where all of the websites are located? /dev/mapper/vg00-home MOUNT POINT /home?




    What are these other drives, and mount points?

    /dev/mapper/vg00-usr
    MOUNT POINT /usr

    /dev/mapper/vg00-var
    MOUNT POINT /var

    /dev/md1
    MOUNT POINT /

    Thanks so much!
     
  2. cPanelTristan

    cPanelTristan Quality Assurance Analyst
    Staff Member

    Joined:
    Oct 2, 2010
    Messages:
    7,623
    Likes Received:
    21
    Trophy Points:
    38
    Location:
    somewhere over the rainbow
    cPanel Access Level:
    Root Administrator
    Hello,

    The cPanel accounts are typically located in /home partition, right. They will be labelled as /home/username where username represents the cPanel username you use when you create an account in WHM > Account Functions > Create a New Account area.

    For /usr, this is where Apache and a lot of the cPanel data is stored as well as libraries. Apache is at /usr/local/apache, cPanel is at /usr/local/cpanel, and libraries are in /usr/lib or /usr/local/lib

    For /var, this is where many logs are stored in /var/logs location such as /var/log/exim_mainlog for the exim processing log. /var/lib/mysql contains the MySQL databases. There are also crons stored in /var/spool/cron/root, while exim mails are stored in /var/spool/exim

    The / partition is root level and contain the other non-mounted partitions such as /tmp for the temporary files (PHP sessions stored there), /lib for any libraries not in /usr, /boot for the kernel and any boot options, /proc for the system processes, and a few others.

    Thanks!
     
  3. comptech520

    comptech520 Well-Known Member

    Joined:
    Feb 23, 2006
    Messages:
    62
    Likes Received:
    0
    Trophy Points:
    6
    What do you recommend the space sizes to be of the above, I know that the /home should be a lot.
     
  4. cPanelTristan

    cPanelTristan Quality Assurance Analyst
    Staff Member

    Joined:
    Oct 2, 2010
    Messages:
    7,623
    Likes Received:
    21
    Trophy Points:
    38
    Location:
    somewhere over the rainbow
    cPanel Access Level:
    Root Administrator
    We have documentation on our recommendations for each partition:

    Advanced Options: Pre-Installation

    /home should be 15GB or more, since it contains the user accounts
     
Loading...

Share This Page