Previewing website dedicated server cPanel

robbob

Member
Jun 30, 2014
7
0
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
 

Attachments

Last edited by a moderator:

cPanelMichael

Administrator
Staff member
Apr 11, 2011
47,880
2,268
463
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.
 

robbob

Member
Jun 30, 2014
7
0
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
 

robbob

Member
Jun 30, 2014
7
0
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
 

storminternet

Well-Known Member
Nov 2, 2011
460
0
66
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.
 

cPanelMichael

Administrator
Staff member
Apr 11, 2011
47,880
2,268
463
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.
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.
 

robbob

Member
Jun 30, 2014
7
0
1
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?
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
 

cPanelMichael

Administrator
Staff member
Apr 11, 2011
47,880
2,268
463
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.