How to Use XAMPP to Set Up a Local WordPress Website?

How to Use XAMPP to Set Up a Local WordPress Website?

Author: uday123

Date: November 3, 2020 

Category: Guestposts

For any WordPress website, it is necessary for you to step up a locally hosted environment. With this, you can test your site’s features, functions and learn WordPress development in a safe place. Plus, all your data will be completely private.

So, if you are looking to create a WordPress website on your computers using for developing and testing your site, then I will help you out by showing how to do this. XAMPP lets you run a website on your own computer without going online. At first, things might get tricky for you, and you will need a little help to conquer this successfully. At the help of this guide, you will have your a local WordPress testing environment running on your computer. This process that I will discuss with you involves three basic steps-

  • Install XAMPP
  • Run XAMPP and configure your environment
  • Install and run WordPress

But before delving into the steps, first I would like to discuss more about XAMPP.

What is XAMPP?

Are you looking to create a local WordPress site? For this, you will need to set up local web server software (like Apache), Perk, PHP, and MySQL on your desktop.

PHP is a backend programming language while MySQL is database management software. Both of these play an integral part in running WordPress site. But installing and running these elements separately is time taking and quite difficult, especially for beginners.

This is where you will need the help of XAMPP. XAMPP is an acronym for cross (x)-platform, Apache, MySQL, PHP, and Perl. It makes it very easy for you to make WordPress website on local host by enabling you to install all these components in one place and go. Many WP beginners use XAMPP to set up the locally hosted environment in order to run WordPress. Here, you can test themes, experiment with plugins and coding, and so on without harming your website.

It is a free and open software available for all to download. XAMPP comes with a good backup community support which is useful in case something goes wrong.

How to Use XAMPP to Set Up a Local WordPress Site (3 Steps)

In the steps mentioned below, I have talked about how to use XAMPP to install WordPress locally on it. In this guide, I will be covering the steps for the Windows computer. However, it can also be set up and run relatively easily on MAC devices using same procedure.

Step 1: Download and install XAMPP on your computer

In this first step, you need to visit the XAMPP website (Apache friends) and choose the relevant download link on the homepage based on your operating system. This file is about 110 MB in size, so it might take some time to download.

Once the download is completed, install XAMPP on your operating system. This part of the setup procedure doesn’t need much on your part. Choose default setting as it will work best for most users. After completing the wizard, check on the ‘start the control panel now’ option. You’ll get a message to install Bitnami for XAMPP. You do not need this to install XAMPP, so just uncheck the box. Click on ‘Next’ to finish the setup wizard.

Once installation is finished, you can launch the control panel to start working.

Step 2: Run XAMPP and Configure Your Environment

Now, the next step in the process is to run your XAMPP application by hitting ‘Start’. XAMPP will start Apache and MySQL program. You will notice Windows Firewall notification, click on ‘Allow Access’ for both programs to run it on your desktop.

After this, you will see green light highlighted on their names which means both applications are ready to run. Check that the status of both Apache and MySQL are green and running. This will make sure that your database management and server software is ready for your local environment.  Now, you have successfully installed XAMPP on your computers. Now you are ready to create a local WordPress website using XAMPP.

Step 3: Creating a Local WordPress Site with XAMPP

Now, you have to download WordPress. You can go the WordPress.org website and Download WordPress. After the download WordPress, extract files from the zip folder. Find wordpress folder and copy it. Now move to your XAMPP folder.

On Windows it would be like this - C:/Program Files/XAMPP/htdocs or C:Xampphtdocs folder.

Paste your WordPress folder here inside htdocs. You can rename this folder so that it would be easy for you to identify your local website.

Next, open your web browser ant type localhost/folder name. Here you can create a database for your site. It will include name, database username, password, and host information. Now visit phpmyadmin in XAMPP control panel. It will help you to manage your databases using an easy to use interface. Click on Database on the top. Here you can give a name for your new database, and then click on the create button.

Once you have made a database, you can use it for your WordPress site. Go to /localhost/folder name/ and click on the ‘Let’s Go’. Next, it will request you to provide WordPress database information you created earlier. This step will differ from a normal install is the database details. Enter them like given below-

  • Database Name = Name of the database you created
  • Username = “root”
  • Password = leave blank

Now, click on Submit button.

Once you complete the process, you can see your new WordPress install running perfectly on your local host environment. After creating a local WordPress website, you can work on it like live WordPress site.

 

 


World of WordPress is hosted by:

Servebolt: next level high performance hosting.

While others try to add more components to their hosting to make it go faster, we decided to build our hosting cloud fast from the ground up. We did so by stripping out everything we knew was deadweight.