• Home
  • My Work
  • What you need to know about WordPress Multi Site
https://torbjornzetterlund.com/wp-content/uploads/2014/05/wordpress-logo-notext-rgb-960x600_c.png

What you need to know about WordPress Multi Site


A WordPress MultiSite is served by one code base, each site within the MultiSite uses the same database, the tables are numbered by site which allows the separation of a site if you need to remove tables.  The user tables are still shared.

User files are stored with the blog.dir directories. These URLs are rewritten on the user end. Users can not see the original file structure in a multi site and can not be accessed from the backend.

Only Super Admin on a multi-site can install plugins and themes, and make them available to site administrators. Site administrators do not have the privileges to edit themes or plugins.

Super Admins should take precautions when installing themes and plugins before adding them to a site. Issues that can bring down a WordPress sites are related to change to a theme or plugin code not the database.

But that’s more dealing with things like “don’t edit production code unless you know what you’re doing”. ;)

Security

The first line of defense is always securing the server running the multi site, make sure that the server OS is up to date. Don’t use FTP, but use sftp instead. Keep secure passwords to the server (never log in as root, log in as a user, then su).

The biggest change to security that between the WordPress standalone and multi site modes is the kses filters. This strips out things like embeds, iframes, scripts, etc that are the primary problem with compromised sites.

Another potential security issue is upload files, this can be controlled by super admin who has the ability to define allowed file types. So for instance, this can prevent users from uploading php scripts that can give them backdoor access to a server.

Another difference is that the theme editor isn’t available to users, so they can’t write custom php code into the themes. And along with this, themes and plugins can only be installed by the super admins. Malicious code hidden in themes is one of the other most common problem of a compromised wordpress install.

When a multi site grows all that are needed going forward will be around how to scale the multi site database. There are a few plugins available for scaling the database.

http://wordpress.org/extend/plugins/shardb/

http://wordpress.org/extend/plugins/hyperdb/

If this topic interest you, please feel free to comment below.

Menu