Take the 2-minute tour ×
Webmasters Stack Exchange is a question and answer site for pro webmasters. It's 100% free, no registration required.

I got a hosting account at HOSTGATOR. it was a shared account and i had three websites present over there.

now, i have upgraded my account to VPS at HOSTGATOR and i want to transfer only ONE website over the new VPS. say, mydom.net. this website includes wordpress installation and other custom pages and setup

can somebody please guide me

How can I transfer the web to my new account? with speed, accuracy, and such that my website remains in working condition..

what will I do about wordpress? simply copy it will work?(I dont thnk so), if not how can I move it?

I need guideline. and I am asking the question with a hope that many others will also learn the things just as i am learning,,

and one quick thing, answering it like creating a manual can help people a lot...that's my thinking..

thanks to all

share|improve this question
add comment

2 Answers

up vote 2 down vote accepted

Firstly, using the cpanel backup feature isn't a very good idea in this situation because there are only options to backup and restore entire cpanel accounts rather than a specific domain.

A prerequisite would be to set up the domain on the VPS. If memory serves correctly, this should be using WHM. The interface for this can get slightly confusing but the search box above the navigation helps massively here. Type 'Create' into this box, which should select 'Create a new account' for you. Click this link. The form is very self-explanatory - the username and password entered here will be the cpanel login details for the domain you enter. SAVE THESE DETAILS.

Once the domain is set up on the VPS, you will then need to go to the cpanel for the shared hosting account and take dumps of any databases and all files in the document root for the domain you wish to migrate.

The first step is simple: you must use phpMyAdmin to export the required databases. Databases used by WordPress blogs and most other CMSs can be found in the respective config files (wp-config.php in the blog directory in the case of Wordpress). One by one, select each of the databases required by the domain you wish to migrate and click 'EXPORT' in the top horizontal navigation. You may want to compress the output if your Wordpress installs are large. Either way, download the file to a safe place on your HDD.

The second step is requires you to go back to the main cpanel index page and click 'File manager'. A dialog will pop up and you must select 'Document root for' and then select the site you wish to migrate in the dropdown. Make sure 'show hidden files' is checked and click go.

This should have loaded up a file manager, with many buttons allowing you move, copy, edit and delete files. You should press 'Select all' which is the second-to-last button on the row of buttons starting with 'Home' directly above the list of files.

Once you have clicked this, you must then press the 'Compress' button which is the last button in the row of buttons starting with 'New File' found underneath the 'File Manager' heading. This will allow you to quickly create a zip of files - you should double click this in the File Manager (you may have to press 'Reload') and download it to a safe place. Delete this file in the File Manager once you have downloaded it!

Now, access the cpanel for the domain on the VPS by navigating to http://<your server IP>/cpanel and entering the details you entered when creating the account.

Firstly, create the necessary databases and corresponding users for each, noting down the details for each. Once this is done, navigate back to the cpanel index and go to phpMyAdmin. Clicking each databse, you must import the saved db dumps into each database from earlier - the button for this can be found next to the import button.

Secondly, you must navigate back to the cpanel index and go to File Manager again. In here you must click 'Upload' in the top row of buttons and find the compressed file you downloaded earlier. Once it has been uploaded to document root for the domain, you just select it and click 'Extract'. This should extract all of the site files into the document root.

If it extracts them into a sub-folder, double click on it and select all files in the folder. Select all files and then press 'Move' in the top row. This will open a dialog and you must edit the path to match the document root of the domain.

In the file manage, you will also be able to edit your config files for any of your DB driven apps. Do this by navigating through File Manager as you would otherwise, finding any config files and pressing 'Code Editor' at the top, okaying any dialogs which show.

Once this has been done, verify the site has been set up successfully by accessing it from http://<your server ip>/~<the cpanel username>. This may not working if your website relies on using a domain as opposed to working relative to the folder it is in. This will still allow you to check if your DB apps are connecting to the databases as required.

Once all this has been done and verified to be working correctly, you should switch the nameservers of that domain to the VPS' nameservers.

I hope this helps and please let me know if there's anything that doesn't make sense!

share|improve this answer
    
Its really awesome..I like the way you explain the things..Gr8.. –  N e w B e e Apr 1 '12 at 0:08
    
Will try to follow the steps one by one..if I found a problem...I will tell you..thanks man –  N e w B e e Apr 1 '12 at 0:09
add comment
  • CPanel has an export and import websites. That's probably the easiest and fastest way to do it.

  • When I got a dedicated server with Hostgator they helped migrate my websites from Rackspace to it. I don't know if they offer that fr VPS accounts but if they do that would be even better.

  • if those two options aren't possible all you need to do is move your files and database over to the new server. Any software that full system paths in their configuration may need to be updated and you also need to recreate any system users required for the site to run (mysql users, etc).

share|improve this answer
    
thanks for the help..the Question was brought here with 2 intensions, first to resolve my issue and get guideline from experts and 2nd was to create a manual or step by step guide so some1 else can get benefit from this question in future...I would really appreciate you, if you make it more explanatory(like giving exact options ...eg from where we can export website in cpanel). an other suggesion and request is that you make it point by point –  N e w B e e Mar 31 '12 at 21:55
    
This site isn't actually suited for step-by-step guide kind of questions. They're considered too broad. What you should have done is researched this problem and then asked specific question for parts you didn't understand. It's great that James W. Dunne provided such a detailed answer but usually these kind of questions get downvoted and/or just closed. –  John Conde Apr 1 '12 at 2:16
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.