This is second article of Lets start with the ultimate guide to wordPress multisite. You should read the first article to start from the beginning of the ultimate guide to wordPress multisite.
Activating Multisite on a Fresh WordPress Installation
Activating Multisite when you install WordPress involves a few extra steps. Firstly, you need to install WordPress and allowing a network.
- Install WordPress in the normal way. Download WordPress and use the ‘famous 5 minute install’ to install it on your server or local machine.
- Open your wp-config.php file which you’ll find in the folder where you installed WordPress. Find the line that reads: /* That's all, stop editing! Happy blogging. */
- Immediately above that line, create a new line that reads as follows: define( 'WP_ALLOW_MULTISITE', true );
- Now save your wp-config.php file.
The next step is to visit the WordPress admin screens and install Multisite.
- In the WordPress admin, go to Tools >Network Setup. You’ll be prompted to choose subdomains or subdirectories for your installation: choose the one that works for your network.
- Edit the title of your network and email address of the network administrator when prompted, or leave them as they are.
- Click the Install button.
The final step is to copy some code provided by WordPress into your wp-config.php and .htaccess files.
- You will be taken to the Network Install screen:
- Open each of your wp-config.php and .htaccess files and edit them in line with the text provided on the screen. If you can’t find .htaccess on your server, it may because hidden files aren’t visible: change the settings in your code editor if you’re using one to access your files.
- Save both files.
WordPress Multisite will now be installed. You’ll need to log in again, and when you do so you’ll see the dashboard:
Now you can start adding sites, plugins, themes and more.
Activating Multisite on an Established WordPress Installation
If you’re converting your existing site to a Multisite network, you follow the same steps as above with one exception: you won’t be given the option to select subdomains or subdirectories. If your site has been in existence for more than a month, you’ll be forced to use subdomains.
Managing Your Network
Now your network is in place and running just one site, which is the man site for the network. This site is no different from the other sites which will be added to your network: it has the same admin screens and the same permissions.
Managing your network will consist of:
- Creating and managing sites
- Installing and activating themes
- Installing and deactivating plugins
- Installing updates
Let’s start by creating a site.
Creating a Site
You can create sites manually or you can install a plugin that lets users create their own. I’ll cover how you do this with a plugin later, but first, here’s how to create a site manually.
- Go to the network admin screens by clicking on My Sites > Network Admin in the admin menu.
- Go to Sites > Add New.
- Type in the site address (i.e. the subdomain or subdirectory), the site title and the email address of the site administrator, as shown in the screenshot:
The new site will be created. If you’ve used your own email address for the site admin, you’ll be able to see it when you hover over the My Sites link in the admin menu. If you’re not the administrator, you can still see it from your network admin screens. Click Sites > All Sites to view all of your sites. Below you can see just a selection of the sites in the network I’ve set up on my own domain:
You can also create a new site from the front end of your main site, using a plugin. I’ll look at some plugins for Multisite shortly.
Courtesy: The ultimate guide to wordpress multisite from “wpmudev.org” of “Rachel McCollin”.