Skip to main content

After Cpanel installation web page files redirecting to 404

Comments

5 comments

  • sujeeshsh
    Error screen
    0
  • ffeingol
    Unless you have the site assigned to a dedicated IP, that's not going to work. By default the main IP is shared, so Apache does not know what site you want. If it's a shared IP, edit your computers local host file and put an entry in for the site. Just remember to remove it when you are done. On Windows the host file will be in \Windows\System32\Drivers\etc The hosts file is just a text file, but you'll need to edit the admin file with administrator permissions. You just add a line at the bottom like: 177.##.##.## example.com www.example.com That tells your computer to override DNS and go to 177.##.##.## for example.com and www.example.com
    0
  • cPRex Jurassic Moderator
    Depending on your server's configuration, you may also be able to visit ipaddress/~username, where "username" is simply the username of the cPanel account you're working with. However, the solution provided by @ffeingol provides a better testing experience in the browser.
    0
  • sujeeshsh
    Unless you have the site assigned to a dedicated IP, that's not going to work. By default the main IP is shared, so Apache does not know what site you want. If it's a shared IP, edit your computers local host file and put an entry in for the site. Just remember to remove it when you are done. On Windows the host file will be in \Windows\System32\Drivers\etc The hosts file is just a text file, but you'll need to edit the admin file with administrator permissions. You just add a line at the bottom like: 177.##.##.## example.com www.example.com

    Thank You for your response . I have tested it and working fine now :) Thank you again.. have a great day!
    0
  • sujeeshsh
    Depending on your server's configuration, you may also be able to visit ipaddress/~username, where "username" is simply the username of the cPanel account you're working with. However, the solution provided by @ffeingol provides a better testing experience in the browser.

    Yes, his reply was perfect. I tried that and working fine now.
    0

Please sign in to leave a comment.