Check your version

This video covers a topic in Drupal 7 which may or may not be the version you're using. We're keeping this tutorial online as a courtesy to users of Drupal 7, but we consider it archived.

Use a Local Development Environment with Multisite

Video loading...

Join Drupalize.Me to watch this video

Join today and gain instant access to our entire video library.

Log in Sign up
  • 0:03
    with Addison Berry
  • 0:04
    One of the difficulties
  • 0:05
    of working with multisite that you might not be aware of until you get
  • 0:08
    trapped in it is trying to work locally
  • 0:11
    or on a development site with your multisite installation.
  • 0:15
    Everything is set up just so, dependent on the web server.
  • 0:19
    So you have your domain names, your Apache web server, virtual hosts.
  • 0:23
    Everything needs to point to the right place
  • 0:25
    on the right server in order for this to work.
  • 0:29
    That can cause some problems when you move it to another site,

Use a Local Development Environment with Multisite

Loading...

If we want to do development work on the university multisite, we need to do a few things to have this run smoothly in a local development environment with all of those URLs. The sites.php file is going to let us define aliases for the site configuration folders in /sites. In this tutorial we'll explain why local development with multisite is tricky, and how to get it set up properly.

Additional resources: 

example.sites.php (api.drupal.org)