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.

build_apache_conf docroot creation

Discussion in 'EasyApache' started by ChrisFirth, Nov 27, 2013.

  1. ChrisFirth

    ChrisFirth Active Member
    PartnerNOC

    Joined:
    Apr 10, 2008
    Messages:
    36
    Likes Received:
    0
    Trophy Points:
    6
    cPanel Access Level:
    DataCenter Provider
    Hi,

    I noticed when a users docroot doesn't exist (renamed or deleted for what ever reason) and /usr/local/cpanel/bin/build_apache_conf is run to regenerate the apache config it creates a new docroot for the user:

    info [build_apache_conf] Creating missing document root /home/myuser/public_html for myuser

    The permissions for the new docroot seem to be different compared to the defaults for the public_html folder for new accounts. The build_apache_conf made docroot has 755 permission and is owned by the same user/group. On a new account that is created public_html has 750 permissions and is owned by the user but the group is nobody.

    I believe the docroot created by build_apache_conf should also be the same permissions, 750, is there any way I can correct this?

    Thanks
     
  2. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    30,854
    Likes Received:
    675
    Trophy Points:
    113
    cPanel Access Level:
    Root Administrator

Share This Page