Best way to start to use Ubuntu server to use for hosting software?

I’m new to using Ubuntu server and was wondering what would be the best way to use Ubuntu server for self hosting for someone who Is new to Ubuntu server. Also I have been using Linux for a few years so I’m used to using the Ubuntu based Linux terminal and it’s commands. Any advise is helpful. I use the command line version of Ubuntu server, not gui.