Results 1 to 25 of 40
-
09-27-2013, 01:18 PM #1WHT Addict
- Join Date
- Mar 2008
- Posts
- 128
How to migrate a website domain from shared hosting to VPS hosting ?
Hi guys. I have a domain which I bought from a registrar company, and am currently using it for my website which is currently running on shared hosting through another company.
Today I purchased a VPS host, installed Centos 6.4 on it, and now I want to move the domain's nameservers so that the domain now comes to my VPS. How do I do this ?!
With shared hosting, it was simple. I just had to take the provider's nameservers, and use them with the host. Now I think it's more complicated. The VPS hosting I now have is also unmanaged, so the techs there aren't interested much in helping out. They said I have to set some DNS properties first, or something ?!
I also just purchased a cPanel VPS licence, so can that help somehow ? Although cPanel still needs to be installed.
Can someone guide me on this, or maybe link a tutorial ? I found a few tutorials, suggesting their own methods. Didn't know which one to follow, and also they were pretty old, so not sure if they were still the best method or not.
Help .. ?
-
09-27-2013, 01:27 PM #2Web Hosting Guru
- Join Date
- May 2013
- Location
- Dubai, UAE
- Posts
- 283
Once you get cPanel installed, you can use the transfer feature in WHM to transfer everything from your old account automatically. You'll need to wait for the transfer to complete and then change the DNS A-record to point to your new server.
-
09-27-2013, 01:27 PM #3Aspiring Evangelist
- Join Date
- Dec 2011
- Location
- Montreal
- Posts
- 431
To install cPanel is simple:
http://docs.cpanel.net/twiki/bin/vie...allationGuide/
So I'll move the account like this:
1. Setup hostname (like servername.newdomain.com) and ns records on your VPS. (from a newdomain.com or you can use you existing domain).
2. Register NS records to your registrar (ns1.newdomain.com and ns2.newdomain.com).
3. use cPanel option to copy account from another server (if your previous provider has cPanel).
4. Change the ns records at your registrar with the new one, keep those 2 domains on the same time (like this you have no downtime, will be something else to do for databases if you have).
5. When you'll see that your domain is propagated over the internet just remove the old account from your previous provider.
Ask me if you want more info.
Regards
-
09-27-2013, 01:31 PM #4WHT Addict
- Join Date
- Mar 2008
- Posts
- 128
Doesn't cPanel require the domain to first be fully working, before cPanel can be installed ?
https://www.buycpanel.com/requestinstall
Have a look at point 7. Doesn't that mean I need to correctly point the domain to the new VPS location first, before installing cPanel ?
Also, I'd like to not move anything from my previous host if possible. I'd like to install everything from fresh. I'll manually move data from my previous provider later on afterwards manually.
-
09-27-2013, 01:37 PM #5Aspiring Evangelist
- Join Date
- Dec 2011
- Location
- Montreal
- Posts
- 431
-
09-27-2013, 01:45 PM #6Aspiring Evangelist
- Join Date
- Dec 2011
- Location
- Montreal
- Posts
- 431
Do not pay for an installation all you have to do to install cPanel is from your command line:
1. root@whatever# cd /home
2. root@whatever# wget -N http://httpupdate.cpanel.net/latest
3. root@whatever# sh latest
Is it difficult to pay for?
Regards
-
09-27-2013, 01:53 PM #7WHT Addict
- Join Date
- Mar 2008
- Posts
- 128
I'm sorry, I re-read your earlier instructions, and still it seems a little unclear to me ..
Let's get into a little more detail, so that you can use specific terms in your answer, so that I can relate which you're talking about where ..
the URL's I'm giving below are dummies ..
Let's assume that my existing hosting provider's name is tangohost.com, and my site's domain is directlink.com.sg. The new host I want to move to is viprovps.com, and the static IP of my VPS is 182.63.78.139. Also, the current nameservers listed for directlink.com.sg are ns1.tangohost.com and ns2.tangohost.com.
And like I said, I have installed Centos 6.4 on the VPS running at IP 182.63.78.139.
Do note that I don't want to transfer cPanel data from my old host to the new one. I want to install a fresh cPanel on my VPS, and then setup everything like databases, etc, manually, at the new location.
So now, what steps do I follow ?
-
09-27-2013, 01:54 PM #8WHT Addict
- Join Date
- Mar 2008
- Posts
- 128
-
09-27-2013, 02:09 PM #9Aspiring Evangelist
- Join Date
- Dec 2011
- Location
- Montreal
- Posts
- 431
-
09-27-2013, 02:15 PM #10WHT Addict
- Join Date
- Mar 2008
- Posts
- 128
-
09-27-2013, 02:18 PM #11Aspiring Evangelist
- Join Date
- Dec 2011
- Location
- Montreal
- Posts
- 431
Do it like this: (sorry I am not a good teacher, and not very social )
1. Buy license(submit your ip:182.63.78.139)
2. Install cPanel.
3. Register NS records to your registrar (ns1.newdomain.com and ns2.newdomain.com)
4. Point those NS records to new ip's
(here is starting your case).
5. Create a new domain (the domain that you want to move) on your new vps.
6. Point your domain to those new NS records
7. and after the domain will be propagated (24 -48 hours) over the internet move manually your account from your previous provider to your vps.
Note: Like I wrote in my previous reply you can add a cname (for nameoftheserver) in your existing DNS zone (your actual provider) and pointed to the VPS ip, like this you'll have the hostname.
Regards
-
09-27-2013, 05:57 PM #12Junior Guru
- Join Date
- Sep 2013
- Posts
- 182
If you use cpanel, it's easy. Do a backup and then import that backup in your vps.
-
09-27-2013, 06:01 PM #13WHT Addict
- Join Date
- Mar 2008
- Posts
- 128
Rowebca, thanks for your help, but if you had used the sample values I had provided, it would have made your intructions easier to follow .. I'm a beginner and this is the very first I'm deploying a site on a VPS
I've added some questions to your post below. I'm using the sample values I provided in my previous post.
Also, I've just finished cPanel installation. I'm not sure if it's installed properly though .. I have tried opening IP:2087, etc, but nothing opens ..
EDIT:
I have a feeling that there are some concepts here which I might not be aware of ... The fact that you use 'domain' so much, in different contexts too I think, makes me think this .. Is there a more details tutorial I should probably follow ?Last edited by ahmadka; 09-27-2013 at 06:14 PM.
-
09-27-2013, 07:01 PM #14WHT Addict
- Join Date
- Mar 2008
- Posts
- 128
A little update. Turns out I can open cPanel console from within the VPS, using localhost:2087 (which gets mapped to http://centos664templatebase.cs1cloud.internal:2087)
But if I tried to access it from outside, using my VPS's static public IP:2087, it won't load .. Why is that ?
Anyways, I've done cPanel settings, but don't know where to go from here on out. My website address still points to its old and existing shared hosting home.
I used the following settings for setting up cPanel:
FQDN: server.directlink.com.sg
Resolvers:
#1: My Provider's gateway IP
#2: 8.8.8.8
#3: 4.2.2.2
Enter IP addresses step: Skipped it because I currently only have 1 IPv4 IP
Nameserver software used: BIND
Nameservers:
ns1.directlink.com.sg
ns2.directlink.com.sg
Since I only have one IPv4 IP right now, I configured both ns1.directlink.com.sg and ns2.directlink.com.sg to point to my VPS's IPv4 IP.
I also ticked the 'Add A Entries for Hostname' option, and entered my VPS's IPv4 IP there
---
So what do I do now ? How do I get my site to point to the new VPS location ? What nameservers values do I provide to the Website Domain Registrar Company ? Do I need to my VPS providers to do anything ? Anything else I need to do ?
-
09-27-2013, 07:13 PM #15Web Hosting Master
- Join Date
- Jan 2003
- Location
- SLC
- Posts
- 2,278
Your ip is not publicly available
make sure you have set up your network configuration
according to what your provider has specified or have them correct it.
unless you just made up this IP 182.63.78.139
-
09-27-2013, 07:25 PM #16WHT Addict
- Join Date
- Mar 2008
- Posts
- 128
Actually that's not the issue. I am able to connect to my machine via putty.
Also, the issue is with :2087 somehow, because if I try IP/cpanel, it works. Although, IP:2087 does not work, but localhost:2087 from within the VPS works.
That's a minor issue though.
Given the cPanel configuration data I used (mentioned in my previous post above), how do I point the URL of my site to the new VPS location ?
-
09-27-2013, 07:38 PM #17Web Hosting Master
- Join Date
- Jan 2003
- Location
- SLC
- Posts
- 2,278
ns1.directlink.com.sg
ns2.directlink.com.sg
register your name servers with your registrar to your public ip
you only have one so use the same IP it is true its not technically correct but it will still work (most registrars will allow you to do this)
after the name servers have propagated point your domain to
ns1.directlink.com.sg
ns2.directlink.com.sg
this assumes you have all ready set up your domain in your new cpanel server
-
09-27-2013, 07:57 PM #18WHT Addict
- Join Date
- Mar 2008
- Posts
- 128
I'm not sure what's the difference between the first and second step that you mentioned.
I'm assuming that in the first step, you're saying that at my registrar's system, I specify ns1.directlink.com.sg and ns2.directlink.com.sg has being the two nameservers for my website address directlink.com.sg ?
Like this (this is the namerserver specifying menu at my registrar's site): http://i.imgur.com/x11xbk0.png ?
But if I do this, how will the nameservers resolve to the IP ? I mean how does this translation happen: ns1.directlink.com.sg --> 182.63.78.139 (i.e. IP of my VPS) ? The internet doesn't yet know that this VPS at 182.63.78.139 is my site's new home .. How do I tell the internet that ? Don't I need to setup a reverse DNS or something somewhere ?
In your second step, I don't know what you mean by "point your domain to" ... What's domain here ? directlink.com.sg ? If so, then isn't this the same as the first step ? i.e. point the domain('s nameservers) to ...
Yeah I know, n00bs are a pain ..Last edited by ahmadka; 09-27-2013 at 08:00 PM.
-
09-27-2013, 08:18 PM #19Web Hosting Master
- Join Date
- Jan 2003
- Location
- SLC
- Posts
- 2,278
No the first step is totally different the name servers need to be registered before you can set any domains to them.
register your name servers with your registrar to your public ip
ns1= 182.63.78.139
ns2= 182.63.78.139
the internet doesn't yet know that this VPS at 182.63.78.139 is my site's new home .. How do I tell the internet that
set your domain directlink.com.sg to
ns1.directlink.com.sg & ns2.directlink.com.sg after you do the step above
A reverse DNS is set up by the ip block owner (your provider)
Has nothing to do with your DNS set to your servers hostname
-
09-28-2013, 01:55 AM #20WHT Addict
- Join Date
- Mar 2008
- Posts
- 128
But I don't see a feature on my registrar's website which lets me first define a mapping for:
ns1.directlink.com.sg <---> 182.63.78.139
ns2.directlink.com.sg <---> 182.63.78.139
All I see there is a page on which I have to define a nameserver set, like as shown in the picture here: http://i.imgur.com/x11xbk0.png
The idea is to define such a nameserver set, and then configure my website domain to use that nameserver set.
Even right now, the website URL uses my shared hosting provider's nameserver, ns1.tangohost.com & ns2.tangohost.com. And on my registrar's website, I only see control to define a nameserver set containing ns1.tangohost.com and ns2.tangohost.com. I do NOT see a feature here which lets me specify which IP(s) do ns1.tangohost.com and ns1.tangohost.com specifically go to ..
-
09-28-2013, 02:11 AM #21WHT Addict
- Join Date
- Mar 2008
- Posts
- 128
Also, please note that in my case, the registrar company is NOT the shared hosting company, OR the new VPS hosting company, in my case .. They are just a completely separate register company ..
-
09-28-2013, 02:15 AM #22Web Hosting Master
- Join Date
- Jan 2003
- Location
- SLC
- Posts
- 2,278
you should be asking your registrar these questions as no one here knows who your registrar is
-
09-28-2013, 02:40 AM #23WHT Addict
- Join Date
- Mar 2008
- Posts
- 128
I have found a 'Glue Record' feature on their site, which looks like this: http://i.imgur.com/wr71ovY.png
Is this what I need ? Any idea what 'Overwrite Legacy hosts' means, and if I need to check that option ?
-
09-28-2013, 06:45 AM #24WHT Addict
- Join Date
- Mar 2008
- Posts
- 128
^^ Waiting for a response guys ..
(Yeah I know I'm being impatient :p)
-
09-28-2013, 08:59 AM #25Aspiring Evangelist
- Join Date
- Dec 2011
- Location
- Montreal
- Posts
- 431
Who is your registrar? Is your domain a top level domain (like google.com)? Usually you just have to write:
ns1.yourdomain.com "and" 182.63.78.139
I can't tell you what you have to do if I don't have all the information about your case.
This process it is suppose to be extremely easy, depending on your registrar.
Regards
Similar Threads
-
I have a VPS hosting and a domain name, so how do I create my website now?
By TheoneAndonly in forum VPS HostingReplies: 10Last Post: 11-25-2011, 05:36 AM -
Migrate Email to Reseller Hosting (Without Domain Name)
By jczjcham in forum Reseller HostingReplies: 2Last Post: 12-08-2010, 06:38 AM -
Migrate VMware image (local) to a VPS hosting
By cyberderf in forum VPS HostingReplies: 7Last Post: 10-24-2010, 07:13 PM -
VPS or Shared Hosting for High CPU Usage Website?
By fireofgemini in forum Web HostingReplies: 16Last Post: 06-07-2010, 10:33 AM -
VPS Hosting, Shared Hosting, Reseller Hosting or Dedicated Hosting clients needed!
By RoyalSapphire in forum Other Web Hosting Related RequestsReplies: 0Last Post: 09-18-2009, 01:01 PM