Installing Multiple WordPress Instances
If you need multiple WordPress instances, there are three types of installations based on system architecture, or a combination of WordPress instances and databases:
- The WordPress multisite feature, which is a single WordPress instance with a single database
- Multiple WordPress instances with a single database
- Multiple WordPress instances with multiple databases
Let’s first 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-config.php file 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 different user logins for each database, edit DB_USER
and DB_PASSWORD
to reflect this as well.
Upload each wp-config.php file to its specific root/installation directory, and run the installation. See Installing WordPress for more information.