I have completed developing my Drupal site using Mamp as my localhost.

Now, I want to migrate to a hosting company that supports Drupal-- perhaps bluehost.com.

I know that I will need to copy the database, and i have already done so.

My question:
--------------

What is bothering me is how to transfer my actual Drupal site: the contents in sites>default.

Should I make a copy of the 'sites' folder and then replace that with the 'sites' folder that is installed using 'simplescripts' on bluehost.com (just an example. I 'm not endorsing anyone)?

I'm really puzzled about this whole how to put my finished Drupal site online. Please help. This is my first Drupal site ever.

Thanks.

Comments

bookwalla’s picture

anyone?

Chad_Dupuis’s picture

You want to make a backup of your database and upload it to your new server (test this part first). On some hosts you may have to contact them to upload the database depending on the size because of php time outs in phpmyadmin or whatever tool they use.

Then you want everything in the "htdocs" "public_html" (whatever it is called on your end) folder - not just sites/default - ( all files, and all directories - files, misc, includes, etc.) just zip the entire branch (unless you have other stuff in there) and move this over to the new server. Generally in cpanel you can do a backup then download it to your computer and then move it to your new server (this way you have a local backup as well). You want the version of drupal you set everything up with not whatever version may or may not be on your other server...

If things don't work after the move you will want to check the settings in settings.php to make sure your database name and password, etc. are correct and you might have to adjust some settings in .htaccess for your new server if you did any customizations. Generally, however, this is pretty straightforward.

qler’s picture

Why do you think you need to transfer the sites/default only? That's not the right way to do it unless you already have a drupal installation in place and you're just making modifications or something. Do you already have a drupal installation in place on your remote server?

bookwalla’s picture

thanks guys. i figured it out. :)

jaspher’s picture

What did you do?

---
my blog