Starting A Server

Hi, I am new to servers and such and I was have some questions about starting one. I have a spare computer that I would like to turn into a server to host webpages, connect to, etc. And I was hoping I could get a idea of where to start off from someone. Thanks in advance.