There seems to be plenty of tutorials about setting up a local multi-site installation, however, I cannot seem to find any information about porting a live multi-site to a local environment.

Specifically I want to work on just one of the sites from the live setup. I am using Drupal 6. Here are the steps I have taken:

  1. I have setup a database on my local MAMP server with the same name as one of the live sites that I want to work on.
  2. I have imported the mysql dump of just the database I want (removing the others multisite sites from the dump).
  3. All site files transfered to a folder in my MAMP>htdocs>new-folder-name
  4. In new-folder-name>sites>desired-site-folder>settings.php I've set the db_url variable to mysql://root:root@localhost/dbname

What further steps do I need to take? When I navigate to the local site I get the 'It works!' message. I presume I maybe need to set up a htaccess file to redirect, but if so, how should it be formed?


1 Answer 1


Unless you've got MAMP pro, or have set it up as such (which you haven't mentioned) vhosts probably won't be enabled; Apache will be looking at MAMP > htdocs for the web root, not any folder underneath it.

Try moving the Drupal web root up one folder (i.e. directly under MAMP > htdocs) and try again

  • Thanks for your response. I don't really want all the files directly in the htdocs folder, so I have since set up a vhost pointing to the new folder. I'm still getting the 'It works!' page, any ideas?
    – tommyf
    Apr 9, 2013 at 12:14
  • If you're getting the default Apache page then the web root you're browsing is still MAMP > htdocs (not the Drupal folder). Have you restarted Apache, added a relevant entry to /etc/hosts for the new vhost?
    – Clive
    Apr 9, 2013 at 12:16
  • It's not the default apache page but the index.html page in the default Drupal set up, so the vhost is set up correctly. It seems to be from the index.html which needs some sort of redirection to use the appropriate site within the sites folder. I can't find where to tell drupal that I want a certain site's folder used from the sites folder.
    – tommyf
    Apr 9, 2013 at 12:26
  • 1
    @tommyf Just my 2 cents, but if you're not running MAMP Pro, then get a license. It's seriously the best money you or your company will spend - and it's cheap compared to the headaches it prevents :)
    – Chapabu
    Apr 9, 2013 at 14:27
  • 1
    @Clive I'm still getting the 'It works!' page. My boss is sorting MAMP Pro for me today hopefully it will work with that, I'll let you know
    – tommyf
    Apr 10, 2013 at 6:40

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.