Drupal Multi-Site Setup
Upcoming SlideShare
Loading in...5
×

Like this? Share it with your network

Share

Drupal Multi-Site Setup

  • 29,397 views
Uploaded on

Slides from a presentation I did on Multi-Site Setups in Drupal at the Jamaica Drupal Group on June 20, 2009

Slides from a presentation I did on Multi-Site Setups in Drupal at the Jamaica Drupal Group on June 20, 2009

More in: Technology
  • Full Name Full Name Comment goes here.
    Are you sure you want to
    Your message goes here
  • http://landike.blogspot.com/2010/10/multisite-multigroup-system.html

    Here is requirements for certain Multisite.

    Want to choose best way to satisfy these requirements.

    So Can you tell me what is the best? Aegir, Spaces, Usual Domain Access multisite system, OpenAtrium, Organic Group?
    Are you sure you want to
    Your message goes here
No Downloads

Views

Total Views
29,397
On Slideshare
28,769
From Embeds
628
Number of Embeds
10

Actions

Shares
Downloads
350
Comments
1
Likes
11

Embeds 628

http://godbit.com 464
http://www.slideshare.net 101
http://drupal.mogensring.dk 42
http://localhost 11
http://webcache.googleusercontent.com 4
http://www.linkedin.com 2
http://74.125.93.132 1
http://translate.googleusercontent.com 1
http://www.hanrss.com 1
applewebdata://C9B74063-62DE-42CF-9F77-7DB59C19A47B 1

Report content

Flagged as inappropriate Flag as inappropriate
Flag as inappropriate

Select your reason for flagging this presentation as inappropriate.

Cancel
    No notes for slide

Transcript

  • 1. Drupal Multi-Site Setup
  • 2. Yannick Lyn Fatt axle_foley00 on drupal.org Who am I?
  • 3. Where do I work? The University of the West Indies at Mona, Jamaica
  • 4. What's a Multi-Site?
  • 5.
      Using one install (or codebase) of Drupal but having more than one site use that same codebase.
  • 6. Single Codebase
  • 7. Multi-Site Structure
  • 8. What's the alternative?
  • 9.
      Running separate installations of Drupal for each site.
  • 10. Separate Installations Site 1 Site 2
  • 11. Advantages
    • Shared codebase means all sites are using the same version.
    • 12. One big upgrade of drupal core can be done as opposed to updating the core code for separate installations each of which could be a different version of Drupal.
    • 13. Modules/Themes can be shared across sites or they can have their own modules/themes.
  • 14. Disadvantages
    • Updating Drupal core means all sites need to be put offline for the update.
    • 15. Updating core and contrib modules, means running update.php for each site in your Multi-Site setup. (though you might be able to use Aegir/Drush to run update.php for all sites in one go)
  • 16. How does Drupal determine which site to load?
  • 17. For example, for a fictitious site installed at http://www.drupal.org/mysite/test/, the 'settings.php' is searched in the following directories: 1. sites/www.drupal.org.mysite.test 2. sites/drupal.org.mysite.test 3. sites/org.mysite.test 4. sites/www.drupal.org.mysite 5. sites/drupal.org.mysite 6. sites/org.mysite 7. sites/www.drupal.org 8. sites/drupal.org 9. sites/org 10. sites/default
  • 18. How to handle the database(s)?
    • Two options
      • One database with different prefixed tables.
      • 19. Separate databases for each site in the Multi-site.
    • Which is better?
      • It's up to you and the resources available to you. We chose separate databases.
  • 20. Quick Demo
  • 21. Helpful Tips
    • Write an Installation Profile(s)
      • HOWTO: Write an Installation Profile - http://drupal.org/node/67921
      • 22. Profile Generator - http://drupal.org/project/profile_generator
      • 23. Install Profile API - http://drupal.org/project/install_profile_api
    • Write some scripts for common tasks
      • Drush/Aegir might be able to do some of this already
  • 24. Helpful Tips
    • Set some conventions and follow them.
      • e.g. databases are named by the 'sitename' and users created for each database with the name 'sitename_user'.
  • 25. Resources
    • Run Multiple Sites from a single code base - http://drupal.org/getting-started/6/install/multi-site
    • 26. Multi-Site Group - http://groups.drupal.org/multisite
    • 27. Multi-Site Installation and Setup Links - http://drupal.org/node/43816
    • 28. How To: Multisites vs. Multiple Sites - http://gotdrupal.com/videos/multisites-vs-multiple-sites
  • 29. Resources
    • Sharing Users and content across multiple sites - http://drupal.org/node/201673
    • 30. Drush - http://drupal.org/project/drush
    • 31. Aegir - http://groups.drupal.org/aegir-hosting-system
  • 32. Questions?
  • 33. Thanks for listening! Have a nice Day! :)