Step to install magento on localhost
1) First download the full release package from
http://www.magentocommerce.com/download
select full release.Hope you have already installed xamp or wamp for server running.if not then you can download wamp from here
wamp server download
2)Now extract the magento-sample-data-1.6.1.0.zip folder to httpdocs if you are using xamp server or to www folder if you are using wamp.
3)Now go to http://localhost/phpMyadmin and create database name it (i.e.magento)
4)Now from http://localhot open magento and you will have the following screen
5)After selecting magento the following screen will appear
6)Click on mark and continue
7)Remain the default values as it is it can be modified later and in the following figure enter database name created earlier and database username and password. Unmark the
enable chart and continue.if you are confused about db username and password put username to 'root' and password field blank.
8)Clicking continue the database tables for magento will be created .it will take time 1-2 minute so be patient.
9)Now create admin account that you will use for site editing then continuing the installation of the magento will be finished.:)
10) Now you could Go to front end as a visitor and back end for admin area where you could manage site content. hope it will be help full to you if you have any query comment here....