@PhlipElder said in Need: How-To Step-by-Step for Multiple WordPress sites on Ubuntu 20/22 LEMP:
@Pete-S said in Need: How-To Step-by-Step for Multiple WordPress sites on Ubuntu 20/22 LEMP:
@PhlipElder said in Need: How-To Step-by-Step for Multiple WordPress sites on Ubuntu 20/22 LEMP:
We've installed Ubuntu 22 a number of times reaching various points towards the goal of hosting multiple WordPress sites in a single Ubuntu v22.04 (as of this writing) using one MariaDB instance with multiple databases set up within.
Just a heads up, but there are actually several reasons to avoid this.
Professional hosting companies for example never do it.
It's simply better to run the sites isolated from each other, for example using VMs or containers like LXC. You can still use a common MariaDB server if you like.
It's more secure and it's more flexible and the overhead is insignificant.
But you may of course have your reasons for wanting to do it 
Yeah, I looked into installing the latest package and it didn't want to so I left it.
Reason is n00b. It's a learning process that will give us the foundation to build on as knowledge develops.
Well, we're all beginners at first.
But yeah, you should for sure look at installing ubuntu's nginx package:
apt install nginx
Don't use the nginx' ubuntu package from nginx' repositories. That's for advanced users that use them for specific reasons. They are not the same.
A package contains not just the software needed, but also installations scripts, default configurations and other things. That's why you want to use the official ubuntu package and not nginx' ubuntu package. It significantly increases the chance that you can upgrade your ubuntu server to a newer version without problems.
When searching for installation help, don't search for nginx, search for ubuntu nginx. Check out the link I gave in an earlier post. If a guide uses nginx repositories then look elsewhere.
Always set up the webserver with the different sites first, then look at installing wordpress, mariadb etc.
But yes, installations guides are often a mess. A lot of time people posts guides what worked for them but it's not always the best way or current way of doing things.
Sometimes guides also assumes you having certain packages already installed, which you might not have.
PS. Here is another guide that should work pretty well:
https://www.digitalocean.com/community/tutorials/how-to-install-nginx-on-ubuntu-22-04