02-Installing Multiple WordPress Instances
02-Installing Multiple WordPress Instances
org
Search WordPress.org
Support
Categories
Getting Started
Installing WordPress
Basic Usage
Basic Administration
Customizing
Maintenance
Security
Advanced Topics
Troubleshooting
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.
The wp-con g.php le will vary for each installation. The lines to change are the following:
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 ↑
https://wordpress.org/support/article/installing-multiple-blogs/ 2/4
6/21/2020 Installing Multiple WordPress Instances | WordPress.org
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:
Top ↑
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 ↑
WordPress.com @WordPress
Matt WordPress
Privacy
Public Code
https://wordpress.org/support/article/installing-multiple-blogs/ 4/4