🔧 Install WordPress on Localhost using XAMPP

Step 1: Download & Install XAMPP

Visit https://www.apachefriends.org and download the XAMPP version suitable for your operating system.

XAMPP download page (screenshot)

Run the installer and complete the setup (you can use the default settings).

Step 2: Start Apache and MySQL

Open the XAMPP Control Panel and click Start for both Apache and MySQL modules.

XAMPP Control Panel (screenshot)
âš  If Apache cannot start, try changing the port in httpd.conf to 8080.

Step 3: Create a MySQL Database

Open your browser and go to http://localhost/phpmyadmin

Click Databases, enter a name like wordpress_demo, then click Create.

phpMyAdmin create database (screenshot)

Step 4: Download and Extract WordPress

Go to https://wordpress.org/download/ and download the latest version.

Unzip the file and rename the folder (e.g., wordpress_demo), then move it into the XAMPP htdocs folder:

C:\xampp\htdocs\wordpress_demo

WordPress folder in htdocs (screenshot)

Step 5: Run the WordPress Installer

Open your browser and visit:

http://localhost/wordpress_demo

Select your language and continue to the database setup screen.

WordPress database config screen (screenshot)

Step 6: Configure Your Site

Fill in site information:

Click Install WordPress and wait for it to complete.

Login page: http://localhost/wordpress_demo/wp-admin

WordPress login page (screenshot)

✅ Finished!

WordPress is now installed on your local machine. You can build and test your site before putting it online.