You may want a webserver (like apache), database (like postgre), a programming language (like
java), and a server (computer).
This is similar to the "how to make a MMORPG" question I answered before. I went into detail and actually tried to explain how to make one. This is a huge question and making websites is not trivial (unless it's just a few static HTML pages).