I just did this and thought I should write it up for posterity.
The plan is to move a Drupal site from a development server
account and development URL to the live production account and new URL.
Moving a Drupal site is even easier that moving WordPress.
First caveat: the original domain and new domain are both
hosted by the same hosting company. Moving to a different hosting company may require additional steps.
Second caveat: both sites were set up using the Simple Scripts "one-click-install" system.
1. Back up the /sites/all/modules directory at
www.olddomain.com (I used a simple Filezilla FTP program. There might be faster methods of doing this.
2. Back up the /sites/all/themes directory at
www.olddomain.com (see above).
3. Go to your new hosting account and use the "Simple Scripts" one-click-install to create a default Drupal site. You should have a bare bones Garland themed site that works. Disable Clean URLs if it's currently enabled.
4. Upload the directory you made at point one to /sites/all/modules under
www.newdomain.com (
don't make any changes to the enabled modules screen)
5. Upload the directory you made at point two to /sites/all/themes under
www.newdomain.com (
don't make any changes to the enabled themes).
6. Go to you
www.olddomain.com site and disable Clean URLs (not completely sure if this is necessary, but this is what i did and it works for me)
7. Go into
www.olddomain.com Drupal site and click through to Administer/Site Configuration/Performance. Clear cached data.
8. Go to phpMyAdmin and find the database for
www.olddomain.com (to state the bleeding obvious, make sure its the right db!). Select all the tables.
9. Click on the Export Tab. Most of the defaults should be Ok. But make sure you have the following checked "Structure" and "Data". You will probably need to also check "add DROP TABLE /VIEW/PROCEDURE/FUNCTION/EVENT". This just drops any tables that conflict in the existing database of
www.newdomain.com
10. Click "Go". You should be asked to download an sql file.
11. Use phpMyAdmin Import tab to import your new sql file to
www.newdomain.com. You should get a "success" message in green.
12. You should be able to log into
www.newdomain.com (using the admin name and password from
www.olddomain.com) and re-enable clean URLs.
13. Go to refridgerator and search for cold beer. Sit back and relax.
Note:
If you get an error message something like this:
Fatal error: Allowed memory size of 33554432 bytes exhausted (tried to allocate 7680 bytes) in /home6/southdes/public_html/modules/user/user.admin.inc on line 884
the simplest fix is to go to your Drupal settings file in /sites/default/settings.php
You might need to change the file attributes and change it to 666, writeable.
In the settings.php find the section on php settings and add this line to the end
ini_set('memory_limit', '64M');
overwrite the existing settings.php file and refresh your Drupal page and you should be good to go.
Footnote:
Also don't forget your /sites/default/uploads/ folder if you have any images that need migrating.