How to Install WordPress Locally on Your PC using XAMPP

Did you know that you can install WordPress locally on your personal computer? Yes, you heard that right! Most of the times theme designers and plugin developers install WordPress on a local server environment to speed up their development process.

As a beginner, you can use it to test plugins and themes and/or make changes to the site before making it live for your audiences.

In this guide, we will show you how to install WordPress on your Windows computer using XAMPP.

This tutorial assumes that you already have installed XAMPP on your computer. XAMPP is a free and open source cross-platform web server developed by Apache. You can download XAMPP by going to their official website.

Video Tutorial

If you don’t like the video or need more instructions then continue reading below.

8 Easy Steps How to Install WordPress Locally on PC/Windows with XAMPP

Step 1: Download the latest WordPress installation package

To start, first, you need to download the latest WordPress installation from its official download page.

To do this, click on Download WordPress button for the latest WordPress version, the installation package will be saved in your computer for a few minutes depending on your network connections.

Step 2: Extract Downloaded File

Extract the zipped archive to your desktop. Then, copy the extracted WordPress folder into the htdocs folder within the xampp » htdocs directory.

The next steps would be setting up your local server and creating a MySQL Database for WordPress to use.

Step 3: Run XAMPP

To do this, open up XAMPP control panel, but before using XAMPP, make sure that you don’t have any other application running that also uses the same ports. Skype is a common example in this regard. Quit any such application and restart XAMPP.

Alright, so in the XAMPP control panel, you will find different components listed – Apache, MySQL, FileZilla, Mercury, Tomcat etc. All of them have separate start/stop, Admin, Config and Logs buttons. Fire up Apache and MySQL by clicking the respective Start buttons. If they have started successfully, you will notice a light green background behind the component names.

To test your local server, in your browser enter the following URL – http://localhost/

Step 4: Create a MySQL Database for WordPress to use

To do this, in your browser enter the following URL – http://localhost/phpmyadmin. This will take you to the phpMyAdmin page.

From the menu on top of the page, click the Databases link. Right under the big Databases title, you will find a section titled Create database, enter a database name wordpress and click Create. This will create the database for you. Note down the database name, you will need this credential for WordPress installation process.

Step 5: Go through the Installation Process

In your browser, navigate to http://localhost/wordpress/. The first thing you will notice is a message, telling you to select a default language for your website. Click on the Continue button to proceed.

On the next screen, you will see a message, asking you to prepare the necessary information for the installation. Since we already have this information (from step 4), simply press the Let’s go! button.

Step 6: Enter MySQL Database Details

You would need to enter the details for your newly created MySQL database. Provide the following information in the boxes:

  • Database Name: name of the database you created earlier(step 4)
  • User Name: root
  • Password: leave it empty
  • Database Host: localhost
  • Table Prefix: wp_

Once you have provided the necessary information, press Submit to continue.

WordPress will now check if your settings are correct. If you have entered all the necessary information, you will see a confirmation screen. Press the Run the Install button to proceed.

Step 7: Enter Website Details

From here, you’ll have to enter the information about your administrative username and the title of your new site. In addition, you can specify whether you’d want search engines to index your site or not. Once you fill in that information, press the Install WordPress button. Bear in mind, however, that you should specify a real email address. It can be later used in case you forget your password.

Step 8: WordPress Dashboard

If everything is okay, you will be provided with a success page. Click the Log In button, this will take you to the login page of your website. Enter the username and password you just provided and click Log In button. If they are correct, you will be taken to the admin dashboard of your WordPress site.

You can visit URL: http://localhost/wordpress to check the front end of your WordPress website.

That’s it!

Your new WordPress application is now installed locally on your computer with XAMPP.

2017-09-06T01:51:49+00:00

About the Author:

Rodney Lacambra is the founder and editor of WPMakeSite Blog and is a freelance WordPress Developer by profession. Learn more about him here and connect with him on Facebook, Twitter, Google+ and LinkedIn.

10 Comments

  1. Jon September 23, 2016 at 11:35 am - Reply

    I am lost somewhere on the step 6, should i use wordpress anytime on the process? i am getting an error. what am i missing.please help

    • Rodney Lacambra September 24, 2016 at 10:55 am - Reply

      Hi Jon, thank you for your interest in learning WordPress.

      To answer your question.

      You should not use “wordpress” anytime. Also, you can name your database any way you want it, as stated in STEP 4.

      However, for this particular guide I have just used it “wordpress” as an example name for my database and leave the rest as default. That is, leaving the database user name as “root” and the password “empty”.

      I suggest, creating new database and check the above instructions.

      I hope this makes it clearer now. Should you still have some issues, just let me know.

  2. Luke Kyle October 3, 2016 at 7:39 pm - Reply

    I’m not seeing this instruction: “Note down the database name, you will need this credential for WordPress installation process” after entering the “wordpress” and clicking on “create”. Step 5: This link “http://localhost/wordpress/.” is saying, “object not found”. I’m totally lost. Please help!

    • Rodney Lacambra October 4, 2016 at 12:15 pm - Reply

      Hi Luke, as you can see on “Step 4: Create a MySQL Database for WordPress to use”. This is where the magic happens.

      For you to run any WordPress application, you MUST need to first create a Database and for this example, I named my database “wordpress”. And leave everything as “default”. Please take note the word here “default”.

      It means that the database user name should be “root” and the database password is “empty”.

      Also, for you to access this URL: http://localhost/wordpress/.

      REMEMBER: the word “wordpress” that comes after localhost is a folder that corresponds to the WordPress files you have extracted in STEP 2.

      Hope this clears everything.

      Let me know if there’s any else you need help with.

      Rod

  3. Luke Kyle October 6, 2016 at 4:58 pm - Reply

    I’m in. successfully installed wordpress locally. Thanks Rod. 5 stars!

    • Rodney Lacambra October 6, 2016 at 6:53 pm - Reply

      Glad it worked for you, Luke. Happy coding!

      Please check regularly for new posts.

      Thank you and I look forward to seeing your great work live.

      🙂

  4. GCCTechnogram March 27, 2017 at 11:42 pm - Reply

    thanks for such a useful collection

    • Rodney Lacambra March 28, 2017 at 8:37 am - Reply

      Thanks for dropping by GCCTechnogram. Glad you found this guide useful.

  5. maricor April 30, 2017 at 2:55 pm - Reply

    the same problem as luke…after step 5 it appears object not found.I don’t know why I just follow the step.

    • Rodney Lacambra April 30, 2017 at 3:37 pm - Reply

      Hello Maricor, please double check your Database. If you have named your WordPress folder differently, so obviously you’ll get an error.

      Make sure the file you add to your htdocs folder is named “wordpress” otherwise it won’t work.

      Therefore, if you named it to something else, you should visit “http://localhost/{thenameofyourwordpressfolder}”

      Let me know if that solve your problem.

      Thanks for stopping by.

      ~Rod

Leave A Comment

4 Shares
Share3
Tweet
+11
Share
Pin
Stumble

Wait! Don't go just yet.

Get more WordPress tips only shared with email subscribers. Just enter your name and email address below.

This information will never be shared for third part