How To Install and Setup WordPress Multisite Network?

by

Installing WordPress Multisite network

If you have multiple businesses or schools or personal websites and they all have a few things in common, you must have wondered if thereā€™s a more efficient way of managing all those websites instead of managing them individually. In that case, WordPress multisite is the solution you are looking for.

Launched in version 3.0 in 2010, WordPress multisite allows multiple WordPress websites to exist in a single WordPress install.

In this article, weā€™ll show you how to build a multisite WordPress. It can be a daunting process even for someone who has built WordPress websites before. But thereā€™s nothing to worry about.

Youā€™d be all right if you follow our step-by-step guide to WordPress multisite. However, if you are looking at how to install WordPress manually you can check this article.

[lwptoc skipHeadingLevel=”h3,h4,h5,h6″ skipHeadingText=”In Conclusion”]

Before we jump headlong into the steps youā€™d need to take to install and configure a WordPress multisite, there are few things you need to learn.

What is a Multisite WordPress?

A multisite WordPress network is a collection of websites that share the same WordPress installation. In other words, if you have 5 separate WordPress sites, you can have them all in one place and operate them from a single dashboard.

Take, for instance, the BBC America website. It runs on a multisite network. Every BBC show has itā€™s very own website (called subsite under multisite setting). Instead of having multiple separate websites, they have all their shows under a single site. This makes managing websites far too easy.

To conclude, weā€™d draw a comparison between a regular website and a multisite WordPress network.

  • One website + one WordPress install = Regular WordPress website
  • Multiple websites + one WordPress install = Multisite WordPress network

Pros and Cons of Using a Multisite Networks

Itā€™s easy to see why using WordPress multisite is so appealing. However multisite is not for everyone. Letā€™s look at the pros and cons of using multisite.

Pros of WordPress Multisite

    • Share Same Plugins & Themes: Themes and plugins can be installed on the master dashboard. And they will be activated across the entire network for all the subsites to use.

    Note: More on the ā€˜master dashboardā€™ in the Set-Up & Configure section.

    • Streamlined Updates: The Superadmin can update WordPress plugins and themes for all the subsites at once.

    Note: More on the ā€˜Superadmin or Super Administratorā€™ in the Set-Up & Configure section.

    • Single Dashboard: Multisite WordPress makes it possible to run multiple sites from a single WordPress dashboard. Enabling you to manage everything including the themes, plugins, and users. In this way, it is possible to manage dozens and dozens of subsites.

Cons of WordPress Multisite

  • Incompatible Plugins: One of the biggest challenges with multisite is finding compatible themes and plugins. Many plugins and themes are incapable of handling multisite installations.
  • Complex Migration: Migration can be an exceedingly complex and tricky process. While it’s possible to migrate multisite to a new domain or hosting provider, standalone migration, i.e. migrating a single subsite, is extremely difficult and most plugins donā€™t support it.
  • Unsuitable for Websites Using Different Plugins & Themes: WordPress Multisite is best used when you are building a network of sites sharing similar functionality. But if you have websites for wildly different purposes then itā€™s possible that you will end up using different plugins, themes, and customization. Then enabling multisite is not recommended.

IMPORTANT: WordPress Multisite emerged at a time when there weren’t many good options to manage the website. Fortunately, things have changed since. If you are looking for a good management solution then you should look into WP Remote.

Itā€™s a popular, user-friendly, feature-packed management plugin. Itā€™ll enable you to manage multiple websites from a single dashboard.

After having weighed the pros and cons, if you decide to go ahead and set up WordPress multisite WordPress, follow our beginnerā€™s guide below.

 

How to Install and Setup WordPress Multisite Network?

If you are building a multisite from scratch then start from Step 1. But if you already have an existing website and you want to convert it into a multisite then start with Step 2.

CAUTION: To set up a multisite, you will need to make changes to your WordPress files which is risky. The slightest error could lead to a broken site. So, if you are setting up multisite on your existing website, we recommend you take a complete WordPress backup.

Step 1: Build a WordPress Website

The first thing youā€™ll need to do is buy a domain and a hosting plan. If youā€™ve never built a website on your own then the process may feel daunting but trust us, building a WordPress website is not all that difficult. There are plenty of resources that you follow.

Once your website is up and running, itā€™s time to convert it into a multisite environment.

Step 2: Activating Multisite Via Config File

In this step, youā€™ll need to upload a piece of code to your config file. You can access the config file through your hosting account or an FTP Client like Filezilla. Filezilla is a software that youā€™ll need to install into your local computer to use.

Weā€™ll show you how you can edit your config file through both your hosting account and the Filezilla software.

I  Access Config File Via Hosting Account

1. Log into your hosting providerā€™s account and then navigate to the cPanel. From the cPanel, select the File Manager.
2. From the File Manager page, select the public_html folder.
3. The wp-config.php file is present inside the public_html folder. When you find the file, just right-click and select Edit.

wp-config file in the public_html
Go to public_html & select wp-config

II Access Config File Via Filezilla

1. Download and install Filezilla into your local computer. Itā€™s a software thatā€™ll connect your local computer with the backend of your website. This means you can modify the config file from your computer.
2. Open FileZilla and enter your Hostname, Username, Password, and Port. If you donā€™t have these details, ask your hosting company for FTP credentials. You can also follow these videos to learn where your FTP credentials are stored.
3. When the connection is made, a group of folders will appear in the Remote Site section on your right. One of the folders will be the public_html folder. Select it.

wp-config file in filezilla
Go to Remote site > public_html > Filename > wp-config.php

4. Right underneath the Remote Site, thereā€™s another section called Filename. After you select the public_html folder, the wp-config.php file will appear in this section.
5. When you find the wp-config.php file, just right-click and select Edit.

III  Insert Code to Allow Multisite

After youā€™ve selected edit, the wp-config.php file will pop open. Find this sentence in the config file:

/* That’s all, stop editing! Happy blogging. */

And place the following lines of code right above the ā€˜Happy Bloggingā€™ sentence:

define(‘WP_ALLOW_MULTISITE’, true);

Click on Save Changes and close the file. On my website the code looks like this:

allow multisite in wp-config file
Insert the code as shown in the picture

You have now converted your website to a multisite network. Go to your WordPress dashboard. In the left-hand corner, you should see a Multisite icon.

multisite wordpress
The icon in the picture appears after you convert your site to multisite

But we are only halfway through the job. The next step is to install the network.

IV  Installing the Network

1. On your WordPress dashboard, go to Tools and select Network Setup. From here, youā€™ll configure the network –

(a) The first step is to decide how the URL of the subsites are going to look. You can choose between site1.example.com and example.com/site1 (i.e. subdomain or subdirectory). The selection of the URL structure will not affect how the sites are stored so thereā€™s no need to worry about that.
(b) Next, fill in other details like Network Title and Network Admin Email and hit Install. As soon as you click on Install, WordPress will give you two snippets of codes. You’ll need to add them to the wp-config.php and .htaccess files respectively.

select between sub-domains & sub-directories
Select sub-domains & sub-directories and insert network details

V  Add Code to the wp-config File

Open the wp-config file using the method we showed to you in the previous section. Insert the first code snippet right above the line

/* That’s all, stop editing! Happy blogging. */

Donā€™t forget to hit Save Changes. On my website the code looks like this:

multisite configuration in wp-config file
Insert the code as shown in the picture

VI  Add Code to the .htaccess File

In the .htaccess file, weā€™ll insert the second code snippet. And like the config file, you can find the .htaccess file in the File Manager or through FileZilla. To learn more about editing the .htaccess file, you can check our article.

METHOD 1 – .htaccess File in the File Manager

Log into your hosting account and then navigate to the cPanel > File Manager > public_html folder > .htaccess file. When you find the file, just right-click and select Edit.

htaccess file in the public_html
Go to public_html & select .htaccess

[NOTE: If you canā€™t find the .htaccess file, thatā€™s because itā€™s hidden. To learn how to change site settings and make the file visible, follow instructions in this article – How To Edit .htaccess File in WordPress?]

 

METHOD 2 – .htaccess File in FileZilla

Open Filezilla and enter your FTP credentials. If you donā€™t know what your FTP credentials are, then check out these videos or speak to your hosting provider.

  1. Then navigate to the Remote Site section
  2. Select the public_html folder
  3. After that go to the Filename section look for the .htaccess file
  4. When you find it, just right-click and select Edit.
htaccess file in filezilla
Go to Remote site > public_html > Filename > .htaccess

When you open the file, youā€™ll find code that looks similar to the second code snippet. Replace the existing codes with the new codes. Donā€™t forget to hit Save Changes. On my website the code looks like this:

multisite configuration in htaccess file
Insert the code as shown in the picture

Your multisite network is ready to roll!

 

How to Add a New Subsite to Your Multisite Network?

Living up to its reputation of being really user-friendly, WordPress multisite is easy to operate. Site admins can add new websites or subsites by taking a few straightforward steps.

  • On your WordPress dashboard select All Sites and then Add New. Enter details like desired URL, site title, website name admin email, etc (as you can see in the image below). When you are ready, click on Add Site.
add website in multisite wordpress
Insert details and add new sub-sites
  • You can add as many websites as you like. And if you want to view all your subsites, then go to your Master Dashboard and select Sites > All Sites.

Itā€™s worth mentioning here that any users who have been assigned the role of a WordPress admin will automatically become a Super Admin when the website becomes a multisite network. And a Super Admin has complete control over any site on the network.

NOTE: WordPress sites running on versions below 4.5 need to implement domain mapping. There are plugins available for this. We recommended reading Multisite Domain Mapping.

 

How to Install Plugins and Themes in the WordPress Multisite?

Installing themes and plugins on a multisite is easy. You install them the same way you install it on a regular site.

  • From your Master Dashboard, go to Plugins > Add New and then search, install and activate plugins to your site.
  • To install and set a theme, go to go to Themes > Add New and then search and add themes to your site.

The plugin and theme that you install will be activated across all the subsites. You can activate and deactivate plugins and themes at a network level. And with that, we come to the end of setting up a WordPress multisite network.

 

In Conclusion

Multisite WordPress is a very powerful tool for those who can utilize it. But letā€™s remember that WordPress is a tricky universe and hackers and bots are lurking around to damage the network of websites. Whether youā€™re running a single installation or a multisite, you need to make sure that you are taking security measures.

With MalCare Security Plugin by your side, you donā€™t have to worry about hackers, bots and the rest. Also, you can follow our WordPress security guide for more information about this.

Try MalCare Security Service Right Now!

Category:

You may also like


How can we help you?

If you’re worried that your website has been hacked, MalCare can help you quickly fix the issue and secure your site to prevent future hacks.

My site is hacked – Help me clean it

Clean your site with MalCare’s AntiVirus solution within minutes. It will remove all malware from your complete site. Guaranteed.

Secure my WordPress Site from hackers

MalCare’s 7-Layer Security Offers Complete Protection for Your Website. 300,000+ Websites Trust MalCare for Total Defence from Attacks.