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.

Previewing website dedicated server cPanel

Discussion in 'General Discussion' started by robbob, Jun 30, 2014.

  1. robbob

    robbob Member

    Joined:
    Jun 30, 2014
    Messages:
    7
    Likes Received:
    0
    Trophy Points:
    1
    cPanel Access Level:
    Root Administrator
    Hello, first time poster here!

    I am currently migrating over from one dedicated server to another. I have successfully transferred everything over such as files, mysql, emails etc. I am currently previewing how my site by linking to http://xxx.xxx.xxx.xxx/~username (obviously changing ip and username where required) and some of the MySql functions appear not be working correctly. The website that is being transferred over is [actual domain removed] and as you can see once a watch brand has been selected you can see quite a few images of watches and these are not showing up on the preview that I have. Is this to be expected as it is just a preview or is there something else I should know?

    There are no warnings etc showing up and I have not changed anything from the original site. I have attached a picture of what I am seeing when clicked on one of the brands. Everything else appears to be working fine such as general navigation around the site.

    Thank-you in advance for some help
     

    Attached Files:

    #1 robbob, Jun 30, 2014
    Last edited by a moderator: Jun 30, 2014
  2. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    30,675
    Likes Received:
    648
    Trophy Points:
    113
    cPanel Access Level:
    Root Administrator
    Hello :)

    Try updating the hosts file on your computer so that it points the domain name to the IP address of the new server. This will allow you to visit the domain name directly in your web browser before propagation occurs.

    hosts (file) - Wikipedia, the free encyclopedia

    Apache Mod_Userdir can sometimes conflict with certain configurations or Mod_Rewrite rules.

    Thank you.
     
  3. robbob

    robbob Member

    Joined:
    Jun 30, 2014
    Messages:
    7
    Likes Received:
    0
    Trophy Points:
    1
    cPanel Access Level:
    Root Administrator
    Hi there,

    I don't really understand how to do this or what it really means. I have read the Wikipedia page and to be honest it just confused me! I just want to be sure that everything is as it should be before transferring over and finding that some of the site is not there etc.

    Its starting to look like I might have to re-direct the site to the new server whilst the old one stays alive as well and check everything then when all OK close the old one and if there are problems then can at least switch back?

    Thanks
     
  4. robbob

    robbob Member

    Joined:
    Jun 30, 2014
    Messages:
    7
    Likes Received:
    0
    Trophy Points:
    1
    cPanel Access Level:
    Root Administrator
    Hi again,

    I have managed to test using that method and I get the same result. Is there a way to find out where this problem is occurring? All I have done I transfer the site across and not tampered with it at all.

    Thanks
     
  5. storminternet

    storminternet Well-Known Member

    Joined:
    Nov 2, 2011
    Messages:
    462
    Likes Received:
    0
    Trophy Points:
    16
    cPanel Access Level:
    Root Administrator
    Sometimes websites do not work as expected when you access them via temporary URL. In such cases you can confirm their actual working by pointing your website to new server temporarily by using hosts file of your local PC.

    Assuming you are using windows operating system just follow the steps below.

    Start > Run > C:\Windows\System32\drivers\etc\hosts

    Open it with notepad and add following

    x.x.x.x domain.com Replace x.x.x.x with your new server IP and domain.com is your actual website name.
    x.x.x.x www.domain.com

    Save it and then confirm by ping that your website is pointed new IP.
     
  6. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    30,675
    Likes Received:
    648
    Trophy Points:
    113
    cPanel Access Level:
    Root Administrator
    Do you notice any error messages in the Apache error log or within the error_log of the website when visiting the web page?

    Thank you.
     
  7. robbob

    robbob Member

    Joined:
    Jun 30, 2014
    Messages:
    7
    Likes Received:
    0
    Trophy Points:
    1
    cPanel Access Level:
    Root Administrator
    I don't see any error messages appearing on screen and not sure how to see error messages in the Apache error log or the error_log of the website as this is beyond my current knowledge base
     
  8. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    30,675
    Likes Received:
    648
    Trophy Points:
    113
    cPanel Access Level:
    Root Administrator
    You can review the Apache error log via the command line. It's located at:

    Code:
    /usr/local/apache/logs/error_log
    Often times, the error_log for a script will store PHP errors. It's typically located in the /home/$username/public_html directory. I highly suggest consulting with your hosting provider or a qualified system administrator if you are not comfortable viewing an error log.

    Thank you.
     
Loading...

Share This Page