WordPress.org

Ready to get started?Download WordPress

Forums

Need more than one installation on a server (2 posts)

  1. jeremybotter
    Member
    Posted 8 years ago #

    Hi. I'm going to be running multiple blogs (on domain names), but on the same machine. Got the first one up and running great, but when I try to make a second installation, it tells me that WordPress is already installed and I need to clear out the database tables before installing another.

    Is there a way around this? I'm using WP2.

  2. dherren
    Member
    Posted 8 years ago #

    Each blog will need to either point to it's own database, or at least to have unique table prefixes. If you've already got one database up and running successfully, perhaps the easiest thing to do is to simply change the table prefix.

    In the wp-config.php file, look for this section:

    // Change the prefix if you want to have multiple blogs in a single database.
    $table_prefix = 'CHANGEME_'; // example: 'wp_' or 'b2' or 'mylogin_'

    Your's won't say CHANGEME of course, but all you need to do is to change the prefix to something that is meaningful to you as the prefix to the new table names for each additional blog you install.

Topic Closed

This topic has been closed to new replies.

About this Topic