This article gives an overview of WordPress Multisite, describes how it works, its advantages and provides installation guidelines:
for cPanel paper_lantern theme
for cPanel x3 theme
for cPanel paper_lantern theme:
1. What is WordPress Multisite
2. Pros and cons of Multi Site
3. Installing Multi Site
4. Turning regular WordPress installation into Multi Site
5. Creating subdomains and subfolders
6. WPMU Domain Mapping
1. What is WordPress Multisite (WPMU)
WordPress Multisite (or WordPress MultiUser/WPMU) is a WordPress feature that allows you to run multiple WordPress sites from within one WordPress installation.
All these installations make up a so-called ‘network’. All the sites in this network share one database, however, they have separate tables within this database and different directories for media uploads. Also, these sites share the same plugins and themes.
The Network Admin is the only one that can manage plugins and themes for all the sites from one single Admin Dashboard.
WordPress Multisite has its advantages and disadvantages.
The pros of WPMU:
The cons of WPMU:
WPMU may be easily installed via Softaculous Apps Installerin cPanel:
1. Go to your cPanel and find Exclusive for Namecheap customers section:
2. Find WordPress and its icon to install:
3. Fill out the details for your website, scroll down and click Install.
NOTE: The corresponding option Enable Multisite (WPMU) should be checked during the installation.
4. You will get a notification that WPMU is successfully installed for your domain. This is the easiest way to install WPMU for your domain.
How can you check if WPMU is already enabled for your site?
You need to find the wp-config.php file. There you will see the following lines that state WPMU is enabled:
/* Multisite */
define( ‘WP_ALLOW_MULTISITE’, true );
define(‘MULTISITE’, true);
define(‘SUBDOMAIN_INSTALL’, false);
define(‘DOMAIN_CURRENT_SITE’, ‘yourdomain.com’);
define(‘PATH_CURRENT_SITE’, ‘/’);
define(‘SITE_ID_CURRENT_SITE’, 1);
define(‘BLOG_ID_CURRENT_SITE’, 1);
4. Turning a regular WordPress installation into WPMU
If you have a regular WordPress installation but decided to make Multisite, there is no need to re-install or remove your WordPress. You may as well enable Multisite for it following the instructions below.
We recommend you to back up the WordPress website before you start in case some steps are followed improperly.
You may begin with the wp-config.php file editing. It is possible to do it via FTP or directly in cPanel.
1. Go to your cPanel > File manager > public_html folder (or the subfolder where WordPress files are located) > choose the wp-config.php file and click Edit:
You need to add the following line in the same place as shown in the screenshot:
define(‘WP_ALLOW_MULTISITE’, true);
Once done, save the changes.
2. Log in to your Admin Dashboard and check that Network Setup has been added to your Tools menu:
You will see the following:
NOTE: Make sure the Apache mod_rewrite module is installed as it will be used at the end of this installation. If mod_rewrite is disabled, ask your administrator to enable that module or check the Apache documentation or elsewhere to set it up.
The mod_rewrite module is enabled by default on our servers, so you may disregard this notification.
3. You need to choose whether you would like your sites to use a subdomain or sub-directories in your WordPress.
The Sub-domains option will get your sites URLs as site1.yourdomain.com, site2.yourdomain.com, etc.
NOTE: You will need to set up a wildcard subdomain first in order to use subdomains. You may find the corresponding tutorial on the wildcard subdomain setup.
The Sub-directories option will enable you to have sites URLs like yourdomain.com/site1,yourdomain.com/site2, etc. This option doesn’t require any additional adjustments.
It is not possible to have both options enabled at the same time. Once you have chosen which is best for you, proceed and click Install.
4. Next, you will see the page called Create a Network of WordPress sites. Enabling network.
In order to complete enabling Multisite, wp-config.php and .htaccess files are to be modified. For this, follow the steps as described on the page (make sure you copy-paste code abstracts precisely):
Once both files are edited, your network is enabled and configured. Click on Log In and re-access your WordPress admin dashboard using the same login details.
5. The last step is creation of a mu-plugins folder with the plugins activated by default and affecting all the sites in the WPMU installation.
Navigate to File Manager menu and locate the root folder for your WordPress installation. Move to wp-content folder > click the New folder button in the top menu > type mu-plugins in the corresponding field > click Create a New Folder. Ensure the permissions for the newly created folder are set to 0755:
6. Now you can log into your Admin Dashboard again and check if the network is enabled:
Network Admin is a super admin that has access to the whole Network Management and all other WordPress dashboards.
5. Creating subdomains and subfolders
You will need to created new sites in the WordPress Network via Network Admin.
1. Go to your WordPress admin panel > My Sites > Network Admin > Sites:
2. Click Add New to create a new site:
NOTE 1: If you have installed WPMU via Softaculous, you will have the subdirectory option (yourdomain.com/site1) set up by default, so it will be possible to add new WordPress site to the sub-directory as described below.
NOTE 2: The admin email field – if you use the email address already assigned to Super Admin or Admin of the regular WordPress installations inside the network, you will need to access the Admin Dashboard for the new site with the same details.
If you use the new email address, which is not assigned to any user yet and does not exist in the WordPress database, the new user will be created, and the login details will be sent to the specified email address:
If you would like to install WordPress site to the subdomain, not to the subdirectory, you need to do the following first:
1. Create a wildcard subdomain in Subdomains menu in cPanel:
2. Change Subdomain_Install option in the wp-config.php file from false to true and save the changes:
3. Once done, you can access Network Admin Dashboard and install WordPress to the subdomain:
If you switch the Subdomain_Install option back to false, it will be possible to create the subdirectories again.
As a result, you can switch from subdomains to subdirectories depending on the needs.
Domain Mapping plugin allows mapping sites in WordPress Network to other domains in your hosting account.
NOTE 1: The domains you want to map need to be added as parked ones, not addons. You need to start with the Domain Mapping plugin installation.
NOTE 2: This plugin will only work if WordPress Multisite is installed in the root directory of your main domain – public_html.
1.To install the plugin, log into Admin Dashboard as Network Admin > My Sites > Network Admin > Plugins > Add new and search for WordPress MU Domain Mapping:
2. Then click Install Now next to WordPress MU Domain Mapping:
3. You will get a notification that the plugin is successfully installed. Once done, click Network Activate:
4. The plugin activation requires additional steps. To proceed, go to My Sites > Network Admin > Settings > Domain mapping. There you will see the notification of what needs to be done:
The following changes should be performed:
define( ‘SUNRISE’, ‘on’ );
5. Once done, go to My Sites > Network Admin > Settings > Domain mapping to complete the plugin configuration.
The Super Admin should set either the IP address of the server (IP address assigned to your cPanel account, which is provided in the Hosting Welcome guide) or CNAME that points to your address (in case you do not know the IP address, you may put the main domain name in this field).
This will tell the Domain Mapping plugin the location of the server that holds your website files.
In our example we will use the IP address.
There are also a few domain options:
6. Once the domain mapping plugin is configured and activated, you need to add a parked domain to map the site to. This may be done via cPanel > Aliases menu:
7. Now you are ready to do the domain mapping. Access the Admin Dashboard of the site you want to map, go to My Sites > Network Admin > Sites > Add New:
8. Now you need to get the site ID. It can be found in All Sites menu by hovering over the new website:
Save the site ID to notes, you will need to place it into Site ID field on Domain Mapping page.
9. The next step is to map a domain using the ID you’ve got. From Network Admin go to Settings > Domainsmenu. Type in Site ID, domain and check-mark Primary field:
Once the domain is mapped, it will appear at the bottom of the page:
NOTE: Since WP Multisite allows to create subsites as subdomains or subdirectories only, you need to update Site URL of the blog in order to connect it to the subsite.
10. To complete domain mapping setup, go to All Sites > click Edit below the subsite associated with the mapped domain. Change Site Address (URL) to the domain you have mapped:
Now the WordPress site is mapped to the parked domain:
You can also check if the domain was successfully mapped via My Sites > Network Admin > Sites:
1. What is WordPress Multisite (WPMU)
2. Pros and cons of WPMU
3. Installing WPMU
4. Turning regular WordPress installation into WPMU
5. Creating subdomains and subfolders
6. WPMU Domain Mapping
1. What is WordPress Multisite (WPMU)
WordPress Multisite (or WordPress MultiUser/WPMU) is a WordPress feature that allows you to run multiple WordPress sites from within one WordPress installation.
All these installations make up a so-called ‘network’. All the sites in this network share one database, however, they have separate tables within this database and different directories for media uploads. Also, these sites share the same plugins and themes.
The Network Admin is the only one that can manage plugins and themes for all the sites from one single Admin Dashboard.
WordPress Multisite has its advantages and disadvantages.
The pros of WPMU:
The cons of WPMU:
WPMU may be easily installed via Softaculous in cPanel:
1. Go to your cPanel and find Software/Services section:
2. Find WordPress and click Install:
3. Fill out the details for your website, scroll down and click Install.
NOTE: The corresponding option Enable Multisite (WPMU) should be checked during the installation.
4. You will get a notification that WPMU is successfully installed for your domain. This is the easiest way to install WPMU for your domain.
How can you check if WPMU is already enabled for your site?
You need to find the wp-config.php file. There you will see the following lines that state WPMU is enabled:
/* Multisite */
define( ‘WP_ALLOW_MULTISITE’, true );
define(‘MULTISITE’, true);
define(‘SUBDOMAIN_INSTALL’, false);
define(‘DOMAIN_CURRENT_SITE’, ‘yourdomain.com’);
define(‘PATH_CURRENT_SITE’, ‘/’);
define(‘SITE_ID_CURRENT_SITE’, 1);
define(‘BLOG_ID_CURRENT_SITE’, 1);
4. Turning a regular WordPress installation into WPMU
If you have a regular WordPress installation but decided to make Multisite, there is no need to re-install or remove your WordPress. You may as well enable Multisite for it following the instructions below.
We recommend you to back up the WordPress website before you start in case some steps are followed improperly.
You may begin with the wp-config.php file editing. It is possible to do it via FTP or directly in cPanel.
1. Go to your cPanel > File manager > public_html folder (or the subfolder where WordPress files are located) > choose the wp-config.php file and click Edit:
You need to add the following line in the same place as shown in the screenshot:
define(‘WP_ALLOW_MULTISITE’, true);
Once done, save the changes.
2. Log in to your Admin Dashboard and check that Network Setup has been added to your Tools menu:
You will see the following:
NOTE: Make sure the Apache mod_rewrite module is installed as it will be used at the end of this installation. If mod_rewrite is disabled, ask your administrator to enable that module or check the Apache documentation or elsewhere to set it up.
The mod_rewrite module is enabled by default on our servers, so you may disregard this notification.
3. You need to choose whether you would like your sites to use a subdomain or sub-directories in your WordPress.
The Sub-domains option will get your sites URLs as site1.yourdomain.com, site2.yourdomain.com, etc.
NOTE: You will need to set up a wildcard subdomain first in order to use subdomains. You may find the corresponding tutorial on the wildcard subdomain setup here.
The Sub-directories option will enable you to have sites URLs like yourdomain.com/site1,yourdomain.com/site2, etc. This option doesn’t require any additional adjustments.
It is not possible to have both options enabled at the same time. Once you have chosen which is best for you, proceed and click Install.
4. Next, you will see the page called Create a Network of WordPress sites. Enabling network.
In order to complete enabling Multisite, wp-config.php and .htaccess files are to be modified. For this, follow the steps as described on the page (make sure you copy-paste code abstracts precisely):
Once both files are edited, your network is enabled and configured. Click on Log In and re-access your WordPress admin dashboard using the same login details.
5. The last step is creation of a mu-plugins folder with the plugins activated by default and affecting all the sites in the WPMU installation.
Navigate to File Manager menu and locate the root folder for your WordPress installation. Move to wp-content folder > click the New folder button in the top menu > type mu-plugins in the corresponding field > click Create a New Folder. Ensure the permissions for the newly created folder are set to 0755:
6. Now you can log into your Admin Dashboard again and check if the network is enabled:
Network Admin is a super admin that has access to the whole Network Management and all other WordPress dashboards.
5. Creating subdomains and subfolders
You will need to created new sites in the WordPress Network via Network Admin.
1. Go to your WordPress admin panel > My Sites > Network Admin > Sites:
2. Click Add New to create a new site:
NOTE 1: If you have installed WPMU via Softaculous, you will have the subdirectory option (yourdomain.com/site1) set up by default, so it will be possible to add new WordPress site to the sub-directory as described below.
NOTE 2: The admin email field – if you use the email address already assigned to Super Admin or Admin of the regular WordPress installations inside the network, you will need to access the Admin Dashboard for the new site with the same details.
If you use the new email address, which is not assigned to any user yet and does not exist in the WordPress database, the new user will be created, and the login details will be sent to the specified email address:
If you would like to install WordPress site to the subdomain, not to the subdirectory, you need to do the following first:
1. Create a wildcard subdomain in Subdomains menu in cPanel:
2. Change Subdomain_Install option in the wp-config.php file from false to true and save the changes:
3. Once done, you can access Network Admin Dashboard and install WordPress to the subdomain:
If you switch the Subdomain_Install option back to false, it will be possible to create the subdirectories again.
As a result, you can switch from subdomains to subdirectories depending on the needs.
Domain Mapping plugin allows mapping sites in WordPress Network to other domains in your hosting account.
NOTE 1: The domains you want to map need to be added as parked ones, not addons. You need to start with the Domain Mapping plugin installation.
NOTE 2: This plugin will only work if WordPress Multisite is installed in the root directory of your main domain – public_html.
1.To install the plugin, log into Admin Dashboard as Network Admin > My Sites > Network Admin > Plugins > Add new and search for WordPress MU Domain Mapping:
2. Then click Install Now next to WordPress MU Domain Mapping:
3. You will get a notification that the plugin is successfully installed. Once done, click Network Activate:
4. The plugin activation requires additional steps. To proceed, go to My Sites > Network Admin > Settings > Domain mapping. There you will see the notification of what needs to be done:
The following changes should be performed:
define( ‘SUNRISE’, ‘on’ );
5. Once done, go to My Sites > Network Admin > Settings > Domain mapping to complete the plugin configuration.
The Super Admin should set either the IP address of the server (IP address assigned to your cPanel account, which is provided in the Hosting Welcome guide) or CNAME that points to your address (in case you do not know the IP address, you may put the main domain name in this field).
This will tell the Domain Mapping plugin the location of the server that holds your website files.
In our example we will use the IP address.
There are also a few domain options:
6. Once the domain mapping plugin is configured and activated, you need to add a parked domain to map the site to. This may be done via cPanel > Parked Domains menu:
7. Now you are ready to do the domain mapping. Access the Admin Dashboard of the site you want to map, go to My Sites > Network Admin > Sites > Add New:
8. Now you need to get the site ID. It can be found in All Sites menu by hovering over the new website:
Save the site ID to notes, you will need to place it into Site ID field on Domain Mapping page.
9. The next step is to map a domain using the ID you’ve got. From Network Admin go to Settings > Domainsmenu. Type in Site ID, domain and check-mark Primary field:
Once the domain is mapped, it will appear at the bottom of the page:
NOTE: Since WP Multisite allows to create subsites as subdomains or subdirectories only, you need to update Site URL of the blog in order to connect it to the subsite.
10. To complete domain mapping setup, go to All Sites > click Edit below the subsite associated with the mapped domain. Change Site Address (URL) to the domain you have mapped:
Now the WordPress site is mapped to the parked domain:
You can also check if the domain was successfully mapped via My Sites > Network Admin > Sites:
That’s it!