Two domains, Wordpress Multisite Configuration, but first! Need to take a step back

Hi all! I'm trying to start two wordpress sites on a linode. Lacking experience, I assumed I just needed to follow the wordpress guide twice to make two separate wordpress sites and assign them each with individual domains. Just to be clear, I made two separate wordpress installations on my server. I've been having trouble getting both to work (after my second installation, I could only get the first site I installed to work, and somehow, I kinda don't remember now because it was at around 2:00 AM Saturday morning, I got the second one to work but the first one stopped working thereafter) on the server. I had been searching for a solution, and happened upon the Wordpress Documentation on Creating a network. I initially ignored it because I got the impression that it would only let me setup a network where I wouldn't be able to customize style or download plugins and such. However, after being able to further research it, found that I would have to install a plugin to have the network configuration manage 2 separate domains, which I'm absolutely fine with. Another reason I'm for it is because, as far as I understand, I can update all of the blogs/sites in that networked installation together at once.

So, I'm wondering, should I remove the directory of the second site's wordpress installation, and configure the first sites wp-config.php, or should I just reimage my space and start all over?

Also, if anyone can recommend a good tutorial on how to install separate domains using WordPress' network configuration, or even just a good plugin to get this task done with, I'd appreciate that too!


2 Replies

Hey there,

If you haven't added anything critical to the Linode yet, I think wiping it and starting fresh will be the best way to go. You wouldn't need to install WordPress twice. What you would need to do instead is install WordPress once, then create different prefixes for the sites you want to use. You can edit the wp-config.php file in each directory with the following line:

$tableprefix = 'wp'; // example: 'wp' or 'b2' or 'mylogin'

You can read a bit more about this here:

Pretty much, you just need to make the relevant folders:

sudo mkdir -p /var/www/html/SiteOne/{public_html,logs}

sudo mkdir -p /var/www/html/SiteTwo/{public_html,logs}

You will also want to configure your name-based virtual hosts to point to the right root folders. You can read how to do this here: … tual-hosts">

Make sure you've added the wp-config.php file to the two folders you created. You will then want to edit the wp-config.php with the appropriate line:

$table_prefix = 'SiteOne';

$table_prefix = 'SiteTwo';

From there, follow the Configure guide and you should be good: … -wordpress">

Hope this helps!


Hey there,

…You wouldn't need to install WordPress twice. What you would need to do instead is install WordPress once, then create different prefixes for the sites you want to use…

Are the prefixes that I create now the only ones I can create? Or can I create new prefixes if I want to make new wordpress sites/projects? What I'm asking, if it isn't clear, is whether this configuration scalable for future projects?


Please enter an answer

You can mention users to notify them: @username

You can use Markdown to format your question. For more examples see the Markdown Cheatsheet.

> I’m a blockquote.

I’m a blockquote.

[I'm a link] (

I'm a link

**I am bold** I am bold

*I am italicized* I am italicized

Community Code of Conduct