[advanced search]
Results from the most recent live auction are here.
16 members in the live chat room. Join Chat!
Register Rules & FAQ NP$ Store Active Threads Mark Forums Read
Go Back   NamePros.Com > Design and Development > Web Hosting Discussion
User Name
Password

Old 05-25-2008, 12:33 PM   · #1
Whats My Name
NamePros Member
 
Trader Rating: (0)
Join Date: Feb 2008
Posts: 70
NP$: 5.00 (Donate)
Whats My Name is an unknown quantity at this point
Switching Hosting with Several Subdomains



I'm going to be switching hosting in the near future. I have several subdomains and plan on getting a reseller account next.

Is it possible to switch over the subdomains without any downtime?

When switching over subdomains, how is this done?

I've never switched before. I've read that it's pretty easy but was wondering how different it is, if any with multiple subdomains?

Thanks.



Please register or log-in into NamePros to hide ads
Whats My Name is offline   Reply With Quote
Old 05-25-2008, 11:03 PM   · #2
qbert220
NamePros Member
 
qbert220's Avatar
 
Location: UK
Trader Rating: (22)
Join Date: Jul 2007
Posts: 119
NP$: 205.00 (Donate)
qbert220 is a jewel in the roughqbert220 is a jewel in the roughqbert220 is a jewel in the rough
Yes - you can do this without downtime.

First, you need to get your new hosting account setup. Use the control panel to create your subdomains, then add all of your content to it using FTP and the IP address of the server.

You may be able to test your new site using a preview URL (e.g. if it is a cPanel server http://12.123.123.123/~username - replace with the IP address of the server and your cPanel username). Ask your new web host if they provide a preview. Previewing does not always work correctly though since URLs are different than when you visit the site directly. For instance a <a href="/"> link will reference the wrong page.

You may be alse to preview subdomains using the subdomain directory like this:

http://123.123.123.123/~username/subdir

If your new host does not offer a preview (or if they do but it does not work correctly), then you can do it yourself by modifying your local hosts file. I'm assuming you're using windows. Open the folder c:\windows\system32\drivers\etc. Look for a file called hosts. If there is one, open it in a text editor (e.g. notepad). If not, then create it. NOTE there is no dot in the file name!

Now add the following line to your hosts file:

Code:
123.123.123.123 www.yourdomain.com 123.123.123.123 subdomain.yourdomain.com


Replace with the new servers IP address and your domain name and subdomains. You should have 1 line for each subdomain you want to test.

Now open your web site in your web browser and you should see the new site.

No one else can see the new server yet - they are still seeing the old server. Now it is time to start using the new server, so we need to chaneg the nameservers for your domain. Change them to the ones your new host has provided. There will be some delay between you making this change and all visitors seeing your new site - usually a few hours. This is bacause the old DNS entries are cached. If your site is static HTML this is not a problem. If you use databases then someone could update the database on the old server and then the change gets lost when the new DNS kicks in. To minimise this you could ask your old host to reduce the TTL and EXPIRE value on your DNS entries to 300. This is a dead giveaway that you are leaving them, so they may not be too happy about doing it! You then need to wait for the old TTL period (a day should do) before copying databases and changing the nameservers over.

Keep the old hosting account active for at least a day, preferably 2 after changing the nameservers to catch any DNS update stragglers.

If you modified your hosts file, don't forget to remove the changes a day after changing the nameservers.
__________________
DNSsy.com - DNS Test and Check
qbert220 is offline   Reply With Quote
Old 05-26-2008, 12:55 AM   · #3
Whats My Name
NamePros Member
 
Trader Rating: (0)
Join Date: Feb 2008
Posts: 70
NP$: 5.00 (Donate)
Whats My Name is an unknown quantity at this point
Awesome post.

Thank you so much.

I might switch some or all of the subdomians to their own domain (no longer subdomain).

If I moved subdomain.yourdomain.com (old server)
to
subdomain.com (new server) and no longer subdomain

Would that still be possible without downtime?
Whats My Name is offline   Reply With Quote
Old 05-26-2008, 01:45 AM   · #4
qbert220
NamePros Member
 
qbert220's Avatar
 
Location: UK
Trader Rating: (22)
Join Date: Jul 2007
Posts: 119
NP$: 205.00 (Donate)
qbert220 is a jewel in the roughqbert220 is a jewel in the roughqbert220 is a jewel in the rough
Originally Posted by Whats My Name
If I moved subdomain.yourdomain.com (old server)
to
subdomain.com (new server) and no longer subdomain

Would that still be possible without downtime?



You could just setup subdomain.com on the new server, then create a redirect from "subdomain.yourdomain.com" to "subdomain.com" when you move "yourdomain.com" to the new server. If you don't setup the redirect you will loose traffic since there will still be backlinks to subdomain.yourdomain.com and it's also in the search engine indexes.

You may be able to setup the redirect in your control panel on the new server (cPanel let's you do that). Just set it up before you change the nameservers of yourdomain.com.

qbert
__________________
DNSsy.com - DNS Test and Check
qbert220 is offline   Reply With Quote
Old 05-26-2008, 07:44 AM   · #5
loran76
NamePros Regular
 
Trader Rating: (0)
Join Date: Oct 2006
Posts: 235
NP$: 0.00 (Donate)
loran76 is an unknown quantity at this point
Do it in the control panel. It's easier.
loran76 is offline   Reply With Quote
Old 05-27-2008, 01:31 AM   · #6
~ServerPoint~
NamePros Regular
 
~ServerPoint~'s Avatar
 
Trader Rating: (0)
Join Date: Nov 2007
Posts: 491
NP$: 0.00 (Donate)
~ServerPoint~ is on a distinguished road
loran76, yes you are right here and I would love to say nort every panal allow such switching. Cpanel allow that for sure.
__________________
ServerPoint.com - a true hosting company offering online presence solutions since 1998
Web Hosting, colocation, dedicated servers, Virtual Private Server (VPS) hosting
Wholly owned multi homed network, servers and facilities
~ServerPoint~ is offline   Reply With Quote
Old 05-27-2008, 03:30 AM   · #7
qbert220
NamePros Member
 
qbert220's Avatar
 
Location: UK
Trader Rating: (22)
Join Date: Jul 2007
Posts: 119
NP$: 205.00 (Donate)
qbert220 is a jewel in the roughqbert220 is a jewel in the roughqbert220 is a jewel in the rough
Yes - transferring using cPanel's copy account feature works most of the time. I would certainly recommend using it if available. The problems with it are:

1. It is possible for an admin to block sites from being transferred away. If your old host does this you will not be able to transfer using cPanel.

2. It needs root WHM access, so it is not available in reseller accounts or in normal cPanel accounts. You could ask your new web host if they will do it for you - they may oblige.

So, unless you have root access to a dedicated server or VPS, you will not have the ability to copy using cPanel. Even if you do, it could be blocked by the old host.
__________________
DNSsy.com - DNS Test and Check
qbert220 is offline   Reply With Quote
Old 05-29-2008, 10:58 PM   · #8
Whats My Name
NamePros Member
 
Trader Rating: (0)
Join Date: Feb 2008
Posts: 70
NP$: 5.00 (Donate)
Whats My Name is an unknown quantity at this point
Thanks everybody!
Whats My Name is offline   Reply With Quote
Old 06-18-2008, 07:51 PM   · #9
Whats My Name
NamePros Member
 
Trader Rating: (0)
Join Date: Feb 2008
Posts: 70
NP$: 5.00 (Donate)
Whats My Name is an unknown quantity at this point
I have a few MySQL databases. Is the process the same to transfer to the new host? How is it done?

Thanks.
Whats My Name is offline   Reply With Quote
Reply

NamePros is a revenue sharing forum.

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Forum Jump


Site Sponsors
Hunting Moon Exdon EscrowDNS
Advertise your business at NamePros
All times are GMT -7. The time now is 10:06 PM.


Powered by: vBulletin Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 2.4.0