SlideShare a Scribd company logo
@taylor4484 #multisite #WCSEA
Multisite Network
Do’s & Don’ts
Experiences From Some
Enterprise Solutions
presented by Taylor McCaslin
at WordCamp Seattle March 28, 2015
@taylor4484 #multisite #WCSEA
Product Manager
UX Designer
Interaction Designer
BA Theatre & Dance
Certificates in Business, Computer Science,
Digital Art & Media
Taylor McCaslin
@taylor4484 #multisite #WCSEA
Disclaimer
● My advice is based on my experience with what has worked
for me in the past
● Every project is unique
● There is an exception to every rule I makeup
● Plugins will do everything I say multisite won’t or shouldn’t
@taylor4484 #multisite #WCSEA
What people are saying
● “I tried to use multisite to manage multiple sites and just
got myself confused”
● “Multisite is amazing, why would anyone not use it?”
● “Multisite is hard”
● “We had a project that was running multisite and we
converted it to a standard wordpress install”
● “I don’t use anything but multisite”
@taylor4484 #multisite #WCSEA
How it’s being used
“multisite is now a utility for managing multiple sites using
one installation, where as the original vision was to enable
blogging networks“
@jjj on make.wordpress.org/core
WordPress Multisite Network Do’s & Don’ts
Multisite
@taylor4484 #multisite #WCSEA
What is Multisite?
● A multisite network is a collection of sub-sites that all
share the same single WordPress installation
● Terminology
○ Install: an instance or installation of WordPress
○ Network: a set of websites that operate within the single WordPress
install configured for multisite
○ Site: one of the subsites on the multisite network
@taylor4484 #multisite #WCSEA
What ISN’T Multisite?
● A network of sites that can be moved to separate hosts
○ 1 host. 1 install of WordPress. Many sites.
● A set of sites that can easily be separated into their own
WordPress installs
○ just trust me here. modifying serialized data is not fun
● A set of sites that can have different IP addresses
○ see the first point
@taylor4484 #multisite #WCSEA
The Network Admin
@taylor4484 #multisite #WCSEA
Open or Closed Site?
● Terminology is hard…. and confusing.
Public Network / Untrusted
● Anyone can signup and create a site
(sometimes paid)
o WordPress.com
o Happytables.com
o University Student Blogs
● Concerts:
o file types / uploads
o scripts/embeds
o copyright
o DMCA
Private Network / Trusted
● Limited site and user creation
o Wordcamp.org
o Company intranets
o University network
 colleges ,department, etc
● Concerns:
o too many cooks (wanting super admin)
o or none at all (no one to manage network)
o code changes affect all sites!
@taylor4484 #multisite #WCSEA
Subfolders, Subdomains and Domain Mapping
● 1 primary network domain
o sub-domain (I prefer this one)
 mysite.com
 site2.mysite.com
 site3.mysite.com
o sub-folder
 mysite.com/site1
 mysite.com/site2
 mysite.com/site3
● Domain Mapping
o wordpress.org/plugins/wordpress-mu-domain-mapping/
 sunrise.php
o Pro-tip: Always use CNAMES!
o Premium plugins exist for selling domains to users
(wpmudev.org)
@taylor4484 #multisite #WCSEA
Unified Site Management
● Super Admin Role
● manage_network
● manage_sites
● manage_network_users
● manage_network_plugins
● manage_network_themes
● manage_network_options
● unfiltered_html
codex.wordpress.org/Roles_and_Capabilities
@taylor4484 #multisite #WCSEA
Shared Users
● All blogs have central user management
● Users login once to access all sites on the network
o Doesn’t play well with alternative login plugins (Duo2, 2FA, Google
Auth) - you’ll login for every site
● Caution: User profiles are the same for all sites
@taylor4484 #multisite #WCSEA
Shared Themes
● Add a theme
o Network Enable (all sites)
o Restrict themes available to
use per site
 Done through the Site -> Edit Site
menu
● Remember to add Child
Themes!
@taylor4484 #multisite #WCSEA
Shared Plugins
● Install plugin on the network
o Activate per site
o Network Activate
● Must Use Plugins
o Can’t be deactivated through the admin
● Caution: Some plugins have their own network settings!
@taylor4484 #multisite #WCSEA
File Structure Differences
❏ / root of
WordPress Install
❏ wp-config.php has extra lines
❏ .htaccess has extra lines
❏ wp-content has extra subfolders
@taylor4484 #multisite #WCSEA
❏ /wp-content/uploads
❏ /2015/
❏ /2014/
❏ /sites/
your primary (first site) site’s media directories
File Structure Differences
❏ 2 ← site ids (second site you made)
❏ /2015/
❏ /2014/
❏ 3
/2015/
/2014/
❏ ...
Pro tip: rely on host to
allow you to grant your
site admins access to
only specific site
directories
@taylor4484 #multisite #WCSEA
DB Structure Differences
● 17 tables instead of 11
● 6 extra tables:
○ wp_blogs
○ wp_blogs_versions
○ wp_sitemeta
o wp_site
o wp_signups
o wp_registration_log
● 9 prefixed tables per every new site!!!
○ wp_6_posts ← prefixed with site id
○ wp_posts ← first site isn’t prefixed
@taylor4484 #multisite #WCSEA
Tables in ONE multisite DB
8 + (9 * n) where n is number of sites
1 site = 17 tables
10 sites = 98 tables
100 sites = 908 tables
1,000 sites = 9,008 tables
10,000 sites = 90,008 tables
@taylor4484 #multisite #WCSEA
Hosting
● Use a managed host
● Pro-Tips:
o automatic backups with 1 click restore (ability to download backup)
o built in staging sites (that magically with the networked sites)
o granular deploy to production controls (deploy only specific tables)
o look for extra security features (automatic ip blacklisting)
o know limitations (some hosts don’t allow subdomains or subfolders)
o use version control
● MMSN (massive multisite network)
o plan to spend $$$$ or hire a sysadmin
@taylor4484 #multisite #WCSEA
Pro Dev Tips
● define( 'DISALLOW_FILE_MODS', true );
o disable the Admin File Editor
● define( 'DO_NOT_UPGRADE_GLOBAL_TABLES', true );
o Prevents upgrade functions from doing expensive database queries on
global tables
● add_action( ‘network_admin_menu’, ‘my-settings’ );
o add extra submenus and menu options to the network admin panel'
@taylor4484 #multisite #WCSEA
Pro Dev Don'ts
● current_user_can(‘unfiltered_html’)
o Just don’t. You will regret this.
● loop through your network sites
o Unless you know what you’re doing, you’ll cripple your site performance,
if not crashing your site altogether.
@taylor4484 #multisite #WCSEA
Use Cases
Experiences From Some
Enterprise Solutions
@taylor4484 #multisite #WCSEA
To multisite or not?
“I want to allow users to create their own sites within some
constraints”
@taylor4484 #multisite #WCSEA
To multisite or not?
“I want to allow users to create their own sites within some
constraints”
● Use Multisite!
o This is what multisite was made to do, and it does it well!
● Pro-Tip: customize the admin!
o WordPress.com
o Happytables.com
@taylor4484 #multisite #WCSEA
To multisite or not?
“I want to centrally manage all my client’s sites”
@taylor4484 #multisite #WCSEA
To multisite or not?
“I want to centrally manage all my client’s sites”
● Don’t use Multisite
● Alternatives:
o Jetpack Site Management (update plugins across your site)
o Manage WP (premium)
o Infinite WP (free with paid addons)
o WP-CLI (script your way to site nirvana)
@taylor4484 #multisite #WCSEA
To multisite or not?
“I want to have a multisite network where each site is in a
different language”
@taylor4484 #multisite #WCSEA
To multisite or not?
“I want to have a multisite network where each site is in a
different language”
● Maybe Multisite, Maybe Not
● SEO optimization can be difficult when similar content is
across a network of sites
o Pro-tip: hreflang tags and canonical links are your friend
● Plugins like WPML are built specifically to do this
@taylor4484 #multisite #WCSEA
To multisite or not?
“I have a lot of content that is very different, and I want all my
sites to look different, but it’s still all my stuff”
@taylor4484 #multisite #WCSEA
To multisite or not?
“I have a lot of content that is very different, and I want all my
sites to look different, but it’s still all my stuff”
● Maybe Multisite, Maybe Not
● Why not map domains to categories and tags and create
custom templates for theme archives and categories
@taylor4484 #multisite #WCSEA
Multisite Network
Do’s & Don’ts
Experiences From Some
Enterprise Solutions
presented by Taylor McCaslin
at WordCamp Seattle March 28, 2015

More Related Content

PPTX
2014 WordCamp Austin: Do's and Don'ts of WordPress Multisite
PPTX
WordPress Multi-Network
ODP
Introduction to WordPress Multisite
PDF
Create a site with Multisite plugin WordPress
PPTX
How to install and setup WordPress Multisite Network
PPT
WordPress Multisite
KEY
Exploring WordPress Multisite
PPTX
HOW TO INSTALL AND SETUP WORDPRESS MULTISITE NETWORK
2014 WordCamp Austin: Do's and Don'ts of WordPress Multisite
WordPress Multi-Network
Introduction to WordPress Multisite
Create a site with Multisite plugin WordPress
How to install and setup WordPress Multisite Network
WordPress Multisite
Exploring WordPress Multisite
HOW TO INSTALL AND SETUP WORDPRESS MULTISITE NETWORK

What's hot (20)

PPTX
Managing Multisite: Lessons from a Large Network
KEY
Understanding WordPress Multisite
ODP
Wcmtl top-10-multisite
PDF
How to be a Super Super-Admin - WCMTL 2014
PDF
Making Multisite Work for You
PDF
Agile Wordpress
PDF
Keynote by Jane Wells
ODP
WordPress Multisite Q&A
PPTX
Introduction to WordPress 2016
PDF
Intro to Wordpress
PDF
Staying Connected: Securing Your WordPress Website
PPTX
Resources and lessons for using WordPress in your business
PDF
Introduction to WordPress Class 1
PDF
Wordpress for Dummies
PPTX
WordPress Multisite deck
PDF
Introduction to Wordpress
PDF
WordPress for Beginners by wpwebwizards.com
PPTX
Basic Wordpress PPT
PPTX
Content Management System(CMS) & Basic WordPress
PDF
Empathetc Development
Managing Multisite: Lessons from a Large Network
Understanding WordPress Multisite
Wcmtl top-10-multisite
How to be a Super Super-Admin - WCMTL 2014
Making Multisite Work for You
Agile Wordpress
Keynote by Jane Wells
WordPress Multisite Q&A
Introduction to WordPress 2016
Intro to Wordpress
Staying Connected: Securing Your WordPress Website
Resources and lessons for using WordPress in your business
Introduction to WordPress Class 1
Wordpress for Dummies
WordPress Multisite deck
Introduction to Wordpress
WordPress for Beginners by wpwebwizards.com
Basic Wordpress PPT
Content Management System(CMS) & Basic WordPress
Empathetc Development
Ad

Similar to WordPress Multisite Network Do’s & Don’ts (20)

PDF
Best Friend || Worst Enemy: WordPress Multisite
PPTX
Multisite: Lessons I Learned the Hard Way
PDF
Wordpress Workshop: Session One
PDF
USG Rock Eagle 2017 - PWP at 1000 Days
PPTX
Wordpress Meetup
PDF
WordPress: After The Install
PDF
The WP Engine Developer Experience. Increased agility, improved efficiency.
PDF
There's a Module for That, MIMA Summit 2010
PPTX
Best Practices for Building WordPress Applications
PDF
How QCLean Works? Introduction to Browser Extensions
PDF
Discover the power of browser developer tools
ODP
Beginners Guide to Drupal
PDF
Best practices-wordpress-enterprise
PDF
What Multisite can do for You - Anthony Cole - WordCamp Sydney 2012
PDF
Do WordPress developers write code?
ODP
Drupal in 5mins + Previewing Drupal 8.x
PDF
Speedrun: Build a Website with Panels, Media, and More in 45 Minutes
PPTX
Best Practices for WordPress in Enterprise
PDF
Devops For Drupal
PDF
Mul-ti-site!
Best Friend || Worst Enemy: WordPress Multisite
Multisite: Lessons I Learned the Hard Way
Wordpress Workshop: Session One
USG Rock Eagle 2017 - PWP at 1000 Days
Wordpress Meetup
WordPress: After The Install
The WP Engine Developer Experience. Increased agility, improved efficiency.
There's a Module for That, MIMA Summit 2010
Best Practices for Building WordPress Applications
How QCLean Works? Introduction to Browser Extensions
Discover the power of browser developer tools
Beginners Guide to Drupal
Best practices-wordpress-enterprise
What Multisite can do for You - Anthony Cole - WordCamp Sydney 2012
Do WordPress developers write code?
Drupal in 5mins + Previewing Drupal 8.x
Speedrun: Build a Website with Panels, Media, and More in 45 Minutes
Best Practices for WordPress in Enterprise
Devops For Drupal
Mul-ti-site!
Ad

Recently uploaded (20)

PPTX
PA Analog/Digital System: The Backbone of Modern Surveillance and Communication
PDF
Approach and Philosophy of On baking technology
PDF
Modernizing your data center with Dell and AMD
PPTX
Understanding_Digital_Forensics_Presentation.pptx
PPTX
Digital-Transformation-Roadmap-for-Companies.pptx
PDF
Building Integrated photovoltaic BIPV_UPV.pdf
PDF
Agricultural_Statistics_at_a_Glance_2022_0.pdf
PDF
Dropbox Q2 2025 Financial Results & Investor Presentation
PDF
Blue Purple Modern Animated Computer Science Presentation.pdf.pdf
PPTX
Effective Security Operations Center (SOC) A Modern, Strategic, and Threat-In...
PDF
Peak of Data & AI Encore- AI for Metadata and Smarter Workflows
PDF
Advanced methodologies resolving dimensionality complications for autism neur...
PDF
KodekX | Application Modernization Development
PDF
How UI/UX Design Impacts User Retention in Mobile Apps.pdf
PDF
Mobile App Security Testing_ A Comprehensive Guide.pdf
PDF
Diabetes mellitus diagnosis method based random forest with bat algorithm
PPTX
A Presentation on Artificial Intelligence
PDF
Per capita expenditure prediction using model stacking based on satellite ima...
PPTX
MYSQL Presentation for SQL database connectivity
PPTX
20250228 LYD VKU AI Blended-Learning.pptx
PA Analog/Digital System: The Backbone of Modern Surveillance and Communication
Approach and Philosophy of On baking technology
Modernizing your data center with Dell and AMD
Understanding_Digital_Forensics_Presentation.pptx
Digital-Transformation-Roadmap-for-Companies.pptx
Building Integrated photovoltaic BIPV_UPV.pdf
Agricultural_Statistics_at_a_Glance_2022_0.pdf
Dropbox Q2 2025 Financial Results & Investor Presentation
Blue Purple Modern Animated Computer Science Presentation.pdf.pdf
Effective Security Operations Center (SOC) A Modern, Strategic, and Threat-In...
Peak of Data & AI Encore- AI for Metadata and Smarter Workflows
Advanced methodologies resolving dimensionality complications for autism neur...
KodekX | Application Modernization Development
How UI/UX Design Impacts User Retention in Mobile Apps.pdf
Mobile App Security Testing_ A Comprehensive Guide.pdf
Diabetes mellitus diagnosis method based random forest with bat algorithm
A Presentation on Artificial Intelligence
Per capita expenditure prediction using model stacking based on satellite ima...
MYSQL Presentation for SQL database connectivity
20250228 LYD VKU AI Blended-Learning.pptx

WordPress Multisite Network Do’s & Don’ts

  • 1. @taylor4484 #multisite #WCSEA Multisite Network Do’s & Don’ts Experiences From Some Enterprise Solutions presented by Taylor McCaslin at WordCamp Seattle March 28, 2015
  • 2. @taylor4484 #multisite #WCSEA Product Manager UX Designer Interaction Designer BA Theatre & Dance Certificates in Business, Computer Science, Digital Art & Media Taylor McCaslin
  • 3. @taylor4484 #multisite #WCSEA Disclaimer ● My advice is based on my experience with what has worked for me in the past ● Every project is unique ● There is an exception to every rule I makeup ● Plugins will do everything I say multisite won’t or shouldn’t
  • 4. @taylor4484 #multisite #WCSEA What people are saying ● “I tried to use multisite to manage multiple sites and just got myself confused” ● “Multisite is amazing, why would anyone not use it?” ● “Multisite is hard” ● “We had a project that was running multisite and we converted it to a standard wordpress install” ● “I don’t use anything but multisite”
  • 5. @taylor4484 #multisite #WCSEA How it’s being used “multisite is now a utility for managing multiple sites using one installation, where as the original vision was to enable blogging networks“ @jjj on make.wordpress.org/core
  • 8. @taylor4484 #multisite #WCSEA What is Multisite? ● A multisite network is a collection of sub-sites that all share the same single WordPress installation ● Terminology ○ Install: an instance or installation of WordPress ○ Network: a set of websites that operate within the single WordPress install configured for multisite ○ Site: one of the subsites on the multisite network
  • 9. @taylor4484 #multisite #WCSEA What ISN’T Multisite? ● A network of sites that can be moved to separate hosts ○ 1 host. 1 install of WordPress. Many sites. ● A set of sites that can easily be separated into their own WordPress installs ○ just trust me here. modifying serialized data is not fun ● A set of sites that can have different IP addresses ○ see the first point
  • 11. @taylor4484 #multisite #WCSEA Open or Closed Site? ● Terminology is hard…. and confusing. Public Network / Untrusted ● Anyone can signup and create a site (sometimes paid) o WordPress.com o Happytables.com o University Student Blogs ● Concerts: o file types / uploads o scripts/embeds o copyright o DMCA Private Network / Trusted ● Limited site and user creation o Wordcamp.org o Company intranets o University network  colleges ,department, etc ● Concerns: o too many cooks (wanting super admin) o or none at all (no one to manage network) o code changes affect all sites!
  • 12. @taylor4484 #multisite #WCSEA Subfolders, Subdomains and Domain Mapping ● 1 primary network domain o sub-domain (I prefer this one)  mysite.com  site2.mysite.com  site3.mysite.com o sub-folder  mysite.com/site1  mysite.com/site2  mysite.com/site3 ● Domain Mapping o wordpress.org/plugins/wordpress-mu-domain-mapping/  sunrise.php o Pro-tip: Always use CNAMES! o Premium plugins exist for selling domains to users (wpmudev.org)
  • 13. @taylor4484 #multisite #WCSEA Unified Site Management ● Super Admin Role ● manage_network ● manage_sites ● manage_network_users ● manage_network_plugins ● manage_network_themes ● manage_network_options ● unfiltered_html codex.wordpress.org/Roles_and_Capabilities
  • 14. @taylor4484 #multisite #WCSEA Shared Users ● All blogs have central user management ● Users login once to access all sites on the network o Doesn’t play well with alternative login plugins (Duo2, 2FA, Google Auth) - you’ll login for every site ● Caution: User profiles are the same for all sites
  • 15. @taylor4484 #multisite #WCSEA Shared Themes ● Add a theme o Network Enable (all sites) o Restrict themes available to use per site  Done through the Site -> Edit Site menu ● Remember to add Child Themes!
  • 16. @taylor4484 #multisite #WCSEA Shared Plugins ● Install plugin on the network o Activate per site o Network Activate ● Must Use Plugins o Can’t be deactivated through the admin ● Caution: Some plugins have their own network settings!
  • 17. @taylor4484 #multisite #WCSEA File Structure Differences ❏ / root of WordPress Install ❏ wp-config.php has extra lines ❏ .htaccess has extra lines ❏ wp-content has extra subfolders
  • 18. @taylor4484 #multisite #WCSEA ❏ /wp-content/uploads ❏ /2015/ ❏ /2014/ ❏ /sites/ your primary (first site) site’s media directories File Structure Differences ❏ 2 ← site ids (second site you made) ❏ /2015/ ❏ /2014/ ❏ 3 /2015/ /2014/ ❏ ... Pro tip: rely on host to allow you to grant your site admins access to only specific site directories
  • 19. @taylor4484 #multisite #WCSEA DB Structure Differences ● 17 tables instead of 11 ● 6 extra tables: ○ wp_blogs ○ wp_blogs_versions ○ wp_sitemeta o wp_site o wp_signups o wp_registration_log ● 9 prefixed tables per every new site!!! ○ wp_6_posts ← prefixed with site id ○ wp_posts ← first site isn’t prefixed
  • 20. @taylor4484 #multisite #WCSEA Tables in ONE multisite DB 8 + (9 * n) where n is number of sites 1 site = 17 tables 10 sites = 98 tables 100 sites = 908 tables 1,000 sites = 9,008 tables 10,000 sites = 90,008 tables
  • 21. @taylor4484 #multisite #WCSEA Hosting ● Use a managed host ● Pro-Tips: o automatic backups with 1 click restore (ability to download backup) o built in staging sites (that magically with the networked sites) o granular deploy to production controls (deploy only specific tables) o look for extra security features (automatic ip blacklisting) o know limitations (some hosts don’t allow subdomains or subfolders) o use version control ● MMSN (massive multisite network) o plan to spend $$$$ or hire a sysadmin
  • 22. @taylor4484 #multisite #WCSEA Pro Dev Tips ● define( 'DISALLOW_FILE_MODS', true ); o disable the Admin File Editor ● define( 'DO_NOT_UPGRADE_GLOBAL_TABLES', true ); o Prevents upgrade functions from doing expensive database queries on global tables ● add_action( ‘network_admin_menu’, ‘my-settings’ ); o add extra submenus and menu options to the network admin panel'
  • 23. @taylor4484 #multisite #WCSEA Pro Dev Don'ts ● current_user_can(‘unfiltered_html’) o Just don’t. You will regret this. ● loop through your network sites o Unless you know what you’re doing, you’ll cripple your site performance, if not crashing your site altogether.
  • 24. @taylor4484 #multisite #WCSEA Use Cases Experiences From Some Enterprise Solutions
  • 25. @taylor4484 #multisite #WCSEA To multisite or not? “I want to allow users to create their own sites within some constraints”
  • 26. @taylor4484 #multisite #WCSEA To multisite or not? “I want to allow users to create their own sites within some constraints” ● Use Multisite! o This is what multisite was made to do, and it does it well! ● Pro-Tip: customize the admin! o WordPress.com o Happytables.com
  • 27. @taylor4484 #multisite #WCSEA To multisite or not? “I want to centrally manage all my client’s sites”
  • 28. @taylor4484 #multisite #WCSEA To multisite or not? “I want to centrally manage all my client’s sites” ● Don’t use Multisite ● Alternatives: o Jetpack Site Management (update plugins across your site) o Manage WP (premium) o Infinite WP (free with paid addons) o WP-CLI (script your way to site nirvana)
  • 29. @taylor4484 #multisite #WCSEA To multisite or not? “I want to have a multisite network where each site is in a different language”
  • 30. @taylor4484 #multisite #WCSEA To multisite or not? “I want to have a multisite network where each site is in a different language” ● Maybe Multisite, Maybe Not ● SEO optimization can be difficult when similar content is across a network of sites o Pro-tip: hreflang tags and canonical links are your friend ● Plugins like WPML are built specifically to do this
  • 31. @taylor4484 #multisite #WCSEA To multisite or not? “I have a lot of content that is very different, and I want all my sites to look different, but it’s still all my stuff”
  • 32. @taylor4484 #multisite #WCSEA To multisite or not? “I have a lot of content that is very different, and I want all my sites to look different, but it’s still all my stuff” ● Maybe Multisite, Maybe Not ● Why not map domains to categories and tags and create custom templates for theme archives and categories
  • 33. @taylor4484 #multisite #WCSEA Multisite Network Do’s & Don’ts Experiences From Some Enterprise Solutions presented by Taylor McCaslin at WordCamp Seattle March 28, 2015

Editor's Notes

  • #22: Wordpress.com is run on $3.99/month hosting
  • #24: Just because stack exchange recommends it doesn’t mean it’s the right answer
  • #28: Family of Sites
  • #29: Family of Sites
  • #32: Family of Sites