If you need multiple blogs using WordPress, you should use multisite feature to create what was referred to as a network of sites.
For some reason, if you need multiple WordPress instances, you will have to install each WordPress separately.
System architecture may be divided into two types by number of databases.
- Multiple databases installation. Each database can manage specific site’s information.
- Single database installation. The database manages all site’s information.
You’ll need to have a separate MySQL database for each blog you want to install.
The wp-config.php file varies for each installation. Here are the lines to change:
define(‘DB_NAME’, ‘wordpress’); // The name of the database define(‘DB_USER’, ‘username’); // Your MySQL username define(‘DB_PASSWORD’, ‘password’); // …and password
DB_NAME will be the name of the individual database that’s created for that blog. If you are using different user logins for each database, edit
DB_PASSWORD to reflect this, too.
Upload each wp-config.php file to its specific root/installation directory, and run the installation.
Like with the multiple databases solution described above, the wp-config.php file will vary for each installation. In this case, anyway, only a single line will be unique to each blog:
$table_prefix = ‘wp_’; // example: ‘wp_’ or ‘b2’ or ‘mylogin_’
By default, WordPress assigns the table prefix
wp_ to its MySQL database tables, but it can be anything you choose. Using more than one, you create unique identifiers for each blog in your database. For instance, you may have three blogs to set up, with the names Main, as well as Projects and Test that you want to substitute the prefix
wp_ for each blog’s wp-config.php:
$table_prefix = ‘main_’;
$table_prefix = ‘projects_’;
$table_prefix = ‘test_’;
You should upload each wp-config.php file to its specific root/installation directory, and run the installation.
This much, guys! Hope you liked this article!