Take the 2-minute tour ×
Unix & Linux Stack Exchange is a question and answer site for users of Linux, FreeBSD and other Un*x-like operating systems.. It's 100% free, no registration required.

I am a Linux Newbie. I have a VPS with CentOS installed at my ISP and I am managing it remotely.

Up to this point, I have had shared webhosting on a Linux machine at my ISP where I had CPANEL installed to manage my mail, ftp, mysql etc..

Now I want to move everything to my VPS: So how do I do the following:

  • Install CPANEL on my VPS and access it remotely from my Web Browser?
  • Point my Domain name to my VPN static IP address?
  • Mail server to point to my static IP? Do I need to setup a new Mail server on the VPS or is that managed by CPANEL?
  • Do I need to install a DNS server on my VPS or how does it work? (relates to point nr 2)
share|improve this question
1  
You need to register your domain with a domain registrar, which is generally a paid (but very cheap) service. Installing a DNS server on your VPS won't work, because other people need to connect your IP to your domain name first. –  TAFKA 'goldilocks' Jul 6 '13 at 11:28
    
OK I have registered the domain at my ISP, but the domain name points to servers they set up with my initail shared hosting web package. How do I change the record on the DNS servers to point to my static IP? thanks –  DextrousDave Jul 6 '13 at 13:30
1  
The DNS record at the registrar has to be be changed to reflect the new IP address. I believe the primary record often contains the address of a smaller DNS server (eg, at your ISP) which resolves the exact address. Anyway, if you registered at your ISP, then you have to get the record there changed. You can't do it, you have to ask them or use whatever automated interface they provide for such. –  TAFKA 'goldilocks' Jul 6 '13 at 14:12
    
Cool thank you. Please see my answer I am adding below, just for the ease of use of the editor... –  DextrousDave Jul 6 '13 at 14:36
add comment

2 Answers

up vote 0 down vote accepted

Update:

Since I have an existing Shared Hosting Account at my ISP, I have CPanel installed there.

Now, in CPanel as well as my Account Interface/Manager at the ISP, that my domain name points to their DNS servers, that contains the record (the ip address the domain name resloves to)

Now, inside CPanel, under "Advanced DNS Zone Editor", I can change the IP addresses all the domain names point to: eg. mydomain.com, smtp.mydomain.com, pop.mydomain.com, ftp.mydomain.com etc...

There I can point the domain names to my VPS Static IP address. So I believe that CPanel on the Shared Hosting Server integrates with their DNS record...so I can update it like it.

So, I believe my assumption is correct to say: When I remove my shared hosting account, there is no way I can change the DNS record for my domain name myself, but I will have to contact them to request them to change the records on their DNS servers - So that my domain name, that is registered with them, will point to my VPS static IP address.

Could you confirm if I understand this correctly?

Thanks

share|improve this answer
add comment

In order to migrate your website or domain across the server (From shared server to VPS), Its better to take a full account cPanel backup from your old shared server with the help of cPanel. Either you can send that straight away using scp to other server or manually. The manual way is, First create backup on the document root and wget to the new VPS.

wget domain.com/backupfile.tar.gz

Move this to VPS home folder (/home)

After this you can restore the package with WHM or cPanel script.

Using WHM

Home »Transfers >> Copy Multiple Accounts/Packages From Another Server

Using scripts

/scripts/restorepkg backupfile.tar.gz (make sure backupfile.tar.gz in /home)

If you haven't installed cPanel in your VPS yet, Please follow the steps to install

cd /home

wget -N http://httpupdate.cpanel.net/latest

chmod +x sh latest

sh latest

If you have any doubts in this, Better to check this link cPanel_installation

Now other issue is your DNS. What ever the name server you are using, Point that readily to the VPS(from corresponding registrar end) so that you can change the DNS even after the shared account killed.

Make sure that all the accounts(domains) are working perfectly in the VPS before switching the name server IP. You can check the domains with temp URL to make sure that its working perfectly. Otherwise you may get downtime to your domains.

VPS_IP/~account_name/ from local browser

This is the temporary URL format.

let me know if you need any more advices.

share|improve this answer
    
wget domain.com/backupfile.tar.gz temp URL (VPS_IP/~account_name) –  LPince Jul 13 '13 at 22:47
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.