How to setup wordpress on localhost?

October 30, 2008 by: Ranjith

This is very simple using XAMPP.

  1. First download the xampp from http://www.apachefriends.org/en/xampp.html
  2. Extract the file and double click the exe. This will install Mysql and Apache servers.
  3. Once the installation is complete, you will find XAMPP under Start / Programs / XAMPP. You can use the XAMPP Control Panel to start/stop all servers. Start Mysql and Apache servers.
  4. Now open any browser(IE or Mozilla) and enter the address as http://localhost/
  5. Select your Language
  6. Now click phpMyAdmin
  7. Create a new database for your wordpress website. Under MySQL provide the new database name for example "wpdatabase" and select "utf8_unicode_ci", click create.
  8. Download the latest wordpress codes from wordpress.org
  9. Extract and copy folder "wordpress" to C:/Program Files/XAMPP/htdocs/
  10. Open the file wp-config-sample.php in notepad.
  11. Fill the details as below
    define('DB_NAME', 'wpdatabase'); // The name of the database
    define('DB_USER', 'root'); // Your MySQL username
    define('DB_PASSWORD', ''); // password
    define('DB_HOST', 'localhost');
  12. Now open http://localhost/wordpress, provide the website name and email ID and click next.
  13. Login using obtained password and admin as username.
  14. View your first local wordpress website by browsing http://localhost/wordpress
Share/Bookmark:
  • Digg
  • del.icio.us
  • Facebook
  • Google Bookmarks
  • Furl
  • StumbleUpon
  • Technorati
  • email
Similar posts:

Comments

One Response to “How to setup wordpress on localhost?”
  1. JazzianButt says:

    I am using web developer sever suite on my local machine, but i am facing a problem that after successfully installing wordpress latest version when i log in to my wp admin panel i found wordpress old version and only two default themes works. can you please hep me that if there is any other configuration required?

Leave a Reply