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!

All subdomain point to folder public_html (wrong)

Discussion in 'General Discussion' started by Paolo Tateo, Jun 8, 2015.

  1. Paolo Tateo

    Paolo Tateo Registered

    Joined:
    May 19, 2015
    Messages:
    3
    Likes Received:
    0
    Trophy Points:
    1
    Location:
    Torino
    cPanel Access Level:
    Root Administrator
    I do not understand how it happened, do not you remember my last action before this error, but now there is this:

    I have configured the subdomain pippo.mydomain.com that point in the Document Root /pippo BUT really point to /public_html

    In the Subdomains section It seems to set everything right (I manage 8 server with WHM, and I've never seen behavior like this). 10 minutes before working properly. What could have happened?
     
  2. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    43,660
    Likes Received:
    1,787
    Trophy Points:
    363
    cPanel Access Level:
    Root Administrator
    Hello,

    Try rebuilding the Apache configuration file via:

    Code:
    /scripts/rebuildhttpdconf
    Does the issue continue? Are the document root values configured incorrectly in the files within the /var/cpanel/userdata/$username/ directory?

    Thank you.
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
    Paolo Tateo likes this.
  3. Paolo Tateo

    Paolo Tateo Registered

    Joined:
    May 19, 2015
    Messages:
    3
    Likes Received:
    0
    Trophy Points:
    1
    Location:
    Torino
    cPanel Access Level:
    Root Administrator
    It works, thanks!
     
  4. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    43,660
    Likes Received:
    1,787
    Trophy Points:
    363
    cPanel Access Level:
    Root Administrator
    I am happy to see the issue is now resolved. Thank you for updating us with the outcome.
     
    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