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.
Similar Posts:
- Backup WordPress Database
- Change Old Wordpress eMail Address In Database
- Install WordPress With Simple Scripts
- Multiple Page WordPress Posts
- No Sidebar On WordPress Pages
If you liked this post, feel free to leave a comment that is relevant to the post or subscribe to the feed and get future articles delivered to your feed reader.
Sorry but due to the spamming of a few all comments are moderated and will appear when approved and all drive-by comments will be deleted!












Comments
Thanks for information. I would like to get this link saved. Thanks
Reply
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!
Reply
This is exactly what I was hoping would be easily done, but I decided to search around to see if anyone’s tried it. Glad to see someone’s got it working with a minimum of fuss.
Reply
I am still trying to figure out why there would be a need for two wordpress installations on a single domain.
Reply
The problem with this is that everytime you want to make a change you have to do it to both installations.
Reply
Leave a comment
Drive-By comments will be deleted! Like "Thanks for sharing", "Nice post", or any other text that doesn't contribute to the discussion. If you ask a very specific question about your particular WordPress theme, it will probably be deleted. I can fix your WordPress site but for a price. If you ask a question like "Why don't my blog work right", it will be deleted. If you ask a question about your WordPress site without a leaving a link to it, it will be deleted. The point is to ask questions and or comment on the the actual content of the post, and to please use some common sense. All comments are moderated and will appear when approved. Thank you.