How to Install WordPress Using XAMPP on Windows 11
Installing WordPress locally on Windows 11 using XAMPP is a great way to test themes, plugins, and website changes before deploying them online. Follow this step-by-step guide to set up WordPress on your local machine.
Step 1: Download and Install XAMPP
- Go to the official XAMPP website and download the latest version for Windows.
- Run the installer and follow the setup instructions.
- Select Apache, MySQL, and PHPMyAdmin during installation.
- Once installed, start Apache and MySQL from the XAMPP Control Panel.
Step 2: Download and Extract WordPress
- Visit the official WordPress website and download the latest version.
- Extract the WordPress folder into the
htdocs
directory located in your XAMPP installation folder (usuallyC:\xampp\htdocs
). - Rename the extracted folder to your desired project name (e.g.,
mywebsite
).
Step 3: Create a Database for WordPress
- Open your browser and go to
http://localhost/phpmyadmin/
. - Click on Databases, enter a name (e.g.,
wordpress_db
), and click Create.
Step 4: Configure WordPress
- Open
http://localhost/mywebsite/
in your browser. - Select your preferred language and click Continue.
- Enter database details:
- Database Name:
wordpress_db
- Username:
root
- Password: (leave blank)
- Database Host:
localhost
- Database Name:
- Click Submit, then run the installation.
Step 5: Complete the WordPress Setup
- Enter your website title, admin username, password, and email.
- Click Install WordPress.
- Once completed, log in to your local WordPress site using
http://localhost/mywebsite/wp-admin/
.
Conclusion
You have successfully installed WordPress on Windows 11 using XAMPP. You can now test and develop your website in a local environment before making it live.