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!

Can not access file after / on domains

Discussion in 'General Discussion' started by HappyCoder, Aug 9, 2013.

  1. HappyCoder

    HappyCoder Member

    Joined:
    Apr 27, 2012
    Messages:
    15
    Likes Received:
    0
    Trophy Points:
    51
    cPanel Access Level:
    Root Administrator
    Hi friends,

    I have a crazy problem with a new cPanel installation on CentOS.
    I created a domain and an index.html-file.
    When I type Example Domain will appear index-file. When I write Example Domain so happens error 404. Does not matter which file I try to access, as occurs 404.

    What have I configured wrong?
     
  2. Infopro

    Infopro cPanel Sr. Product Evangelist
    Staff Member

    Joined:
    May 20, 2003
    Messages:
    16,429
    Likes Received:
    415
    Trophy Points:
    583
    Location:
    Pennsylvania
    cPanel Access Level:
    Root Administrator
    Twitter:
    Not sure I understand, whats this: -file
    Is that part of the file name? If yes, change it to index.html
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  3. HappyCoder

    HappyCoder Member

    Joined:
    Apr 27, 2012
    Messages:
    15
    Likes Received:
    0
    Trophy Points:
    51
    cPanel Access Level:
    Root Administrator
    index.html-file is just index.html ;-)
     
  4. cPanelMichael

    cPanelMichael Technical Support Community Manager
    Staff Member

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

    It's possible this is a browser or DNS cache issue. Are you sure your domain name fully resolves to your server? Also, have you tried uploading other files to see if they are accessible?

    Thank you.
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  5. HappyCoder

    HappyCoder Member

    Joined:
    Apr 27, 2012
    Messages:
    15
    Likes Received:
    0
    Trophy Points:
    51
    cPanel Access Level:
    Root Administrator
    Hi Michael,

    Yes, I am quite sure that the whole domain name pointing into the server - and the server can be approved.
    I also tried to upload other files - it's exactly the same error.
     
  6. Infopro

    Infopro cPanel Sr. Product Evangelist
    Staff Member

    Joined:
    May 20, 2003
    Messages:
    16,429
    Likes Received:
    415
    Trophy Points:
    583
    Location:
    Pennsylvania
    cPanel Access Level:
    Root Administrator
    Twitter:
    What happens when you upload an index.php to the public_html/
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  7. cPanelMichael

    cPanelMichael Technical Support Community Manager
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    44,802
    Likes Received:
    1,895
    Trophy Points:
    363
    cPanel Access Level:
    Root Administrator
    Twitter:
    404 error messages indicate the file can not be found. Please ensure you are uploading the files to the correct directory (.e.g. public_html) and not the actual home directory of the accounts.

    Thank you.
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  8. HappyCoder

    HappyCoder Member

    Joined:
    Apr 27, 2012
    Messages:
    15
    Likes Received:
    0
    Trophy Points:
    51
    cPanel Access Level:
    Root Administrator
    Oops - now I have discovered the error. And it is quite embarrassing!

    I have changed the server's local IP address, and my test domain was still configured in cPanel to the old IP address.

    Thanks for everyone's help!
     
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