ArtsAutosBooksBusinessEducationEntertainmentFamilyFashionFoodGamesGenderHealthHolidaysHomeHubPagesPersonal FinancePetsPoliticsReligionSportsTechnologyTravel

Installing WordPress 3.X As A Multi User Blog

Updated on December 2, 2012

Setting Up WordPress 3.X As A Multi User Blog

This is an effort to get people to try out the latest version of WordPress in multi Blog / multi User mode.  The installation and configuration is relatively painless and it does work very smoothly.  Hence if you go through this material carefully, I’m sure you will be able to setup and use WordPress so that multiple people can Blog using a single install of WordPress completely independent of each other.

Wordpress 3.0 offers a MU Blog system built into its core. There is no need to download and install a WordPress MU script any longer.

One just needs to install WordPress 3.X normally in as a single user Blog, then:

  1. Make a few copy / paste type changes in its wp-config.php file
  2. Set up a few network settings after

And your WordPress Blog will deliver Multi Blog functionality.

Start off by doing a clean Install of the latest version of WordPress ( i.e. WordPress 3.1 when I wrote this material ).  Then, login as wp-admin in the usual way and get to the WP Dashboard. You are now poised to get started.

Instructing WordPress To Deliver Multi Site Functionality

Fire up your FTP client and access your WP installation. Get to the wp-config.php file.

NOTE: wp-config.php is normally found in root directory of the WP installation.

Select wp-config .php , right click and Edit the wp-config .php :  

NOTE: Search for the line /* That's all, stop editing! Happy blogging. */  which is normally found towards the end of the wp-config file.

Place your mouse cursor just above this line ( which is just a remark statement ) and press the Enter key a few time to make some space just above the line.

Copy / Paste the following code snippet just above this remark statement

define('WP_ALLOW_MULTISITE', true);

Once you’ve done this save the file the freshly updated wp-config.php back to hard disk.

NOTE: This code snippet instructs the WordPress core that it’s required to work in multi site from now on.

Next go to the WP, dashboard and refresh the page if it is already open
OR
Logout and Login again as wp-admin normally and reach the WP dashboard

A new option Network will be found under Wp-Admin >> Tools as shown in diagram 1.

Clicking the link Network is how the WordPress user interface that will allow you to complete configuring WordPress to work in Multi Site / Blog mode is displayed in your Browser as shown in diagram 1.

Diagram 1.
Diagram 1.

On click of Tools >> Network the user interface as shown in diagram 2 will be displayed in your Browser.

Diagram 2
Diagram 2

Under the heading - Addresses of Sites in your Network

Select the blogs-as-subdomains - radio button ( i.e. the radio button selected by default ) and click Install.

Just as shown in diagram 2.

On Click of Install the user interface as shown in diagram 3 is displayed in the Browser.

Diagram 3
Diagram 3

Follow the instructions contained in line 1 on this page and create a blogs.dir using your FTP client software just as instructed.

NOTE: This directory is used to store uploaded media for the additional Blog sites and must be writeable by the web server.

Additional code placed in the wp-config.php file

Next copy and paste the code visible in the first text box into the wp-config.php file.
NOTE: Do this just above the line - /* That's all, stop editing! Happy blogging. */
AND
Just below the code snippet you pasted there earlier i.e. define('WP_ALLOW_MULTISITE', true);

For example, this was the block of code I received when I was doing my install on localhost.

Here is what the additional code block looked like within my wp-config.php file.

define( 'MULTISITE', true );

define( 'SUBDOMAIN_INSTALL', true );
$base = '/';
define( 'DOMAIN_CURRENT_SITE', 'multiuserwp.com' );
define( 'PATH_CURRENT_SITE', '/' );
define( 'SITE_ID_CURRENT_SITE', 1 );
define( 'BLOG_ID_CURRENT_SITE', 1 );

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

Adding Instructions To The .htaccess File

Next using your FTP client, navigate to the root directory of your WordPress installation and locate the .htaccess file. 

Click on the file once to select it then right click and select Edit from the sticky menu that is displayed there.  The .htaccess open in Editing mode within your FTP client.

NOTE: If there are any WordPress rules within the .htaccess that exist these must be deleted.

Next copy and paste the code visible in the second text box into the .htaccess file normally found in the root directory of a WordPress Blog.   

Save the .htaccess file back to hard disk.

This was the block of code I received, which I added into the .htaccess when I was doing my install on localhost.

RewriteEngine On
RewriteBase /
RewriteRule ^index\.php$ - [L]
# uploaded files
RewriteRule ^files/(.+) wp-includes/ms-files.php?file=$1 [L]
RewriteCond %{REQUEST_FILENAME} -f [OR]
RewriteCond %{REQUEST_FILENAME} -d
RewriteRule ^ - [L]
RewriteRule . index.php [L]

All the necessary changes to the wp-config.php file and the .htaccess are complete.

The WordPress installation is now ready to be informed about all the multiple sites / Blog that it has to handle.   

You will now be instructed to logout and login in again in the WordPress admin section.

Please do so.

When you re-login, you will see a new menu link called My Sites under Dashboard Menu as shown in diagram 4.

On the top right hand corner, you will see a new link called Network Admin as shown in diagram 4.  These are the explicit indications that your WordPress installation has been set up correctly to deliver multiple Blogs.

Diagram 4
Diagram 4

Now let’s create a new Blog.

Remember that you are the Network Admin as shown in diagram 5.

Diagram 5
Diagram 5

While you are Network Admin, and you’ve clicked the link Sites, the user interface as shown in diagram 6 will be displayed in your Browser.  Click Create a New Site as shown in diagram 6.

Diagram 6.
Diagram 6.

Adding a new site as shown in diagram 7.

Diagram 7
Diagram 7

The information I entered was:

Enter the Site Address - meher
Enter the Blog Title – Meher’s Blog
Enter the Admin Email Id – Enter a legitimate Email ID here
NOTE: Ensure that a unique Email ID is used for each such new site / Blog

Having done this a new site / Blog will be created named meher under the parent Blog which you installed and just configured to deliver multiple sites / Blogs.

Making Entries In Your HOSTS file

Since I was installing and configuring WordPress on my laptop, I’d have to ensure correct Domain Name Resolution. Simply because there is no domain named meher.multiuserwp.com registered on an Internet based DNS server. Hence I made the following entries in my HOSTS file on my laptop, the entry was as follows:

#127.0.0.1 localhost.localdomain
127.0.0.1 localhost
127.0.0.1 multiuserwp.com
127.0.0.1 meher.multiuserwp.com

NOTE: Do register the remmed out entry please.
If you have such an entry in your HOSTS file please rem it out as shown above.

NOTE: In Windows the HOSTS file is normally found in:
c:\windows\system32\drivers\etc\hosts
In Linux the HOSTS file is normally found in:
/etc/hosts

NOTE: No such entries must be made in your HOSTS file if you are experimenting directly on a webhost.

Now in a new Browser tab I entered the URL - meher dot multiuserwp dot com in the address bar and Meher’s Blog, Home Page was displayed as shown in diagram 8.

Diagram 8
Diagram 8

Should you enter the URL - multiuserwp dot com the parent Blog will be displayed in your Browser window as shown in diagram 9.

Diagram 9
Diagram 9

Now you have to separate Blogs the parent Blog named WordPress _MU and Meher’s Blog both being independent of each other but delivered by the same WordPress installation.

If you wish to add more Blogs then simply go back to being Network Admin >> Sites >> Add New >> Create A New Site and - add another site.

Each of the Blogs will have their own independent Admin Dashboards displayed.

Here are the URLs:

meher dot multiuserwp dot com/wp-admin
AND
multiuserwp dot com/wp-admin

Setting a Login Password for Meher

Note: When the New Blog was created, a user also was created but this user did not have a password.

To set a password for this User, Login in as wp-admin using the URL multiuserwp dot com and go to Network Admin.

Go to Users menu and click on the Edit link under user meher as shown in diagram 10.

Diagram 10
Diagram 10

Scroll to the End of the Page and locate the New Password.

Enter the passwords in the textboxes adjacent to the label New Password and click on Update User as shown in diagram 11.

Diagram 11
Diagram 11

Meher will now have a Password and can log into Meher’s wp-admin Dashboard.

Now open a new Browser tab and enter the URL meher dot multiuserwp dot com/wp-admin in it address bar and press GO or Enter.

The Admin login form of Meher’s Blog will be seen in the Browser tab as shown in diagram 12.

Diagram 12
Diagram 12

Enter the User Name and Password for meher dot multiuserwp dot com blog.

And click Login to get to the Admin Dashboard of Meher’s Blog.

Ivan Bayross
Open Source Tutorials | Open Source Training

working

This website uses cookies

As a user in the EEA, your approval is needed on a few things. To provide a better website experience, hubpages.com uses cookies (and other similar technologies) and may collect, process, and share personal data. Please choose which areas of our service you consent to our doing so.

For more information on managing or withdrawing consents and how we handle data, visit our Privacy Policy at: https://corp.maven.io/privacy-policy

Show Details
Necessary
HubPages Device IDThis is used to identify particular browsers or devices when the access the service, and is used for security reasons.
LoginThis is necessary to sign in to the HubPages Service.
Google RecaptchaThis is used to prevent bots and spam. (Privacy Policy)
AkismetThis is used to detect comment spam. (Privacy Policy)
HubPages Google AnalyticsThis is used to provide data on traffic to our website, all personally identifyable data is anonymized. (Privacy Policy)
HubPages Traffic PixelThis is used to collect data on traffic to articles and other pages on our site. Unless you are signed in to a HubPages account, all personally identifiable information is anonymized.
Amazon Web ServicesThis is a cloud services platform that we used to host our service. (Privacy Policy)
CloudflareThis is a cloud CDN service that we use to efficiently deliver files required for our service to operate such as javascript, cascading style sheets, images, and videos. (Privacy Policy)
Google Hosted LibrariesJavascript software libraries such as jQuery are loaded at endpoints on the googleapis.com or gstatic.com domains, for performance and efficiency reasons. (Privacy Policy)
Features
Google Custom SearchThis is feature allows you to search the site. (Privacy Policy)
Google MapsSome articles have Google Maps embedded in them. (Privacy Policy)
Google ChartsThis is used to display charts and graphs on articles and the author center. (Privacy Policy)
Google AdSense Host APIThis service allows you to sign up for or associate a Google AdSense account with HubPages, so that you can earn money from ads on your articles. No data is shared unless you engage with this feature. (Privacy Policy)
Google YouTubeSome articles have YouTube videos embedded in them. (Privacy Policy)
VimeoSome articles have Vimeo videos embedded in them. (Privacy Policy)
PaypalThis is used for a registered author who enrolls in the HubPages Earnings program and requests to be paid via PayPal. No data is shared with Paypal unless you engage with this feature. (Privacy Policy)
Facebook LoginYou can use this to streamline signing up for, or signing in to your Hubpages account. No data is shared with Facebook unless you engage with this feature. (Privacy Policy)
MavenThis supports the Maven widget and search functionality. (Privacy Policy)
Marketing
Google AdSenseThis is an ad network. (Privacy Policy)
Google DoubleClickGoogle provides ad serving technology and runs an ad network. (Privacy Policy)
Index ExchangeThis is an ad network. (Privacy Policy)
SovrnThis is an ad network. (Privacy Policy)
Facebook AdsThis is an ad network. (Privacy Policy)
Amazon Unified Ad MarketplaceThis is an ad network. (Privacy Policy)
AppNexusThis is an ad network. (Privacy Policy)
OpenxThis is an ad network. (Privacy Policy)
Rubicon ProjectThis is an ad network. (Privacy Policy)
TripleLiftThis is an ad network. (Privacy Policy)
Say MediaWe partner with Say Media to deliver ad campaigns on our sites. (Privacy Policy)
Remarketing PixelsWe may use remarketing pixels from advertising networks such as Google AdWords, Bing Ads, and Facebook in order to advertise the HubPages Service to people that have visited our sites.
Conversion Tracking PixelsWe may use conversion tracking pixels from advertising networks such as Google AdWords, Bing Ads, and Facebook in order to identify when an advertisement has successfully resulted in the desired action, such as signing up for the HubPages Service or publishing an article on the HubPages Service.
Statistics
Author Google AnalyticsThis is used to provide traffic data and reports to the authors of articles on the HubPages Service. (Privacy Policy)
ComscoreComScore is a media measurement and analytics company providing marketing data and analytics to enterprises, media and advertising agencies, and publishers. Non-consent will result in ComScore only processing obfuscated personal data. (Privacy Policy)
Amazon Tracking PixelSome articles display amazon products as part of the Amazon Affiliate program, this pixel provides traffic statistics for those products (Privacy Policy)
ClickscoThis is a data management platform studying reader behavior (Privacy Policy)