Installing WordPress Multiple Times On The Same Site

Installing WordPress multiple times on the same site is real easy. There may be times you want to have two different installs of WordPress on one domain. You can install WordPress on the root of your domain, on a subdomain or in subdirectory or on all of the above. These however, will function as completely separate blogs.

If you can create multiple MySQL databases then it’s a pretty straight forward approach just create a new database for each install. But what if you have a limited number of MySQL databases? You can share the database of one WordPress blog with multiple blogs. It just take one little change in the wp-config.php file to work.

After you have created the new directory for the new WordPress blog you can simple copy the files from the existing blog over to the location of the new blog. But, and this is a very important step to do before the actual install steps! You need to change, or actually create a new database table prefix for the new blog. So before you go through the install steps of the new blog open the wp-config.php file of the new blog and change it.

When you open the wp-config.php file there actually are instructions right in the file to tell you what to do, look for this:

// You can have multiple installations in one database if you give each a unique prefix
$table_prefix = ‘wp_’; // Only numbers, letters, and underscores please!

The part you want to change is the ‘wp_’ part. Make it anything you want and I suggest making it something that corresponds to the new blog so you can easily reference it if you ever need to do any database maintenance.



Share This AddThis Social Bookmark Button Sphinn Gregarious FeedFlare

If you're new here, you may want to subscribe to my RSS feed. Thanks for visiting!


Tagged with


Related Posts





2 Responses to "Installing WordPress Multiple Times On The Same Site"

  1. Thanks for information. I would like to get this link saved. Thanks

  2. I use this for the case of my inebriated inc blog and theinebriated store (cms) in the same hosting (DNS) plan, different directory’s and redirects..

    sweet!

Discussion Area - Leave a Comment

If you have a question about your blog please leave a link to it. Please don't ask questions like "Why don't my blog work right?" and expect an answer. I can't fix stupid.

Two links or less are welcome, any more and your comment will be spammed! Nofollow has been disabled, feel free to use your keywords or site name as your name for anchor text. Some comments may be moderated and will not appear until approved. Please submit only once.



XHTML: You can use these tags: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <code> <em> <i> <strike> <strong>

Or just copy the example below and change your details.
Example - Title Of Site