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 s:
      • Apache (for the webserver)
      • MySQL (for the database)

Next Step

Apache (for the webserver) MySQL

 

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

  1. Extract the ZIP file.

 

 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.

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.

Next Step 

 

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

3. Enter your database details:

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

4. Click SubmitRun the Installation.

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

2. Click Install WordPress.

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.