Magento is one of the most popular ecommerce platforms available today.
Many developer like to build websites, templates and applications on localhost. In this case, we are using WAMP as a server in WINDOWS OS.
Magento requires itself to be installed on a host name at least one period ‘.’ in it, therefore installing to http://localhost or http://localhost.magento doesn’t work
There is a way to fix that.
Go to
C:/Windows/System32/drivers/etc/
Open a file name host in notepad
Add the following line to host
127.0.0.1 www.localhost.com