Drupal Multi-Site Setup

Loading...

Flash Player 9 (or above) is needed to view presentations.
We have detected that you do not have it on your computer. To install it, go here.

0 comments

Post a comment

    Post a comment
    Embed Video
    Edit your comment Cancel

    1 Favorite

    Drupal Multi-Site Setup - Presentation 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?
      • Using one install (or codebase) of Drupal but having more than one site use that same codebase.
    5. Single Codebase
    6. Multi-Site Structure
    7. What's the alternative?
      • Running separate installations of Drupal for each site.
    8. Separate Installations Site 1 Site 2
    9. Advantages
      • Shared codebase means all sites are using the same version.
      • 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.
      • Modules/Themes can be shared across sites or they can have their own modules/themes.
    10. Disadvantages
      • Updating Drupal core means all sites need to be put offline for the update.
      • 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)
    11. How does Drupal determine which site to load?
    12. 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
    13. How to handle the database(s)?
      • Two options
        • One database with different prefixed tables.
        • 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.
    14. Quick Demo
    15. Helpful Tips
      • Write an Installation Profile(s)
        • HOWTO: Write an Installation Profile - http://drupal.org/node/67921
        • Profile Generator - http://drupal.org/project/profile_generator
        • 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
    16. 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'.
    17. Resources
      • Run Multiple Sites from a single code base - http://drupal.org/getting-started/6/install/multi-site
      • Multi-Site Group - http://groups.drupal.org/multisite
      • Multi-Site Installation and Setup Links - http://drupal.org/node/43816
      • How To: Multisites vs. Multiple Sites - http://gotdrupal.com/videos/multisites-vs-multiple-sites
    18. Resources
      • Sharing Users and content across multiple sites - http://drupal.org/node/201673
      • Drush - http://drupal.org/project/drush
      • Aegir - http://groups.drupal.org/aegir-hosting-system
    19. Questions?
    20. Thanks for listening! Have a nice Day! :)

    + ylynfattylynfatt, 5 months ago

    custom

    1922 views, 1 favs, 3 embeds more stats

    Slides from a presentation I did on Multi-Site Setu more

    More info about this document

    © All Rights Reserved

    Go to text version

    • Total Views 1922
      • 1724 on SlideShare
      • 198 from embeds
    • Comments 0
    • Favorites 1
    • Downloads 29
    Most viewed embeds
    • 196 views on http://godbit.com
    • 1 views on applewebdata://C9B74063-62DE-42CF-9F77-7DB59C19A47B
    • 1 views on http://74.125.93.132

    more

    All embeds
    • 196 views on http://godbit.com
    • 1 views on applewebdata://C9B74063-62DE-42CF-9F77-7DB59C19A47B
    • 1 views on http://74.125.93.132

    less

    Flagged as inappropriate Flag as inappropriate
    Flag as inappropriate

    Select your reason for flagging this presentation as inappropriate. If needed, use the feedback form to let us know more details.

    Cancel
    File a copyright complaint
    Having problems? Go to our helpdesk?

    Categories