close

WordPress is the most popular and user-friendly CMS (Content Management System) available out there for us to develop and manage our websites or blogs. On the other hand, XAMPP which is an open source server-side software which provides all the right features for using WordPress locally on Windows PC. XAMPP and WordPress assimilate for you to develop local WordPress site from your very own Windows PC which helps you in creating a local testing site where you can play with it without any fears of launching the site live with errors.

With local WordPress site, you can first make sure the site is running perfectly without errors like plugins or themes compatibility issues and then migrate it back from the server side to make it live once testing is complete. Now being told with some benefits of using WordPress locally, we know that installing WordPress with XAMPP can be a little-complicated process but don’t worry because, in this article, we will guide you on how to install WordPress locally on your Windows PC.

Prerequisites:

Before you start following the guide there are some requirements that you should preserver before installing WordPress Locally on Windows.

You must have XAMPP installed on your Windows, if not, then follow the Quick Tip below which will guide you to install XAMPP on your Windows PC.

Quick Tip
XAMPP is a another alternative to WAMP and it is an easy to install Apache distribution containing MariaDB, PHP and Perl. You can install it by following our step by step XAMPP Installation guide.

Read More

Step 1: Start XAMPP Servers

Open your XAMPP control panel and start both Apache and MySQL service modules as shown above. Now open up any preferred browser in your Windows and go to “http://localhost/” just to ensure that you are accessing the XAMPP localhost server.

Step 2: Download WordPress

From your browser go to https//www.wordpress.org, after landing on the homepage click on the Get WordPress button located on the top right side of the page as highlighted above.

After directed to the Get WordPress page as shown above click on the Download WordPress button. This will automatically download a Zip file of the latest WordPress. Don’t open and extract the file yet, just keep it safe in the Downloads folder for now.

Step 3: Locating XAMPP HyperText Folder

Open up the directory where you have installed the XAMPP, if you followed our guide or relied on custom installation then your XAMPP should be installed in the default C:/ drive. Open up the XAMPP folder located in the C:/ drive, the directory will be something like this: C://xampp. Once you have entered the XAMPP folder, locate and open the htdocs folder as shown above.

Inside htdocs folder, create a new folder with a preferred name, in my case I have named it “testsite” as shown above. You have to remember the name of the folder because it will be used to access the site on your localhost server, in my case I will be accessing it by http://localhost/testsite.

Step 4: Unzip WordPress files

Now open up the created folder and Unzip the entire files of the WordPress Zip file that you downloaded from the WordPress.org inside the folder as shown above.

Step 5: Create MySQL Database for WordPress

To install WordPress you have to create a MySQL database through PhpMyAdmin.

Open up the XAMPP control panel as shown above. From the panel click on the MySQL Admin button under the Actions column as highlighted above. This will launch the phpMyAdmin panel on the default browser in your Windows.

From the phpMyAdmin home page, click on the Databases link under the Server heading as highlighted above.

Now you have to type in the name of the database, it can be any desirable name but you have to remember it for using it in the WordPress installation process. After entering the database name, click on the Create button as highlighted above.

Step 6: WordPress Installation Process

Now to install WordPress, visit your site by entering https://localhost/(foldername), in (folder name you will enter the name of the folder you created inside htdocs), in my case it is https://localhost/testsite. Hit enter to get directed to the WordPress setup page as shown above.

From the setup select the Language and click on the Continue button to proceed.

For database connection, in this phase, you have to enter the following fields as shown above.

Database Name: The name of the database you created in phpMyAdmin.

Username: the default username will be “root”

Password: let the Password field to be empty

That’s it, let the other field to be filled its default information as highlighted above. Now simply click on the Submit button.

Now in the next phase, you have to run the WordPress installation in order to let it communicate with your database. Simply click on the Run the installation button as highlighted above.

From the installation phase, you have to fill the following fields with the required information as shown above. Make sure to remember the Username and Password you have provided. After you provide the information click on the Install WordPress button as highlighted above.

When the WordPress has been installed successfully as shown above. Click on the Log in button proceed to the login page.

In the Log-in phase, provide the prescribed Username and Password and then click on the Log In button to log in your WordPress site as shown above.

After successful login, you will be directed to the Dashboard of your WordPress from where you can see and customize your site and Enjoy it using on your localhost as shown above.

That’s it! Hope this helps you with installing WordPress Locally on your Windows PC. If you have any confusion or experienced any difficulty following the instruction, please let us know in the comments section below.

Tags : install wordpress locally in Windowsuse WordPress locally on WindowsWordpress locally on Windows pc

About Author

EDITORIAL STAFF

EDITORIAL STAFF

Read latest technology news, reviews, how-to guides and other tips & tricks covering Windows, Linux, Mac & Android operating systems prepared by our team.