Not sure where to start? Take the 1-minute course quiz →

How to Install WordPress on Localhost Using XAMPP

Follow these simple steps to install WordPress on your localhost using XAMPP:

Step 1: Download and Install XAMPP
  1. Download XAMPP from the official website: https://www.apachefriends.org/
  2. Install XAMPP by following the instructions.
  3. Open XAMPP Control Panel and start these services:
      • Apache (for the webserver)
      • MySQL (for the database)

How to Install WordPress on Localhost Using XAMPP

Next Step

How to Install WordPress on Localhost Using XAMPP

Apache (for the webserver) MySQL

 

Step 2: Download WordPress
  1. Visit https://wordpress.org/download/ and download the latest WordPress ZIP file.

How to Install WordPress on Localhost Using XAMPP

  1. Extract the ZIP file.

How to Install WordPress on Localhost Using XAMPP

 

 Step 3: Move WordPress to XAMPP
  1. Go to the XAMPP installation folder (default is C:\xampp).
  2. Open the htdocs folder (C:\xampp\htdocs).
  3. Create a new folder (e.g., mywebsite) and paste the extracted WordPress files inside.

How to Install WordPress on Localhost Using XAMPP

Step 4: Create a Database Using phpMyAdmin
  1. Open your browser and go to http://localhost/phpmyadmin/.
  2. Click on Databases.
  3. Enter a database name (e.g., wordpress_db) and click Create.

How to Install WordPress on Localhost Using XAMPP

Next Step 

How to Install WordPress on Localhost Using XAMPP

 

 Step 5: Install WordPress
  1. Open your browser and go to http://localhost/mywebsite.
  2. Select your preferred language and click Continue.

How to Install WordPress on Localhost Using XAMPP

3. Enter your database details:

      • Database Name: wordpress_db
      • Username: root (default for XAMPP)
      • Password: (leave it empty)
      • Database Host: localhost

How to Install WordPress on Localhost Using XAMPP

4. Click Submit → Run the Installation.

How to Install WordPress on Localhost Using XAMPP

Step 6: Set Up Your Website
  1. Enter your website details:
      • Site Title
      • Username
      • Password
      • Email Address

2. Click Install WordPress.

How to Install WordPress on Localhost Using XAMPP

3. Once done, log in using your credentials at http://localhost/mywebsite/wp-admin.

Congratulations! You’ve successfully installed WordPress on your localhost using XAMPP.

Free downloads

Found this useful? Get our free cheatsheets

SEO cheatsheet, Google Business checklist and a full course guide. Enter your WhatsApp number to download them instantly.

Instant download. We may WhatsApp you course tips; reply STOP anytime. No spam.

Refer a friend, earn 10% Earn 10% of every course your friends buy. They save 10% on their first course.
Explore courses
+91 79760 71210 WhatsApp us