How to Install WordPress Locally on Your PC using XAMPP

Last updated on

Did you know that you can install WordPress locally on your personal computer?

Yes, you heard that right!

Most of the time 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

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

Video Tutorial

Installing WordPress Locally on your PC using XAMPP

If you just want to follow text-instructions instead, then you can follow the step by step tutorial below.

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 the 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 the 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 the 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.

Do you have any issues installing WordPress? Let me know in the comment below.

Our Most Popular Post Right Now!
Disclosure: Some of the links on this site are “affiliate links”, which allow me to earn a small referral payment if you choose to purchase the product or service.

10 Responses

  1. 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

    1. 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. 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!

    1. 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.


    1. 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.


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

    1. 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.


Leave a Reply

Your email address will not be published.

This site uses Akismet to reduce spam. Learn how your comment data is processed.

Recommended Book: WordPress All-in-One For Dummies
Subscribe to Blog via Email
Enter your email address to subscribe to this blog and receive notifications of new posts by email.
This field is for validation purposes and should be left unchanged.

Don’t worry, we hate spam as much as you do.
Do you need help setting up WordPress?
I can help you with blog and site setup, full website build, performance & security, maintenance and support, and many more.
Recommended Web Hosting