WordPress Multisite configuration

In order to configure WordPress multisite, please follow the steps below:

Steps to install WordPress:
==========================

There are two ways by which we can install WordPress.

1. WordPress installation from cPanel:

~~~~~
1. Login to the cPanel of the domain.

====
http://domain_name/cpanel
====

2. Click on “Fantastico De Luxe” under “Software/services”.

3. In the following page, you will see the list of available applications.

4. Click on WordPress and proceed with the installation steps.
~~~~~

2. WordPress manual installation:

~~~
1. Download and extract the WordPress package.

===
http://wordpress.org/download/release-archive/
===

1.1. If you want to have your WordPress installation in the root directory of your domain (e.g. http://test.com/), move all contents of the unzipped WordPress directory (but excluding the directory itself) into the root directory of your domain.

1.2. If you want to have your WordPress installation in a sub-directory on your web site (e.g. http://test.com/blog/), rename the directory ‘wordpress’ to the name you’d like the sub-directory to have.

2. Rename the wp-config-sample.php file to wp-config.php.

~~~~
mv wp-config-sample.php wp-config.php
~~~~

3. Open wp-config.php using your favorite text editor (vi/nano) and change the database details.

Replace the MySQL settings with the following details.

~~~~~~~~~
“database_name_here” with the database created for wordpress domain.
“username_here” with the database user name.
“password_here” with DB user password.
~~~~~~~~~

Sample MySQL section:

===
// ** MySQL settings – You can get this info from your web host ** //
/** The name of the database for WordPress */
define(‘DB_NAME’, ‘test_DB’);

/** MySQL database username */
define(‘DB_USER’, ‘test_user’);

/** MySQL database password */
define(‘DB_PASSWORD’, ‘B2Eqa2k2Tisno’);
===

4. Install WordPress by accessing the installation script located at wp-admin/install.php in a web browser.

For Example:

++++++
WordPress installation in root directory: visit: http://test.com/wp-admin/install.php
WordPress installation in a sub-directory: visit: http://test.com/blog/wp-admin/install.php
++++++
~~~

NOTE:: Assumed that MySQL database is created already.

WordPress multisite configuration:

1. Open the file “wp-config.php” using your favourite text editor or via FileManager.

NOTE:: Before editing the configuration file, take a backup of the file.

2. Add the following line above “/* That’s all, stop editing! Happy blogging. */:”.

===
define(‘WP_ALLOW_MULTISITE’, true);
===

Now the code should look like the one given below.

====
define(‘WP_DEBUG’, false);
define(‘WP_ALLOW_MULTISITE’, true);
/* That’s all, stop editing! Happy blogging. */
====

3. This will enable the “Network Setup” link to appear in WordPress Tools menu. Go to “Administration > Tools > Network Setup” to configure network setup.

In the following page, fill the required details according to your requirement. Ensure that the settings are correct and click Install.

4. Now back up your existing wp-config.php and .htaccess files

5. Create a blogs.dir directory under /wp-content/. This directory is used to store uploaded media for your additional sites and must be writable by the web server. They should have the same permission and ownership as of your wp-content directory.

6. Modifying the configuration:

Once you click Install (Steps 3), a new screen will appear, giving instructions to add lines to your wp-config.php and .htaccess files. These lines are generated based on your configuration.

As per the instruction, add the auto generated lines to the “wp-config.php” file.

7. Add the auto generated mod_rewrite rules to the .htaccess file, replacing other WordPress rules.

If there is no such file, then create one with required permissions and ownership. These rules are generated based on your configuration.

8. 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.

9. Now click the down arrow near admin on the right corner of the page & click on Network admin.

10. In the following page, you will see the options to create new site.

Now start creating new sites and users!!!!!.

 

Both comments and pings are currently closed.

Comments are closed.