Two domains, Wordpress Multisite Configuration, but first! Need to take a step back
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!
Thanks
2 Replies
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:
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:
Hope this helps!
@scrane:
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?