What Multisite can do for You - Anthony Cole - WordCamp Sydney 2012

1,259 views

Published on

Anthony Cole at WordCamp Sydney 2012 takes us through using Multisite in a commercial scenario

Published in: Technology, Business
0 Comments
2 Likes
Statistics
Notes
  • Be the first to comment

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

No notes for slide

What Multisite can do for You - Anthony Cole - WordCamp Sydney 2012

  1. 1. What Multisite Can Do For You Anthony Cole, WordCamp Sydney | 21 July 2012
  2. 2. WordPress Multisite• Used to be called MU, separate codebase• Introduced to “core” in 3.0• Used by everyone from the New York Times to Melbourne University• We’re talking about it the context of use by an agency
  3. 3. My Background• First Job: Lead Developer, Agency in Melbourne• Lots of WordPress.
  4. 4. Then, one day...• “We have ten sites that need to be upgraded”
  5. 5. • “Why don’t we use WordPress Multisite? I know how to do that”
  6. 6. NOT RLY
  7. 7. But Why?• Centralised• Easy to upgrade• Efficient, Cost effective
  8. 8. Ask yourself...• What are you trying to do?• Overcomplication• Overheads - is it cost effective?
  9. 9. “Take the red pill”• Web Hosting • ????• US vs. Australia • Who is your target audience?
  10. 10. Hosting• Australia • VPS or Shared - I prefer VPS• United States • WP Specialists - US based. • WPEngine or Page.ly - Multisite • Page.ly: Enterprise plans, WPEngine supports it out of the box
  11. 11. What I did• Australian Traffic• I wanted fine grained control over our hosting
  12. 12. Story Time• One Friday night.... • Server went down at 4AM • CPU Bug, not anything to do us • Pretty lights
  13. 13. My Philosophy• Keep it simple• Don’t overcomplicate• Do as little as possible
  14. 14. What happens if you make things complicated• It might work, but stability is important
  15. 15. A few small things• Pingdom - DNS/HTTP Checks• DNS - Externally Managed• Web Monitoring • Munin & Monit
  16. 16. Let’s Setup Multisite• wp-config.php
  17. 17. Setup Continued
  18. 18. Tools → Setup Multisite
  19. 19. Setup Continued• “Setup Network”• Subdomains or Subfolders? • - Subdomains - you’ll need wildcard DNS and to configure Apache and nginx
  20. 20. Basic MS Stuff• Network Admin UI• When you’re developing plugins, ms- functions.php is your friend• mu-plugins - autoloads everything• http://wp.smashingmagazine.com/ 2011/11/17/wordpress-multisite-practical- functions-methods/
  21. 21. Remember...• Keep it simple
  22. 22. Environments• Two environments, exact clones • Development • Production
  23. 23. Multisite Health• VCS • Use Git or SVN, just something • Nothing is bad • We used git
  24. 24. Deployment• Good for complex WordPress setups• Capistrano • WP-Stack - https://github.com/ markjaquith/WP-Stack • WordPress-Skeleton - https://github.com/ markjaquith/WordPress-Skeleton
  25. 25. Structure is Function• multisitewp = repo • two submodules • ms-plugins - Everything was thrown in • ms-themes - twentyten and twentyeleven • themes were submodules of ms-themes
  26. 26. End Result• A bit messy. Git’s handling of submodules isn’t too good.• If I could go back and do it again, I’d use braid and build a tool to manage dependencies
  27. 27. Braid• Ruby gem for dependency management• Supports git and SVN• external management• http://github.com/evilchelu/braid/
  28. 28. Caching• KEEP IT SIMPLE
  29. 29. What some plugins claim...
  30. 30. LOL
  31. 31. Keep it simple• wp-super-cache• APC opcode cache drop in
  32. 32. Uptime• Pingdom - HTTP and DNS
  33. 33. Backups• BackupBuddy - basic • But not ideal• Ruby script on github that I forked and modified, uses S3 and run on a cron • link to script
  34. 34. Hold Up• What if someone hacks my server?• Better way: Use an external EC2 instance
  35. 35. Plugins• ALL THE PLUGINS
  36. 36. Awesome Plugins• New Blog Defaults http://wordpress.org/ extend/plugins/wpmu-new-blog-defaults/• Theme Stats - http://wordpress.org/extend/ plugins/wordpress-mu-theme-stats/• WP Debug Bar & Debug Bar Extender• Domain Mapping - http://wordpress.org/ extend/plugins/wordpress-mu-domain-
  37. 37. Resources• http://codex.wordpress.org/ Create_A_Network• http://wp.smashingmagazine.com• http://wpcandy.com
  38. 38. Andrea and Ron Rennick• Awesome people• @andrea_r and @wpmuguru• Networks+ Plugin• Awesome Resources• http://wpmututorials.com/
  39. 39. What I do• So, what do I do now?• I took the red pill • Run my own agency • kosmonaut.com.au • @ksmnaut
  40. 40. Me• anthonycole.me• @anthonycole• anthony@kosmonaut.com.au
  41. 41. Thanks• I love you all

×