0% found this document useful (0 votes)
6 views4 pages

02-Installing Multiple WordPress Instances

The document outlines three methods for installing multiple WordPress instances: using the multisite feature with a single database, multiple instances with a single database, and multiple instances with multiple databases. Each method requires specific configurations in the wp-config.php file to manage database connections and table prefixes. Additionally, it discusses the option to use the same user base across different blogs by defining custom user tables.

Uploaded by

cryscom2007
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
6 views4 pages

02-Installing Multiple WordPress Instances

The document outlines three methods for installing multiple WordPress instances: using the multisite feature with a single database, multiple instances with a single database, and multiple instances with multiple databases. Each method requires specific configurations in the wp-config.php file to manage database connections and table prefixes. Additionally, it discusses the option to use the same user base across different blogs by defining custom user tables.

Uploaded by

cryscom2007
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 4

6/21/2020 Installing Multiple WordPress Instances | WordPress.

org

 Search WordPress.org

Support 

Categories

Getting Started

Installing WordPress

Basic Usage

Basic Administration

Customizing

Maintenance

Security

Advanced Topics

Troubleshooting

Installing Multiple WordPress Instances


If you need multiple WordPress instances, there are three TOPICS
types of installations based on system architecture, or a
combination of WordPress instances and databases: Multiple WordPress Instances with
Multiple Databases
1. The WordPress multisite feature, which is a single The Multisite Feature
WordPress instance with a single database
Multiple WordPress Instances with a
2. Multiple WordPress instances with a single database Single Database
3. Multiple WordPress instances with multiple
Multiple Databases, Same Users
databases

https://wordpress.org/support/article/installing-multiple-blogs/ 1/4
6/21/2020 Installing Multiple WordPress Instances | WordPress.org

Let’s rst look at the third type, multiple WordPress instances with multiple databases, because
it has the same installation process as the single WordPress site except there are multiple
sites.

Multiple WordPress Instances with Multiple Databases #


You’ll need a separate MySQL database for each blog you plan to install. If you have not yet
created these, basic instructions are found here.

The wp-con g.php le will vary for each installation. The lines to change are the following:

define('DB_NAME', 'wordpress'); // The name of the database


define('DB_USER', 'username'); // Your MySQL username
define('DB_PASSWORD', 'password'); // ... and password

DB_NAME is the name of the individual database created for that blog. If you are using di erent
user logins for each database, edit DB_USER and DB_PASSWORD to re ect this as well.

Upload each wp-con g.php le to its speci c root/installation directory, and run the
installation. See Installing WordPress for more information.

Top ↑

The Multisite Feature #


If you want multiple sites to use WordPress, you can use the multisite feature to create what is
referred to as a network of sites. The multisite feature involves installing a single WordPress

https://wordpress.org/support/article/installing-multiple-blogs/ 2/4
6/21/2020 Installing Multiple WordPress Instances | WordPress.org

instance and a single database.

The multisite feature appears to be simpler than other types of multiple WordPress
installations, but there are some considerations and restrictions. Refer to the following
documents for more detailed information:

Before You Create A Network


Create A Network
Multisite Network Administration

Top ↑

Multiple WordPress Instances with a Single Database #


As with the multiple-database solution described above, the wp-con g.php le will vary for each
installation. In this case, however, only a single line is unique to each blog:

$table_prefix = 'wp_'; // example: 'wp_' or 'b2' or 'mylogin_'

By default, WordPress assigns the table pre x wp_ to its MySQL database tables, but this pre x
can be anything you choose. This allows you to create unique identi ers for each blog in your
database. For example, let’s say you have three blogs to set up, with the names Main, Projects,
and Test. You should substitute the pre x wp_ in each blog’s
wp-con g.php:

Main blog:

$table_prefix = 'main_';

Projects blog:

$table_prefix = 'projects_';

Test blog:

$table_prefix = 'test_';

https://wordpress.org/support/article/installing-multiple-blogs/ 3/4
6/21/2020 Installing Multiple WordPress Instances | WordPress.org

As noted, you may use a pre x of your own making. Those provided here are for example only.

Upload each wp-con g.php le to its speci c root/installation directory, and run the
installation. See Installing WordPress for more information.

Top ↑

Multiple Databases, Same Users #


You can use the same userbase for all your blogs on the same domain by de ning the
CUSTOM_USER_TABLE and optionally the CUSTOM_USER_META_TABLE constants to point to the same
wp_your_blog_users and wp_your_blog_usermeta tables.
See Editing wp-con g.php/Custom User and Usermeta Tables.

About Support Showcase WordCamp


Blog Developers Plugins WordPress.TV
Hosting Get Involved Themes BuddyPress
Donate bbPress

WordPress.com @WordPress
Matt WordPress
Privacy
Public Code

https://wordpress.org/support/article/installing-multiple-blogs/ 4/4

You might also like