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

8 Responses 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?

  2. deepika says:

    when i try to run php file it displays page not found
    i have used same procedure as you say but i am not able to run php file

  3. abhilash kth says:

    why to use xamp just use wamp server no hassle

    My brother (15 yrs) install and teach joomla ,wordpress, etc popular cms and works like server

    easy to use no hassle in xa,mp

  4. abhilash kth says:

    why to use xamp just use wamp server no hassle

    My brother (15 yrs) install and teach joomla ,wordpress, etc popular cms and works like server

    easy to use no hassle in xa,mp
    if tere some pbm
    call me 9 4 810 7 3 3 4 6

  5. abhilash kth says:

    why to use xamp just use wamp server no hassle

    My brother (15 yrs) install and teach joomla ,wordpress, etc popular cms and works like server

    easy to use no hassle in xa,mp
    if there some pbm
    call me 9 4 810 7 3 3 4 6

  6. Mohammed Afzal says:

    Same error i got were i need to copy the wordpress application

  7. Same error i got were i need to copy the wordpress application

  8. hi there. I observe that you’re most likely focused on generating back-links and stuff. I’m promoting scrapebox auto approve link lists. If you’d like to trade ?

Leave a Reply