This will be a brief tutorial on getting underway with the Multi Site and Domain Mapping features of WordPress 3. It’s easier than it sounds, and WordPress 3 is light years beyond the early builds of WPMU that many of us tried, but ultimately abandoned as unreliable or unstable. I’ll be demonstrating how to set this up on a Linux server running cPanel control panel software, as this is what I use and prefer.
There are a few corners that can be safely cut using this method, saving a bit of time and some emails back and forth between you and your host. I’ll cover two scenarios. The first will apply if you are setting up Multi Site WordPress on the primary domain in your cPanel account, and the second will apply if you’re setting it up on an addon domain. The process is only slightly different for each.
So let’s get to it! First, you need an installation of WordPress 3 RC1 or RC2 (I’ll assume you already have that installed). Open up wp-config.php in your blog’s root directory, and add this line:
define('WP_ALLOW_MULTISITE', true);
Save the file, upload it to overwrite the old one if your editor doesn’t do that for you. Before we use the new settings created in your WordPress admin panel, we need to do some preliminary stuff like set up the wildcard dns entry for your domain.
As mentioned above, there are two possible scenarios here. One is if you’re setting this up on your primary domain, the other if you’re going to use an addon domain. There are notes at the end of this tutorial for dealing with setting up WordPress Multi Site on your addon domains.
Domain Mapping and Multi Site on Your Primary Hosted Domain
For setup on the primary domain on your cPanel account, start by opening the cPanel and clicking Simple DNS Zone Editor if it’s an option, or it may simply be DNS Zone Editor on some hosts. You should see something like this:

cPanel Simple DNS Editor
What we need to do now is to add a wildcard dns entry. This is an A Record which you should add in the format *.yourdomain.com and point to your site’s IP address. It should look something like this, but of course with your domain name and your website’s IP.

Adding a Custom A Record in cPanel
After submitting that, the new record should appear in the lower section of the page, and look like this:

Simple DNS Editor Custom Records
You may also see other lines regarding your addon, parked or subdomains. As long as the new record you added is showing correctly, you can just ignore those right now.
The next step is easier than the last. Go back to the front page of your cPanel, and then to “Parked Domains“. Here you will add each domain you want to use with your Multi Site WordPress installation. In our example here, we will use this very blog to illustrate, as it is an extension of MidnightCoder.ca using these features. After you have added at least one Parked Domain, you should see something like this:

Parked Domains in cPanel
The last step here is to park a subdomain. This is the virtual subdomain that you will create your second WordPress site with. For our example we’ll just call it “blog.midnightcoder.ca”. It doesn’t much matter what it’s called, as the domain name you just parked will be how you and your visitors access it for all things but the admin panel of the blog. Don’t worry that the subdomain you’re parking doesn’t really exist. That will come into play later when we set up the network settings in WordPress.

Parked Subdomain in cPanel
Read the rest of this entry »

