Installing wordpress on localhost
First install the XAMPP 1.6.4 which setups apache (web) server and MySQL database on your system. Don’t forget to secure your system by browsing to http://localhost/security/index.php after setup.
Download and copy to c:\xampp\htdocs\ a fresh copy of wordpress. Browse to http://localhost/phpmyadmin and create a new database for wordpress.
Rename the wp-config-sample.php (inside the wordpress directory) to wp-config.php and edit it and enter the correct values for the database connection
That’s all! Now browse to http://localhost/wordpress to finish your setup !!