Did you know that you can install WordPress locally on your personal computer? Yes, you heard that right! Most of the times 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.
If you don’t like the video or need more instructions then continue reading below.
8 Easy Steps How to Install WordPress Locally on PC/Windows with XAMPP
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 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 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 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.
Your new WordPress application is now installed locally on your computer with XAMPP.