I would like to build a multi-site WordPress in which users can make accounts for their website but I’m not sure how I can actually achieve this. What is the best way to create a WordPress multi-site?
Leave a Reply
You must be logged in to post a comment.
As you probably already know. Since WordPress 3.0 Multi-Site functionality has been included by default as the WordPress MU project has been merged into the WordPress 3.0 core.
In regards to the initial setup, it might take a little bit of work if you are not familiar with php coding but what I can tell you is that once its setup your essentially good to go. The process of actually being able to offer or add additional subdomains off your root domain take less than 30 seconds to complete by a user.
Let me know if you are looking for anything in specific in regards to this or if you have any follow-up questions.
UPDATED:
Before You Begin – Admin Requirements
If you want to run a network of blogs you should at least have a basic understanding of UNIX/Linux administration. A basic knowledge of WordPress development, PHP, HTML and CSS is recommended as well.
Setting up and running a multi-site installation is more complex than a single-site install. Reading this page should help you to decide if you really need a multi-site install, and what might be involved with creating one. If the instructions on this page make no sense to you, be sure to test things on a development site first, rather than your live site.
Server Requirements
Since this feature requires extra server setup and more technical ability, please check with your webhost and ask if they support the use of this feature. It is not recommended to try this on shared hosting.
You are given the choice between sub-domains or sub-directories in Step 4: Installing a Network. This means each additional site in your network will be created as a new virtual subdomain or subdirectory.
example.com/site1
andexample.com/site2
site1.example.com
andsite2.example.com
Sub-directory sites
Sub-domain sites
WordPress Settings Requirements
(See your
/wp-admin/network.php
for more detail)Step 1: Backup Your WordPress
Your WordPress will be updated when creating a Network. Please backup your database and files.
Step 2: Setting Wildcard Subdomains
(If this is a Sub-directories Install, skip this step.)
Sub-domain sites work with the use of wildcard subdomains. This is a two-step process:
Apache must be configured to accept wildcards.
ServerAlias *.example.com
In the DNS records on your server, add a wildcard subdomain that points to the main installation. It should look like:
A *.example.com
External links:
Step 3: Allow Multisite
To enable the Network menu item, you must first define multisite in the
/wp-config.php file
. Open up/wp-config.php
and where it says this:Add this line above it:
Step 4: Installing a Network
This will enable the Network menu item to appear in the Tools menu. Visit
Administration
>Tools
>Network
to see the screen where you will configure certain aspects of our network.Tools Network SubPanel
Addresses of Sites in your Network
You are given the choice between sub-domains or sub-directories (if none of the above applies). This means each additional site in your network will be created as a new virtual subdomain or subdirectory. you have to pick one or the other, and you cannot change this unless you reconfigure your install. See also “Before you Begin”.
site1.example.com
andsite2.example.com
example.com/site1
andexample.com/site2
Network Details
These are filled in automatically:
Double-check they are correct and click the Install button. You may receive a warning about wildcard subdomains. Check Setting Wildcard Subdomains.
The installer attempted to contact a random hostname (
13cc09.example.com
) on your domain. To use a subdomain configuration, you must have a wildcard entry in your DNS. This usually means adding a* hostname
record pointing at your web server in your DNS configuration tool.You can still use your site but any subdomain you create may not be accessible. If you know your DNS is correct, ignore this message.
Step 5: Enabling the Network
The rest of the steps are ones you must complete in order to finish.
Tools Network Created.
First, back up your existing
/wp-config.php
and/.htaccess
files.Create a
blogs.dir
directory under/wp-content/
– This directory is used to stored uploaded media for your additional sites and must be writable by the web server. They should be CHOWNed and CHMODed the same as your wp-content directory.Add the extra lines your WordPress installation generates into your
/wp-config.php
file. – These lines are dynamically generated for you based on your configuration. Edit the/wp-config.php
file while you are logged in to your sites admin panel. Paste the generated lines immediately above/* That's all, stop editing! Happy blogging. */
.Remove the earlier placed
define('WP_ALLOW_MULTISITE', true);
line only if you wish to remove the Network menu in the admin area. You may choose to leave this to be able to access the/.htaccess
rules again..Add the generated mod_rewrite rules to your
/.htaccess
file, replacing other WordPress rules. – These lines are dynamically generated for you based on your configuration. (If there isn’t one, then create it.)Log in again. – Once the above steps are completed and the new
/wp-config.php
&/.htaccess
files are saved, your network is enabled and configured. You will have to log in again. click “Log In” to refresh your Adminstration Panel. If you have problems logging back in, please clear your browser’s cache and cookies.Step 6: Super Admin Settings
You will now see a new menu section called Super Admin. The menus contained in there are for adding and managing additional sites in your network. Your base WordPress install is now the main site in your network.
Go
Super Admin
>Options
panel to configure network options, and then create sites and users.Things You Need To Know
Here are some additional things you might need to know about advanced administration of the blog network.
WordPress Plugins – WordPress Plugins now have additional flexibility, depending upon their implementation across the network.
Site Specific Plugins – WordPress Plugins to be activated or deactivated by an individual blog owner are stored in the plugins directory. You need to enable the Plugins page for individual site administrators from
Network
>Options
.Network Plugins – WordPress Plugins stored in the plugins directory can be activated across the network by the super admin.
Must-Use Plugins – Plugins to be used by all sites on the entire network may also be installed in the mu-plugins directory as single files, or a file to include a subfolder. Any files within a folder will not be read. These files are not activated or deactivated; if they exist, they are used.
Categories and Tags – Global terms are disabled in WordPress 3.0 by default. You can use the Sitewide Tags WordPress Plugin or other similar Plugins to incorporate global tags on the portal/front page of the site or on specific pages or blogs within the network to increase navigation based upon micro-categorized content.