Hi! I'm Allen and I welcome you to my blog. I blog mainly about my blogging experiences where I get to learn how to earn money online through blogging and have fun doing so. To learn more about my blog, you may want to subscribe to my RSS feed. If you have some questions, feel free to ask me by using my contact form. Thank and have a nice day.
Multiple Wordpress Blogs Under One Wordpress Folder
By Allen Michael Gurrea
What is this?
This is a guide on how to have multiple wordpress blogs in just one wordpress folder.
Can I just upload another wordpress folder in my account and use that instead to make a new blog?
I thought about this and I can say that this is the super easiest way. However, it has some drawbacks.
- Space - Every time you upload a new wordpress folder, you take up space. The default wordpress (without added themes and plug-ins) is about 4mb big and you have to multiply this to the number of blogs you want to have. For those who have no limits in their web-hosting, this should not be a problem but for those who only have 200mb for their hosting (ehem) it’s a problem.
- Upgrade Hassles - Wordpress is still under development and new versions are released from time to time. Wordpress users needs to upgrade to the latest versions so that they can benefit from the new features and be more secure against exploits. If you only have one wordpress blog, upgrading is easy. But what if you have lots of wordpress blogs? You have to upgrade each of them and that will be a tedious task. It is something someone as lazy as me won’t bother to do.
- Adding new themes and plug-ins - These are just for customizing your blog. Generally one them per blog is sufficient but the problem lies in the plug-ins. If you want to add new plug-ins to your blogs, you have to add them manually to each of them. Again, this is a tedious task that won’t be done by someone like me.
Why do you want to do this?
I wanted to do this because I plan to have several blogs for different topics. For example, you want to have a separate blog for your personal life, you dog’s life, your cat’s life and your cow’s life. There are many ways to do this but I wanted to look for the easiest and fastest way to have multiple blogs.
How do we do this?
I thought we will never get here. So now I can guess that you are interested on how this is done. I will do my best to write this guide as clear as possible. If you have any questions or clarifications that you might ask, just do so by dropping a comment. I will update this guide if necessary.
This guide is how I did this so if you have a better way, don’t be greedy and share! ^_^
C: directory haha)public_html/cat/)
symlink() to do this. The syntax of symlink() is this symlink('target', 'link name')LinkMe.php.
<?php
symlink ('target', 'linkname');
?>target with the directory where “cat” folder is located. (Example : 'home/user/public_html/cat')user with your own username in your webhostinglinkname with other blog name you want. (Example: 'dog')LinkMe.php would contain…<?php
symlink ('home/user/public_html/cat', 'dog');
?>LinkMe.php) you created in step 6 to your public_html directory.www.yourdomain.com/LinkMe.php
wp-config.php that is found in the multiblog folder.
$vusers[] = ‘blog’;$vusers[] = ‘cat’;
$vusers[] = ‘dog’;$defaultuser = 'blog';$defaultuser = 'cat';wp-config.php file in your wordpress folder. VERY IMPORTANT.wp-config.php file from multiblog folder to your wordpress folder. (Replace it)multiblog foldermb-config-sample.php by naming them as mb-config-default.php (for the cat blog since cat blog is our default blog) and mb-config-dog.php (for the dog blog)mb-config-default.php and mb-config-dog.php.
$table_prefix = ''; in the two files. You can change it into $table_prefix = 'cat'; and $table_prefix = 'dog'; if you want.wp-content folder. (public_html/cat/wp-content/UPLOAD IT HERE)www.yourdomain.com/cat/wp-admin/install.phpwww.yourdomain.com/dog/wp-admin/install.phpUnconfirmed Bug # 1:
This bug has something to do with the permalinks. It seems that the blog gets errors on the permalink when the permalink structure is use is /%postname%/.
My unconfirmed fix: I solved this by changing the permalink structure. Right now I am using,
/%year%/%monthnum%/%day%/%postname%/
Version History:
1.0 Guide is published
1.1 Unconfirmed bug # 1 inserted
1.12 Unconfirmed bug # 1 with more details
Sources:
PHP symlink() Function
How to create symbolic links without shell access..
Stephen Rider’s Multiblog
Popularity: 2% [?]
aj batac (3 comments.)
1Any known issues when upgrading? Conflicts with plugins? Thanks!
Allen
2Upgrading when? Using this multiple blogs technique? or upgrading in general?
Stephen Rider (3 comments.)
3That’s a pretty good writeup — good instruction, that is. As my comments will attest, what seems clear to one person can be confusing to another, so this can be helpful.
In answer to aj batac’s question:
I’ve been using this method for quite a while now, with a lot of plugins and several upgrades of Wordpress. I have had absolutely no problems with upgrades or plugins that were caused by this methodology.
In fact, the big thing I really like about this method is that I can’t think of how there realistically _could_ be any such conflicts. The only thing we’re changing in the way WordPress runs is that the new config file looks at what directory it is in and loads the appropriate configuration for WP. The software is completely unchanged after the configuration is loaded.
(I’m not tooting my own horn here. I didn’t originate this method– I just gave it some cleanup and publicized. it
)
Allen
4Hi there, thanks for dropping by. Although I implemented this guide yesterday, I think I have not yet completed the setup process. I am still having errors on the other blog (the one that uses the symbolic links). All its permalinks are pointing to the default blog (this blog). For now I am lost on what I should do. -_-
Solution: I changed the permalink structure of my other blog and it seemed to have solved the problem. I am still monitoring the results of this multi blog technique. ^_^
Eli (9 comments.)
5Thanks for posting this…
How about if you have an existing blog and want to create another new one, would you know? I’m not an expert.
Allen
6Hi there, If you need a new blog in the same domain then this technique would work.
Personally, I tried this while I already have an existing blog and it worked. Although do read the the unconfirmed bugs I have found… hehe I’m still trying to find out what causes the bug but it can be easily fixed.
wely (2 comments.)
7hehe. i came across the permalink problem also. my solution was to install each blog to a separate folder.
i still have lots of disk space left. actually i’m looking for ways to maximize utilization of the space i paid for, since letting more than 10mb become unused feels like being ripped off, y’know. anyway, if the time comes that i’ll be needing more space i’ll check this post. so try not to delete this until then, eh, len?
good sources, by the way.
Allen
8Hehe I have fixed the error. I forgot to set my CHMOD my .htaccess to read-only so wordpress changed it thus giving me the permalink errors. But now it’s fixed and working.
Hmm as long as this blog is online, this post won’t get deleted. hehe
Stephen Rider (3 comments.)
9See this comment at my site for one further tip to avoid future issues.
Allen
10Ok. Thank you very much.
Eli (9 comments.)
11thanks for sharing the fix.. im still waiting for my hosting service to put up one soft link.. but apparently i don’t have to.. according to step 6.. hmm.. let me check..
tnx again..
Elizar (27 comments.)
12Hi Allen, I can’t make this
to work..
Allen
13Hi Elizar,
Can you describe what happened?
Elizar (27 comments.)
14forgot the error but it’s ok now.. (asked the ISP to do it for me..
anyway, how about if you have an existing blog? hmm.. let me do a little Googling…
Allen
15Yes, you can still use this even if you have an existing blog. However, I discovered a few disadvantages to this method when compared to installing wordpress separately per blog. ^_^
Stephen Rider (3 comments.)
16Allen — What disadvantages have you discovered?
Allen
17One disadvantage that I found is that when you want to create sitemaps. Since the other blogs reside on a virtual folder (sym link), they still point to the same folder and thus when each of the blogs create their sitemaps, they overwrite each other. Well, it’s just a minor disadvantage… hehe
2 Ping/s
Multiple Blogs on One Wordpress Install | Everything Family and Friends and Everything Else (PR4)
July 13th, 2007 at 11:19 pm
1 [...] since I have the PPP blog on /inmylife (or in a subdomain) and if this multiple blog on one Wordpress install work, I just have to create one on the root domain (www.everything-eli.com/). That means, no more [...]Everything Elizar :: All About What Eli Likes » Blog Archive » Manage Multiple Wordpress Blogs
September 14th, 2007 at 8:01 am
2 [...] myself till the end of September to set it up. If I still can’t… Well, I’ll bug someone who has done it. [...]