I have been asked to setup an online web server (e.g, digital ocean) and describe the steps I took. (e.g, installing and configuring private keys, firewall and web server).
And also what steps did I take to secure my setup?

I know very basic about php and HTML and this my first time setting up an online web server. My main question is that to set up an online web server I must pay money and buy space or I should use my own PC as a web server. which one is easier? I am trying to stick to the above question. Any help or reference to guide me will be appreciated.