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!

Configure /home/user/public_html as DocumentRoot

Discussion in 'General Discussion' started by rcechang, Jan 31, 2014.

  1. rcechang

    rcechang Registered

    Joined:
    Jan 31, 2014
    Messages:
    2
    Likes Received:
    0
    Trophy Points:
    1
    cPanel Access Level:
    Root Administrator
    Hello every body,

    Sorry about this newbie question.
    I have a server, and when I go to mi ip, then I can see the content of my /home/user/public_html. It's fine for me. I reconfigure Apache using EasyApache and I lost this behavior, now when I go to mi ip, I see the content of /usr/local/apache/htdocs. I try to change this by editing de apache configuration file, but this is a bad practice if I use whm. How is the best way to change Apache, in order to make my /home/user/public_html the DocumentRoot.

    Thank you for your help
     
  2. cPanelMichael

    cPanelMichael Technical Support Community Manager
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    45,401
    Likes Received:
    1,953
    Trophy Points:
    363
    cPanel Access Level:
    Root Administrator
    Twitter:
    Hello :)

    It's likely the document root is already correctly configured. Could you verify the IP address assigned to the account and used in it's DNS Zone matches the IP address the domain name resolves to from your computer?

    Thank you.
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  3. rcechang

    rcechang Registered

    Joined:
    Jan 31, 2014
    Messages:
    2
    Likes Received:
    0
    Trophy Points:
    1
    cPanel Access Level:
    Root Administrator
    You are rigth, every thing is ok. I was confuse because everything was working ... :-S ... is a complicated history ... thank you very much.
     
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