Upgrade to Pro — share decks privately, control downloads, hide ads and more …

What Multisite Can Do for you

What Multisite Can Do for you

My presentation at WordCamp Sydney talking about WordPress Multisite

Anthony Cole

July 21, 2012
Tweet

More Decks by Anthony Cole

Other Decks in Technology

Transcript

  1. 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 a web agency Sunday, 22 July 12
  2. My Background • First Job: Lead Developer, Agency in Melbourne

    • Lots of WordPress. Sunday, 22 July 12
  3. Then, one day... • “We have ten sites that need

    to be upgraded” Sunday, 22 July 12
  4. Ask yourself... • What are you trying to do? •

    Overcomplication • Overheads - is it cost effective? Sunday, 22 July 12
  5. “Take the red pill” • Web Hosting • ???? •

    US vs. Australia • Who is your target audience? Sunday, 22 July 12
  6. 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 Sunday, 22 July 12
  7. What I did • Australian Traffic • I wanted fine

    grained control over our hosting Sunday, 22 July 12
  8. Story Time • One Friday night.... • Server went down

    at 4AM • CPU Bug, not anything to do us • Pretty lights Sunday, 22 July 12
  9. My Philosophy • Keep it simple • Don’t overcomplicate •

    Do as little as possible Sunday, 22 July 12
  10. What happens if you make things complicated • It might

    work, but stability is important Sunday, 22 July 12
  11. A few small things • Pingdom - DNS/HTTP Checks •

    DNS - Externally Managed • Web Monitoring • Munin & Monit Sunday, 22 July 12
  12. Setup Continued • “Setup Network” • Subdomains or Subfolders? •

    - Subdomains - you’ll need wildcard DNS and to configure Apache and nginx Sunday, 22 July 12
  13. 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/ Sunday, 22 July 12
  14. Multisite Health • VCS • Use Git or SVN, just

    something • Nothing is bad • We used git Sunday, 22 July 12
  15. Deployment • Good for complex WordPress setups • Capistrano •

    WP-Stack - https://github.com/ markjaquith/WP-Stack • WordPress-Skeleton - https://github.com/ markjaquith/WordPress-Skeleton Sunday, 22 July 12
  16. Structure is Function • multisitewp = repo • two submodules

    • ms-plugins - Everything was thrown in • ms-themes - twentyten and twentyeleven • themes were submodules of ms-themes Sunday, 22 July 12
  17. 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 Sunday, 22 July 12
  18. Braid • Ruby gem for dependency management • Supports git

    and SVN • external management • http://github.com/evilchelu/braid/ Sunday, 22 July 12
  19. Backups • BackupBuddy - basic • But not ideal •

    Ruby script on github that I forked and modified, uses S3 and run on a cron • https://github.com/anthonycole/simple- s3-backup Sunday, 22 July 12
  20. Hold Up • What if someone hacks my server? •

    Better way: Use an external EC2 instance Sunday, 22 July 12
  21. 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 - http:// wordpress.org/extend/plugins/debug-bar/ • Domain Mapping - http://wordpress.org/extend/ plugins/wordpress-mu-domain-mapping/ Sunday, 22 July 12
  22. Andrea and Ron Rennick • Awesome people • @andrea_r and

    @wpmuguru • Networks+ Plugin • Awesome Resources • http://wpmututorials.com/ Sunday, 22 July 12
  23. What I do • So, what do I do now?

    • I took the red pill • Run my own agency • kosmonaut.com.au • @ksmnaut Sunday, 22 July 12