LOL - reading this thread to me is like someone asked how to make a bannana pie and the other one replies on how to make the apple pie. they might be similar but still made slightly differently. maybe.
anyway - to the linux experts - what the OP here is talking about is XAMPP.
there is a portable program on windows (and apparently on Linux as well) that installs it all in a single folder you choose at installation. then you run it and it opens a GUI where you can select (click) to run Apache server; MySQL; PHP... once you do that you go to localhost in browser and tada - Apache is there. if you open the port to this interface you can get the server online. but this is actually by default all on local machine. it is ideal for a quick testing. again with GUI you would add "add-ons" (from bitnami stack) such as wordpress for example. after you are done you turn off the servers with click and that is it. since it is all contained in one folder you can have multiple folders for multiple local servers. it's not really a super secure setup, but it is a good option to easilyl test osmething.
so what people are advising you is to use the LAMP server provided by Ubuntu. that one runs automatically and also locally. you can disable it's autorun and can then have a command to turn it all off or on. and in this case everything goes into /var/www
this is pretty standard practice over the web. root folder from Apache is in it's configuration files. https://www.tecmint.com/change-root-...he-web-server/
so to understand why you need to learn the file structure in Linux. there is a folder where all configuration files are. servers are setup through them or more commonly their .local versions. the reaosn you never met these is because you had local server. had you opened it to the web, you would have to at least harden it first.
i never tried xampp on linux. i did have default LAMP installed for testing. that is until i discovered virtualbox.
to get the wordpress going in virtualbox i would:
1. download the bitnami stack worpress image
2. open disk image and run it
ta da! server running. local host connects to it and there is wordpress waiting there to be configured.
here is the awesome part - i make a snapshot of the configured wordpress (my theme selected and all that). i can then mess it up completely, destroy it, brick it... all i need is to restore the snapshot and i am back to where i was with wordpress in near pristine condition (on my 15 year old PC this takes about 45 seconds).
Also - l am not a programmer, so sometimes i need help with something from my brother who lives elsewhere. i bridge the network adapter in virtualbox and he can connect to this test server to see what is going on and likely fixes my issue and educates me.
so no, the xampp is not the best option for local server. i am not even sure that virtualbox is. but i do know that virtualbox is better than xampp.
few example vdi image: https://blogs.oracle.com/oswald/impo...-in-virtualbox
ova that bitnami stack uses:
https://docs.oracle.com/cd/E26217_01...import-vm.html
https://www.maketecheasier.com/import-export-ova-files-in-virtualbox/
also Ubutnu (and linux in general) is modular OS. you can add server to desktop or desktop to server. you can mix and match. server apps are light, faster, can run in background, but they do have text configuration files. GUI apps are actually not always needed. Linux helped me to be reminded of that. though i still prefer GUI for desktop use.
also i use windows a lot and got very used to it since their first version. so my go to desktop is KDE found in Kubuntu. though i also like the XFCE a lot and i3 for no nonsense work only windows manager. Mate is also descent. my point is due to modular nature it pays off exploring and finding a GUI you like and feel comfortable with. i for example do not feel too comfortable with Gnome or default Ubuntu interface.
Bookmarks