you usually pay a web hosting company to host a server for
you. there are other ways to do it, but that's the usual.
there are also free web hosting companies, but they all have
significant drawbacks. but for a beginner, it's not a bad idea to
start with a free server and see how serious you are about having a