Running two wordpress blogs on the same domain
Today I tried to run two wordpress blogs from the same domain name.
It is entirely possible and works like a charm.
The following are the steps to be used:
1. Download the latest version of WordPress.
2. Unzip the the WordPress files to a folder.
3. Make a second copy of this folder
4. Name the copies of the folder as say blog1 & blog2
5. In each of these folders you will need to create wp-config.php file.
6. To create this you need to edit the wp-config-sample.php file
7. The following items shown are to be edited:
define(‘DB_NAME’, ‘putyourdbnamehere‘); // The name of the database
define(‘DB_USER’, ‘usernamehere’); // Your MySQL username
define(‘DB_PASSWORD’, ‘yourpasswordhere’); // …and password
define(‘DB_HOST’, ‘localhost’); // 99% chance you won’t need to change this value
define(‘DB_CHARSET’, ‘utf8′);
define(‘DB_COLLATE’, ”);
8. To edit the above you will need to first create your databases.
9. Create two different MySQL databases one for each blog in your domain. I’m assuming you have MySQL/PHP on Linux hosting. You will need to use the control panel provided by your web hosting service to create these databases.
10. Note down the parameters with which you set up the database and fill up the wp-config.php file suitably.
11. Upload the blog1 & blog2 folders to your domain to sit at http://www.yoursite.com/blog1 & http://www.yoursite.com/blog1
12. To setup the first blog start with http://www.yoursite.com/blog1/readme.html and follow the standard WordPress install procedure.
13. To setup the second blog start with
http://www.yoursite.com/blog2/readme.html and follow the standard
WordPress install procedure.
14. Now you will have two different wordpress installations, two different databases and two different blogs.
15. The first blog will be at http://www.yoursite.com/blog1 and the second one at http://www.yoursite.com/blog2.
Have fun with your blogs.
thanks a lot my friend. Your guide was very simple to follow and it really really helped me. Great work
This works fine, but problems occur when I try to activate permalinks. Basically, permalinks on the second blog get directed to the path of the first blog, where the pages can’t be found. I guess it’s a problem that they are using the same .htaccess. Do you have any thoughts on how to get round this?
I really liked your post.
I am trying to install a second blog in my Website. I will intalit on /blog/ folder. I think i can do that and keep the first blog in the root of the domain.
Great article! Thank you!
You can have multiple installations (multiple blog) even in one database if you give a unique table prefix. for each of them . you do need to have 2 folders and 2 DB.
tnx
* you do not need 2 folders and 2 DB