Welcome to the Treehouse Community

Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.

Start your free trial

General Discussion

Jonathan Grieve
MOD
Jonathan Grieve
Treehouse Moderator 91,252 Points

Multiple WordPress websites on one server

Hi all

I have a client who has multiple wordpress sites he wants to run but wants to run them on the same server.

http://dced.co.uk/

This is the template he wants to use, but he doesn't want to take out different hosting for each of the websites he wants to make. How could we go about doing this?

On my website I have 2 "domain addons". So I have my main website

and 2 addon sites with their own ftp logins

Could we do something similar with dced? Does it depend on the hosting provider if this is possible? It's the only way I can think of we could get this done.

Thanks./

2 Answers

Maybe you can use multisite for this? Then you can simply use domain mapping.

https://codex.wordpress.org/Create_A_Network

https://nl.wordpress.org/plugins/wordpress-mu-domain-mapping/

Kevin Korte
Kevin Korte
28,148 Points

You can have a single server run two completely separate domains, almost every host allows this. I had a $10 hostgator account and it ran two unique domains, using an addon domain.

So if I'm reading this right, he wants to have site www.abcd.com and www.wxyz.com ran from the same hosting account? You just point the registrars dns records to the host's nameservers, and than create an addon domain for the second account, which than will create a folder structure where at the root of your folders, you'll see each domains root folders. You than can install wordpress in each of these domains root folders and you'll have two separate and functioning wordpress sites that won't share anything, on the same host.

As as long as your server has the resources for the traffic, bandwidth, and disk space, you'll be just fine doing so.

Jonathan Grieve
Jonathan Grieve
Treehouse Moderator 91,252 Points

I might advise my client about this and see if they can arrange something with their web host.

What you're suggesting sounds like my set up, except I don't have unique domains for them but I have access to the directories where the files live as well as unique FTP accounts for those addons. What he wants to avoid though is having to fork out for hosting for each account but domain charges are probably unavoidable here :)

Kevin Korte
Kevin Korte
28,148 Points

Yes, on the server folder side, it would look almost identical to what you have set up, with different wordpress sites in different sub directories.

Works much of the same way. It's just you can have two unique domains pointing at the same server, and the server will have dns rules (set up by the dns manager on the server) to direct incoming traffic to the correct part of the server.

Like I said, as long as he has enough server resources to run that many websites, you can do it. The combined total of all of the websites will all count against his available resources.

There is no way to avoid paying for different domains, if that's what he wants to do.