You can use this guide to install and setup WordPress Multisite.
This article is an expansion on an article from Plesk covering the same topic which is available here Opens in new window.
The information in this article also has the following requirements:
- WordPress v4.5 or newer since it will have Native Domain Mapping Opens in new window which means you do not need to install the WordPress MU Domain Mapping Opens in new window plugin.
- Plesk server with Let's Encrypt v2.6.0 or newer installed. Since v2.7.0 expired wildcard certificates are automatically renewed.
- Wildcard certificates for Let's Encrypt must also be enabled. If wildcard certificates are not enabled you must do so first before proceeding. To enable wildcard certificates follow the instructions in this Opens in new window Plesk article.
-
Create a new Subscription with your domain, ie example.com
- Create a wildcard subdomain, *.example.com.
ATTENTION: This step is only necessary if you plan on using sub-domains in your WordPress Multisite instead of sub-directories.
-
Secure the primary domain (example.com) & webmail with a Let's Encrypt wildcard SSL Certificate
- Click on "Hosting Settings" for the primary domain, example.com.
- Select "none" for the preferred domain
-
Under "security" check "Permanent SEO-safe 301 redirect from HTTP to HTTPS" and click OK
- Click on "Hosting Settings" for the wildcard domain *.example.com.
ATTENTION: If you did not perform Step 2 above, proceed to Step 6.
- Under "security" check "Permanent SEO-safe 301 redirect from HTTP to HTTPS".
-
For "certificate" select the wildcard certificate "Let's Encrypt example.com (*.example.com)" and click OK
-
Click on the "Files" tab at the top.
-
Click on "httpdocs" and remove all the files present in the folder.
-
Click on the "WordPress" tab at the top
- In the WordPress Toolkit click "Install".
ATTENTION: If you are using Plesk Onyx v17.5 then click on Install and choose either "Install (Quick)" or "Install (Custom)". Choosing "Install (Custom)" is preferred so you can have more control over the WordPress installation since we will be setting it up for Multisite.
- Make sure "https" is selected along with the primary domain example.com
- Choose a "Plugin/Theme set". A good starting choice is "WordPress Essentials with Jetpack"
- Under WordPress Administrator you can change the username and password if you desire.
- Under Automatic Update Settings select if and how you want WordPress to be updated.
- Click on "Install"
-
Choose "no thanks" unless you wish to install more plugins.
-
After the task completes, in the notification box, click on "hide completed".
- In the WordPress Toolkit, click on "login".
ATTENTION: If you are unable to login please clear your browsers cookies and cache.
- A new window will open where you will be automatically logged in to the new WordPress site.
- Click on Plugins, then "active", click the check box to select all active plugins
- In the dropdown box for "bulk actions" select "deactivate" and click on "apply"
- Next, click on "Settings > General"
- Leave the "WordPress URL" without the "www" but make sure you add "www." to the "Site Address URL"
- Feel free to change the other settings on this page such as the Time Zone along with the Date & Time format, etc...
- Once done, click on "Apply"
- The page should refresh and say "Settings saved" or it may ask you to login again.
- Next, click on "Tools > Network Setup"
-
Choose "Sub-domains" and click "Install". You will be prompted with a page telling you to modify the
wp-config.php
file along with the.htaccess
file which are located in the httpdocs folder.
- Return to the Plesk control panel and click on "Manage files" from within the WordPress Toolkit, this will take you to the httpdocs folder for the primary domain.
- Click on the
wp-config.php
file to edit it. - Scroll to the bottom of the file and look for
/* That’s all, stop editing! Happy blogging. */
- Above that line you will see the following line,
define('WP_ALLOW_MULTISITE', true);
- Below this and above the other one is where you paste the information provided to you in the WordPress installation which should look like this
define('MULTISITE', true);
define('SUBDOMAIN_INSTALL', true);
define('DOMAIN_CURRENT_SITE', 'example.com');
define('PATH_CURRENT_SITE', '/');
define('SITE_ID_CURRENT_SITE', 1);
define('BLOG_ID_CURRENT_SITE', 1);
- If registrations have been disabled then we want non-existent sites to be redirected back to the main site. If that is the case, add one more line at the bottom of that list above,
define('NOBLOGREDIRECT', 'https://www.example.com');
and any non-existent sites will now be redirected to the main site. - Click on OK to save the changes.
- If no
.htaccess
file exists, create one by clicking on "New > Create file" and give it the name.htaccess
- Once created, click on the file name to edit it.
- If you are using sub-domains add the following in to the file
# BEGIN WordPress
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /
RewriteRule ^index\.php$ - [L]
# add a trailing slash to /wp-admin
RewriteRule ^wp-admin$ wp-admin/ [R=301,L]
RewriteCond %{REQUEST_FILENAME} -f [OR]
RewriteCond %{REQUEST_FILENAME} -d
RewriteRule ^ - [L]
RewriteRule ^(wp-(content|admin|includes).*) $1 [L]
RewriteRule ^(.*\.php)$ $1 [L]
RewriteRule . index.php [L]
</IfModule>
# END WordPress
-
If you are using sub-directories add the following in to the file
# BEGIN WordPress
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /
RewriteRule ^index\.php$ - [L]
# add a trailing slash to /wp-admin
RewriteRule ^([_0-9a-zA-Z-]+/)?wp-admin$ $1wp-admin/ [R=301,L]
RewriteCond %{REQUEST_FILENAME} -f [OR]
RewriteCond %{REQUEST_FILENAME} -d
RewriteRule ^ - [L]
RewriteRule ^([_0-9a-zA-Z-]+/)?(wp-(content|admin|includes).*) $2 [L]
RewriteRule ^([_0-9a-zA-Z-]+/)?(.*\.php)$ $2 [L]
RewriteRule . index.php [L]
</IfModule>
# END WordPress
Click OK to save the file
- If you are using sub-domains add the following in to the file
- Click on the
-
Return to the WordPress installation and click the link at the bottom in small print that says "Log in" or you can close the page, go back to the WordPress Toolkit in the Plesk control panel and click "Login" to re-login to the site.
- WordPress MultiSite should now be active. To add a new site, Hover over "My Sites > Network Admin" then click on "Sites"
- Click the "Add New" button at the top
- Provide a name for the subdomain, ie sub-domain or sub-directory
- Provide a "site title"
- Enter the admin email. If you use a different email address than the one for the main site then it will create a new user and the username and password will be emailed to them.
- Click on "Add Site"
- If all goes well you should see a message at the top that says "Site added. Visit Dashboard or Edit Site".
-
You should now see the new site under "My Sites".
- You will also need to "network activate" plugins and "network enable" themes to be used on the sites. To do this, hover over "My Sites > Network Admin" and select "Plugins".
- Next, select the plugins you want to Network Activate.
- From the "bulk actions" dropdown select Network Activate and click on Apply
- Do the same thing for "Themes" that you want to add.
If you find this tutorial has helped you please give a thumbs up. If you find something that needs to be corrected or improved please drop us a line by contacting us here Opens in new window and let us know.