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.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

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
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

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

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.
{"cc_re__cc_re__cc_by_sa_3_0": ["                    <li><a href=\"//area51.stackexchange.com\" title=\"proposing new sites in the Stack Exchange network\">Area 51</a></li>\r\n                        <li><a href=\"//careers.stackoverflow.com\">Stack Overflow Careers</a></li>\r\n                    \r\n                </ol>\r\n            </td>\r\n    </tr>\r\n</table>\r\n                </div>\r\n            </div>\r\n            <div id=\"copyright\">\r\n                site design / logo &#169; 2016 Stack Exchange Inc; user contributions licensed under <a href=\"https://creativecommons.org/licenses/by-sa/3.0/\" rel=\"license\">cc by-sa 3.0</a> \r\n                with <a href=\"http://blog.stackoverflow.com/2009/06/attribution-required/\" rel=\"license\">attribution required</a>\r\n            </div>\r\n            <div id=\"svnrev\">\r\n                rev 2016.5.25.3613\r\n            </div>\r\n                <div id=\"additional-notices\">\r\n                    Linux is a registered trademark of Linus Torvalds. UNIX is a registered trademark of The Open Group. <br>This site is not affiliated with Linus Torvalds or The Open Group in an"], "copyright__copyright__copyright": ["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.\n\nVPS_IP/~account_name/ from local browser\n\nThis is the temporary URL format.\n\nlet me know if you need any more advices.\n\nshare|improve this answer\n\nYour Answer\n\n\u00a0\ndiscard\n\nBy posting your answer, you agree to the privacy policy and terms of service.\n\nNot the answer you're looking for? Browse other questions tagged or ask your own question."]}