Friday, June 20, 2014

How to Install WordPress on localhost using XAMPP

Have been working on wordpress and found it very convenient to have a local installation of wordpress on a local machine to do a lot of on the spot testing . Heres is the easiest way of having a local installation of wordpress functional on your local desktop or computer

Step 1: Download and install the latest version of XAMPP

XAMPP is an easy to install Apache distribution containing MySQL, PHP and Perl. XAMPP is really very easy to install and to use – just download, extract and start.To download XAMPP you need to navigate to the Apache Friends website ( and click the download link. Simply follow the on screen instructions to install the entire setup . Once completed you will have a fully functional setup : Apache + MySQL + PHP + Perl on you machine .

Why XAMPP you ask . Heres the answer :-)

  • The most popular PHP dev package
  • For Windows, Mac OS X & Linux
  • Easy installation and configuration
  • Completely free of charge

  • After the installation is complete, you will find XAMPP under Start | Programs | XAMPP. You can use the XAMPP Control Panel to start/stop all server and also install/uninstall services.

    Step 2 : Getting Wordpress on top of XAMPP

    Double click the XAMPP desktop icon or navigate to the art menu and start XAMPP from there. It must be running for us to install WordPress. Look at the below image for confirmation that the XAMPP server is running. Check XAMPP is running .

    For this open up your web browser and navigate to http://localhost. You should be automatically redirected to the XAMPP page. You should receive a message that states “Congratulations: You have successfully installed XAMPP on this system!“.

    Next Navigate to the WordPress website ( and download the latest version. Unrar the file and save it in a folder . Navigate to the root of your XAMMP installation c:\xampp\htdocs. This is the location where we create our website using localhost. The default XAMPP folder should contain a few folders and a bunch of system files.

    Step 3 : Getting Database Setup

    At this point it is time to create our blank MySQL database for WordPress to use. When we installed XAMPP it also comes complete with phpMyAdmin.Open up your web browser and navigate to http://localhost/phpmyadmin/

    If you went the step further when installing XAMPP and set up the security you will end up at the phpMyAdmin login page as pictured below. If you did not set up security yet, you will gain immediate access into the phpMySQL area. Enter your login credentials to access this area.

    Under the heading “MySQL localhost” , create a new db using a proper name. It is now time to run the WordPress installer script and install WordPress.

    Step 4  : Running Wordpress 

    OK, now you have your “WordPress” folder sitting inside the website root C:\xampp\htdocs\wordpress.
    Now we need to open up a web browser again and start the installation script. Navigate to http://localhost/wordpress
    You should reach the default WordPress installation page . Remember to modify the wpconfig file

    And you are done :-)


    Popular Posts