PDA

View Full Version : moving site, test on new ip first... how?


wolfyman
07-18-2005, 02:59 PM
I have moved all my files and databases, my new database uses the same info as the old - so everything should be smooth. I want to test it though.

When I type in http://new.ip/forum, it redirects me to http://url/forum. How do I solve this?

come on fellas, show me some love here :D

jsharper
07-20-2005, 04:58 AM
try putting an entry in the hosts file (/etc/hosts or c:\windows\system32\drivers\etc\hosts for unix or windows respectively) on your workstation that points "url" to "new.ip".. then you (and only you) can browse the new site with the "correct" url..

wolfyman
07-20-2005, 11:35 AM
didn't work, thanks for the try. Anybody else?

jugo
07-20-2005, 11:51 AM
In the new setup fo in and change your home url and anything that pertains to the new location to the IP. That should work.

RichieBoy67
07-20-2005, 12:39 PM
You have tranfered the database and everything is exactly the same as on your old server????

strange... don't know why you are having a problem...

wolfyman
07-20-2005, 12:45 PM
I was checking around (global.php, config.php...) and I can't find anything other than mysql databases, nothing pertaining to url - can anybody help me find that stuff? Which files will it be in?

You have tranfered the database and everything is exactly the same as on your old server????



strange... don't know why you are having a problem...

the only problem I'm having is something keeps redirecting me to the url rather than just going to the ip.

RichieBoy67
07-20-2005, 12:57 PM
Do you have VBA and are you sure all the paths are exactly the same on this new server?????

wolfyman
07-20-2005, 01:51 PM
What's VBA?

And yep, absolutely positive - I set up the site myself, mysql and folder paths are perfect.

If you mean VB advanced, the answer is no.

jsharper
07-20-2005, 02:54 PM
didn't work, thanks for the try. Anybody else?

What part didn't work? It will still redirect you to the domain name, but the point of the hosts file change is that when your machine points at the domain name, you'll get the new server instead of the old one.

Note that in WinXP, after you change the hosts file, you'll probably need to restart the dns client cache service (it's called "DNS Client" in the Services GUI, or go to a cmd prompt and run "net stop dnscache" followed by "net start dnscache") and then also close and restart your browser as most browsers also implement a short-term dns resolution cache in memory. ... or reboot the whole box if you don't want to mess with all that :)

I was checking around (global.php, config.php...) and I can't find anything other than mysql databases, nothing pertaining to url - can anybody help me find that stuff? Which files will it be in?


The URL isn't in any file. (It is stored in the database) To change it, go into the Admin CP, vBulletin Options, "Site Name/URL/Contact Details", and find it under "Forum URL"

wolfyman
07-20-2005, 03:28 PM
What part didn't work? It will still redirect you to the domain name, but the point of the hosts file change is that when your machine points at the domain name, you'll get the new server instead of the old one.

Note that in WinXP, after you change the hosts file, you'll probably need to restart the dns client cache service (it's called "DNS Client" in the Services GUI, or go to a cmd prompt and run "net stop dnscache" followed by "net start dnscache") and then also close and restart your browser as most browsers also implement a short-term dns resolution cache in memory. ... or reboot the whole box if you don't want to mess with all that :)



The URL isn't in any file. (It is stored in the database) To change it, go into the Admin CP, vBulletin Options, "Site Name/URL/Contact Details", and find it under "Forum URL"


ok, I tried the net start dnscache thing, it was successful but something on my new server is still trying to redirect me to the url instead of the ip.

I can't login to the forum on the new server, so I can't change the settings to point to the ip instead of the domain. If I change the settings in the running forum, on the old server, to reflect the new ip, and it blocks me for some reason - how will I change it back?

I can access myphp on the new server (the ip server) so is there a way I can edit the settings in there?