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!

Move Default location of Account Site

Discussion in 'Workarounds and Optimization' started by dnavarrojr, Jul 31, 2017.

  1. dnavarrojr

    dnavarrojr Member

    Joined:
    Feb 13, 2014
    Messages:
    19
    Likes Received:
    1
    Trophy Points:
    3
    cPanel Access Level:
    Root Administrator
    I created an account in WHM attached to the domain "mydomain.com". By default, the folder for the web site is:

    /home/account_name/public_html

    I want to move the folder to:

    /home/account_name/public_html/mydomain.com

    Not sure how to go about doing that...
     
  2. dnavarrojr

    dnavarrojr Member

    Joined:
    Feb 13, 2014
    Messages:
    19
    Likes Received:
    1
    Trophy Points:
    3
    cPanel Access Level:
    Root Administrator
    Figured it out... I modified the /etc/apache2/httpd/conf/httpd.conf file.
     
    Infopro likes this.
  3. cPanelMichael

    cPanelMichael Technical Support Community Manager
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    44,803
    Likes Received:
    1,898
    Trophy Points:
    363
    cPanel Access Level:
    Root Administrator
    Twitter:
    Hello,

    Keep in mind that direct changes to that file are not preserved. You can follow the instructions on the following thread if you'd like to ensure changes to the document root are not erased during updates:

    AutoSSL & different DocumentRoot

    Thank you.
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
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