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.

Default DocumentRoot

Discussion in 'General Discussion' started by piter2k1, Mar 18, 2013.

  1. piter2k1

    piter2k1 Registered

    Joined:
    Mar 18, 2013
    Messages:
    1
    Likes Received:
    0
    Trophy Points:
    1
    cPanel Access Level:
    Root Administrator
    How to configure DocumentRoot for this folders structure:

    /home/vhosts/user/domains/domain/public_html/

    Automatic for any new accounts.
     
  2. arunsv84

    arunsv84 Well-Known Member

    Joined:
    Oct 20, 2008
    Messages:
    373
    Likes Received:
    1
    Trophy Points:
    18
    Location:
    127.0.0.1
    cPanel Access Level:
    Root Administrator
    I'm not sure about changing the default document root automatically. You can set the default home directory location in "Basic cPanel Setup". For the document root, you need to manually change in apache config file, distill apache so the cPanel update wont overwrite it. It would be better not to touch the default cPanel settings as it can issues during update of control panel. Why are you trying to change the document root for all accounts? Are you migrating accounts from some other controlpanel to cPanel ?

    Cheers!!!
     
Loading...

Share This Page