@soudk I had similar issues. I host it on a raspberries pi and use this: https://ownyourbits.com/nextcloudpi/
It's probably the easiest way to get it up and running. If you have a different device, you could also use the snap image. Installing by hand is somewhat more involved but doable. I was able to get that done once by following some tutorial or other. Bit difficult though if you know nothing about networking and servers like me when I did that...