Occasionally it is important to work on a local development machine. For this task I often use the xampp package, which mirrors a standard lamp stack.
To migrate an existing remote drupal site do the following:
- install xampp at c:\xampp
- modify c:\xampp\apache\conf\httpd.conf
- the line 'Listen 80' to 'Listen 88'
- If you had Clean URLs on your remote site (i.e. localhost/drupal/admin instead of localhost/drupal/?q=admin)
- #LoadModule rewrite_module modules/mod_rewrite.so' to ' LoadModule rewrite_module modules/mod_rewrite.so' (take out the #)
- AllowOverride None to AllowOverride All
- start apache and mysql from the xampp interface (you may need to change mysql configuration)
- copy over the following folders to a new 'drupal_remote_site' folder on your local machine
- Themes
- Modules
- Files
- if you don't already have the Backup and Migrate module on your remote machine, install it
- backup your database on the remote machine, copy this into the local folder 'drupal_remote_site'
- install the same version of drupal on your local machine which you had on your remote -- note: this downloads as a tarball which must be expanded and copied into within c:\xampp\htdocs\drupal (rename the copied folder as drupal from drupal-6.5 for instance)
- copy in your themes, modules, and files folder into this new drupal folder
- go to http://localhost:88/drupal/install.php, this will install necessary tables,etc. into the db
- now enable the Backup and Migrate module on the local machine
- use the 'Restore/Import DB' tab in drupal to import your db
- voila, all should be back to normal
2 comments:
there is some issue here with image cache that I do not yet understand
I think this might be due to temp file upload settings, which would differ by php.ini
Post a Comment