How to install WordPress on the local system?

In this post you will see how to install wordpress on your local machine. What are the prerequisites while installing wordpress? How to configure it? You will learn this things in this post.