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.

New domain being redirected to /usr/local/apache/htdocs

Discussion in 'General Discussion' started by fusionity, Dec 11, 2014.

  1. fusionity

    fusionity Registered

    Joined:
    Nov 11, 2008
    Messages:
    4
    Likes Received:
    0
    Trophy Points:
    1
    I just installed cPanel on a new RHEL 6.6 server. The first and only domain I need on this server was transferred over but every time I called the home page I got redirected to cgi-sys/defaultwebpage.cgi. I read some people saying this was an issue with the server only haivng one IP and it was shared so I put a second IP on the server and dedicated it to the site. I've rebuilt apache 4 times now as some people have suggested a rebuild will fix this. I looked in my apache error log and I can see that any url I call on this domain is going to /usr/local/apache/htdocs which of course is wrong.

    What can I do to either get the domain looking at the right file path or change the default path to where my domain's files are at? This will be the only site on this server so I'm not worried about messing up other domains.

    I'll also add this is a temporary server. I only plan on using it for 2-3 weeks before deploying a new server in a different location.
     
  2. Infopro

    Infopro cPanel Sr. Product Evangelist
    Staff Member

    Joined:
    May 20, 2003
    Messages:
    14,451
    Likes Received:
    195
    Trophy Points:
    63
    Location:
    Pennsylvania
    cPanel Access Level:
    Root Administrator
    Twitter:
    Have you given the domain name time to propagate?
     
  3. fusionity

    fusionity Registered

    Joined:
    Nov 11, 2008
    Messages:
    4
    Likes Received:
    0
    Trophy Points:
    1
    Right now the domain is still live on its old server. I have edited the hosts file on one computer to point to this new server for testing.
     
  4. Infopro

    Infopro cPanel Sr. Product Evangelist
    Staff Member

    Joined:
    May 20, 2003
    Messages:
    14,451
    Likes Received:
    195
    Trophy Points:
    63
    Location:
    Pennsylvania
    cPanel Access Level:
    Root Administrator
    Twitter:
    How did you add the domain to the new server, exactly?
     
  5. fusionity

    fusionity Registered

    Joined:
    Nov 11, 2008
    Messages:
    4
    Likes Received:
    0
    Trophy Points:
    1
    I used the transfer tool.
     
  6. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    30,678
    Likes Received:
    653
    Trophy Points:
    113
    cPanel Access Level:
    Root Administrator
Loading...

Share This Page