• I want to host two separate websites on my server. I have installed a LAMP stack on Ubuntu 24.04 running on an intel i7 with 16GB ram and a 1TB hard drive. In order to get this far I had to set up a domain configuration file (Nginx calls them server blocks) for one website. Then I setup a directory /var/www/onedomain and created a test index.html file (Hello world!) to test the setup. The test was successful and now I am ready to install WordPress, but I am confused about whether or not I need a second domain config file (server block?) and what directory to use for the second website files.

    One option is /var/www/wordpress and put everything (for both websites) in there. Alternatively, I could put two subdirectories under wordpress (one for each site), or I could have two subdirectories under /var/www (one for each site) in which case I dont know where to install wordpress.

    Finally, during installation, I do not believe that multisite is an option and that multisite can’t be setup until after installation. If that’s not true, and there is an option to choose multisite during installation, please let me know.

    Any help would be greatly appreciated.

Viewing 2 replies - 1 through 2 (of 2 total)
  • Thread Starter wrknight

    (@wrknight)

    After reading this handbook, I am still confused, partly by terminology and partly by site organization.

    To clarify, my wordpress installation is located at /var/www/wordpress. There is no “global” directory or subdirectory on my system and I am assuming that /var/www/wordpress is the same as “global”. Please verify this is true or correct me if I am wrong.

    Second, I have files at /etc/ngnix/sites-available that I call server blocks that appear to be the same as what is called “per site configuration” files in the handbook. I am assuming they are the same thing. Again, please verify this is true or correct me if I am wrong.

    Third. There is no “restrictions.conf” file in my wordpress installation. Since I have been running this as a single site for 6 years without a restrictions.conf file, do I really need to add this file to go from single site to multisite?

    Finally, let me sumarize the major steps I need to take to convert from single site to multisite:

    Modify wp-config.php file. Next, setup the network and add a subdomain. Next, map the website’s domain name to the subdomain in wordpress. Next, add a server block for the second website.

    In adding a second server block, I think I can simply copy the original to a new one and edit all the domain names. I also think this will work even with let’s encrypt codes included.

    If I am wrong on any of this, please correct me.

Viewing 2 replies - 1 through 2 (of 2 total)
  • You must be logged in to reply to this topic.