The Basics of Multisiting

1,014 views

Published on

Presentation slides by Afraaz Ali from his Drupal Camp Vancouver 2012 session

0 Comments
1 Like
Statistics
Notes
  • Be the first to comment

No Downloads
Views
Total views
1,014
On SlideShare
0
From Embeds
0
Number of Embeds
2
Actions
Shares
0
Downloads
0
Comments
0
Likes
1
Embeds 0
No embeds

No notes for slide

The Basics of Multisiting

  1. 1. presents Introduction to Multisites A Beginners Guide Afraaz Ali– Senior Lead afraaz@appnovation.comAfraaz Ali V Saturday June 2, 2012
  2. 2. AGENDA Introduction What is multisite? Why do we use it How do we set it up? Demo Pros Cons ResourcesAfraaz Ali V Saturday June 2, 2012
  3. 3. Who am I? •  Developing with Drupal for the last 5 years •  Previously worked with CakePHP and CodeIgniter •  Last six months has been mobile development using SproutCoreAfraaz Ali V Saturday June 2, 2012
  4. 4. What we useAfraaz Ali V Saturday June 2, 2012
  5. 5. Some of Our ClientsAfraaz Ali V Saturday June 2, 2012
  6. 6. What is Multisite? Multiple sites running off one code base. Things you’ll need: A server (local server will do. With apache2) A text editor Drupal (6.x, 7.x) Drush (optional)Afraaz Ali V Saturday June 2, 2012
  7. 7. Afraaz Ali V Saturday June 2, 2012
  8. 8. Database Configuration One database, prefixed tables More for hosting accounts with limited amount of databases site1_users site2_usersAfraaz Ali V Saturday June 2, 2012
  9. 9. Database Configuration Multiple databases Separate databases for each site •  Organized and more manageable •  Tougher to separate databases out if a site needs to be moved out of the multisite setup Separate database for ONLY the shared tables •  For installs that do not exist in the default schema •  For accessing several databases from the same code base at the same time. •  More management, harder to move databases around if needed.Afraaz Ali V Saturday June 2, 2012
  10. 10. Afraaz Ali V Saturday June 2, 2012
  11. 11. Why Multisite? Code Management Cost Effective Streamlines DevelopmentAfraaz Ali V Saturday June 2, 2012
  12. 12. How do we set it up? Things we needed •  A server. I’m using my localhost •  A text editor •  Drupal install (7.14) Only a few steps away from a multisite setup •  Setting up your VirtualHost file •  Install the first site •  Install the second site •  Site specific modules/themes (optional) •  Site aliases (optional) •  Sharing database tables (optional)Afraaz Ali V Saturday June 2, 2012
  13. 13. PROS •  Code updates are made only on a single code base •  Sharing of tables across sites. •  Platform development. Develop once, deploy “n” timesAfraaz Ali V Saturday June 2, 2012
  14. 14. CONS •  Content can sometimes be tough to share across sites. We tend to have a “central” content server to get around this issue. •  Takes more time to setup the servers. •  Can get stressful on a single server architecture if you have lots of sites. •  Updating core and contributed modules means running update.php for each site. Enter Drush!Afraaz Ali V Saturday June 2, 2012
  15. 15. Resources http://drupal.org/documentation/install/multi-site http://groups.drupal.org/multisite The default/default.settings.php file (Very well documented) http://github.com/afraazaliAfraaz Ali V Saturday June 2, 2012
  16. 16. Thank You! Questions and Comments? Your Full Name – Your title youremail@appnovation.comAfraaz Ali V Saturday June 2, 2012

×