(gs):Install Wordpress with multisite

  • This page was last modified on December 6, 2011, at 13:08.
The (mt) Community Wiki is a collaborative project. Any (mt) Media Temple customer or employee may contribute. Not all articles and/or content have been tested for accuracy by (mt) Media Temple.

For officially moderated and tested articles, be sure to visit our KnowledgeBase.

From (mt) Community Wiki

Contents

Overview

WARNING: THIS DOCUMENT IS INCOMPLETE

I started writing this in the evening, I'll finish it tomorrow, do not delete it!

Please note that this article was written for users on the (gs) Grid-Service. However, it maybe helpful to others as well. This guide requires that you have a basic understanding of how to modify files on a your server.

This article covers the steps to create a site network with WordPress 3 and newer. We will be using the WordPress Multisite feature to do this. Multisite was added to WordPress 3, and replaced the WordPress MU project. To get a network running it will take the following steps:

1.) Upload WordPress 3

2.) Create a Database

3.) Install WordPress 3

4.) Enable Multisite

5.) Update the "wp-config.php" and ".htaccess"

Step One - Uploading WordPress

The first thing we must do is install WordPress. If you've already installed WordPress 3 then skip to step four.

navigate to http://wordpress.org/ then click the button labeled "Download WordPress X.X" (X.X stands for the current version). This will bring you to a page with a brief paragraph explaining what the current version of WordPress is and a link to hosting partners. At the right of the paragraph is another button to download the latest WordPress release. Click it to download WordPress, save it to somewhere you can easily find it again, like your desktop. You can delete it after uploading it to your server.

Once the download is complete, extract the folder named "wordpress" from the zip folder we downloaded, then upload the contents to the html folder corresponding to the domain you want to access WordPress with (this is the primary domain, we can add more after).


Html Folder Example:

domains/example.com/html/(put files here..)


Step Two - Creating a Database

Once your files are all uploaded log in to your (mt) AccountCenter. In the AccountCenter, there is a table listing all your domains, click the link for your primary domain. If you have group enabled, it should be the first domain in the table, the rest will be indented under it.

On the following page, you are presented with the domain's configuration page. Click the "Manage Databases" link to edit your database. We're going to add a new database for WordPress.

Click the tab labeled "Add A Database", then specify a name. Note that the name that is given to your new database is prefixed with the id belonging to your database server. This is illustrated by the prefix to the left of the text input.

Database Name Example:

dbXXXXX_ExampleDataBase (XXXXX represents the id of your grid server)

You will need to remember the name of your database as we will need to provide it to WordPress during the install process. You will also need the username and password used to access your new database. The username will be exactly the same as the prefix that is applied to the database name.

Username Example:

dbXXXXX (XXXXX represents the id of your grid server)

Your password will have been set by yourself so its up to you to figure that out. If needed, you can change the password on the "Global Settings" tab, but be aware, changing the password will prevent any applications that use it from accessing the database. You'll need to change the password for each existing application running on your server, using the database.

Step Three - Install WordPress

At this point we can startup WordPress for the first time. navigation in your browser to the primary domain of you uploaded WordPress to. You should be presented with a message stating the absence of the wp-config.php file. This is the file WordPress stores its basic configuration in. To continue click the button labeled "Create a Configuration File". The following page tells you what information you need for the installer. We have this covered so go ahead and press the button labeled "Lets Go!". Next the installer will ask you for some information in order to connect to our recently created database. You will need to fill in the username, password, database name, and the host name.

Username:

dbXXXXX (XXXXX represents the id of your grid server)

Password:

XXXXXXXXX (what ever you password is...)

Database Name:

dbXXXXX_ExampleDataBase (XXXXX represents the id of your grid server)

Host Name:
internal-db.sXXXXX.gridserver.com (XXXXX represents the id of your grid server)

Once your done entering the data press the "Submit" button.

Lastly, you will have to come up with a username and password for your Super Admin account. Once you've filled out the required fields press "submit" one last time. WordPress will drop you at the login screen, and shoot off an email to the email address you provided containing your log in information.

Step Four - Enabling Multisite

Now that we have WordPress installed we can enable Multisite. We do this by editing the wp-config.php. Download your wp-config.php and open it with your text editor or IDE of choice. scroll down to the following comment within the wp-config.php file:

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

Just above it insert the following definition:

define('WP_ALLOW_MULTISITE', true);

That line will tell WordPress to allow multisite features.

Thats it, now re upload the wp-config.php and login to your WordPress install.

Step Five - Update the "wp-config.php" and ".htaccess"

Now that the multisite features are enabled there are a few bits of configuration we need to deal with to get those features working. In the WordPress Dashboard, find the section in the sidebar navigation called "Tools". Within that section there should now be a link called "Network." If you can't find it make sure you uploaded the edited wp-config.php from step four.


more to be written below...

Resources

This may be helpful until this article is completed: