How to Install XAMPP and WordPress Locally on Windows PC

Before how to Install XAMPP and WordPress Locally on Windows PC we should know what is WordPress and Xampp.

What is WordPress?

WordPress is the simplest, most popular way to create your website or blog. There are many Websites on the Internet which is powered by WordPress.

WordPress is a free and open-source content management system based on PHP and MySQL. Which means that anyone can use or modify the WordPress software for free.

WordPress makes building a website accessible to anyone – even people who aren’t developers.

What is Xampp?

Xampp is a free and open-source, cross-platform web server solution stack package. XAMPP stands for Cross-Platform (X), Apache (A), MariaDB (M), PHP (P) and Perl (P).

It is a simple, lightweight Apache distribution that makes it extremely easy for developers to create a local web server for testing and deployment purposes. Everything needed to set up a web server – server application (Apache), database (MariaDB), and scripting language (PHP) – is included in an extractable file. XAMPP is also cross-platform, which means it works equally well on Linux, Mac, and Windows. Since most actual web server deployments use the same components as XAMPP, it makes transitioning from a local test server to a live server extremely easy as well.

How to Install XAMPP and WordPress Locally on Windows PC

Step 1: Download and install XAMPP on your computer

The first step is to Download the XAMPP file and Install it on your PC and open it. If you don’t know, follow the steps below.

How to install XAMPP on your PC?

Go to Xampp page by clicking here. You see this Download Xampp by clicking on the red box Download button.

Xampp page
  • Once the download finishes, run the file. If you’re running antivirus software on your PC, you might get a warning like this, Simply click on YES.
  • Once you get through all of the prompts, you should see the standard installer screen.
How to Install XAMPP and WordPress Locally
How to Install XAMPP and WordPress Locally

Just click Next to continue.

You can choose which components to install. To install XAMPP and WordPress, You can click on every component, but this two-component must be there on your PC.

  • MySQL
  • PHPMyAdmin
How to Install XAMPP and WordPress Locally
How to Install XAMPP and WordPress Locally

Just click Next to continue.

You can now select which folder to install XAMPP. You can leave it as the default:

How to Install XAMPP and WordPress Locally
How to Install XAMPP and WordPress Locally

On the next screen, uncheck the box and don’t click on any link.

How to Install XAMPP and WordPress Locally
How to Install XAMPP and WordPress Locally

Just click Next to continue.

How to Install XAMPP and WordPress Locally
How to Install XAMPP and WordPress Locally

Just click Next to continue and you are ready to run the install. The install process might take a few minutes:

 

How to Install XAMPP and WordPress Locally
How to Install XAMPP and WordPress Locally

Once it finishes, you can launch the control panel to start working with XAMPP:

How to Install XAMPP and WordPress Locally
How to Install XAMPP and WordPress Locally

Step 2: Start the Control panel and test your server

Every time you need to open the control panel of xampp before you open your server.

Start the Apache and MySQL because you need to connect the internet using port 80 and database using SQL.

And now type http://localhost/ in the web browser of your choice to access the xampp board. This means that your xamp server is working.

 

But now it’s time to install WordPress on XAMPP. So here’s how to get a WordPress site up and running on XAMPP.

How to install WordPress on XAMPP

Step 3: Add the WordPress files

To download WordPress file you need to go to wordpress.org and download the latest version of WordPress.

After Download WordPress.zip. The file is in the compressed mode, you need to uncompressed the file.

  • Copy the uncompressed the file and paste to C:\xampp\htdocs
How to Install XAMPP and WordPress Locally 1

Go to C:\xampp\htdocs

In this, you can see the copied file of WordPress. You can rename the file also.

Example:- Name of the file is Tech

Here you find the data of the WordPress file.

How to Install XAMPP and WordPress Locally

Step 4: Create a database for WordPress

Next, you need to create a MySQL database for your WordPress install. To do that, launch PHPMyAdmin from your XAMPP control panel:

Go to the control panel and start Apache and MySQL.

xamp-control-panel-running
xamp-control-panel-running

After the start go to a web browser and type “localhost/phpmyadmin/”f

How to Install XAMPP and WordPress Locally

Then click on Databases at the top:

How to Install XAMPP and WordPress Locally

And enter a name for your database and click Create. Your name can be anything – just remember it because you’ll need it for the next step:

Step 5: Install WordPress locally via the on-screen installer

When you visit your test site, you should see the normal WordPress installer. Remember, your test site link is http://localhost/FOLDERNAME:

Enter the Language and click continue.

The only step where this process will differ from a normal install is the database details. When you get to the database details, enter them like this:

  • Database Name = Name of the database you created in PHPMyAdmin, I created “WordPress”
  • Username = “root”
  • Password = leave blank or write

Click on submit. If clicking on submitting this above error is displayed, then go down and check how to Solve an Error establishing a database connection or Continue.

How to Install XAMPP and WordPress Locally

After pressing continue.

Click on Run the installation.

  • Give the site title, you can change after also.
  • Type username and password as it is.
  • Type email-id.

Click on Install WordPress.

After, you see this: The site is experiencing technical difficulties. Reload the page.

Type the username and password as it is

 

Click on login.

This is your Dashboard. Here you can change according to your needs

How to Install XAMPP and WordPress Locally

This is your site.

 

How to Install XAMPP and WordPress Locally

Step 6: How to Solve an Error establishing a database connection

If you see this then follow the command as it is.

This Error establishing a database connection means your database is not connected properly to MySQL. In order to resolve this problem you need to create a user account and connect to WordPress.

To create a user account first go to the browser and type “localhost/phpmyadmin/ “in that go to the User account.

How to Install XAMPP and WordPress Locally
How to Install XAMPP and WordPress Locally

In that go to Add a user account.

How to Install XAMPP and WordPress Locally
How to Install XAMPP and WordPress Locally
  • Type User name and Password same as above.
  • IN Hostname type: – localhost
  • Remember to click in a checkbox field.
How to Install XAMPP and WordPress Locally
How to Install XAMPP and WordPress Locally

How to Install XAMPP and WordPress Locally

After this, the process is the same as Step 5.

To go to the site again 

  • Search in your PC ⇒ Xampp control panel 
  • Open it
  • Now go to chrome in URL type: /WordPress/login and Enter.
  • Your login page 
  • Types username and password and submit.
  • Now your site is open and you are ready to edit.

This way you see how to Install XAMPP and WordPress Locally on Windows PC. I found this tool useful because it is speedier and more effective to create the best websites.

Also View:- How to Install a Bitnami WordPress.How to Install a Bitnami WordPressAlso View:- How to Install a Bitnami WordPressAlso View:- How to Install a Bitnami WordPressAlso View:- 

Also, View- Best android apps all the time

 

About Ashishkumar Vishwakarma

I am Ashish- a Developer live in Mumbai.

View all posts by Ashishkumar Vishwakarma →

19 Comments on “How to Install XAMPP and WordPress Locally on Windows PC”

  1. Good way of describing, and nice piece of writing to get data on the topic of my presentation subject, which i am going to deliver in college.|

  2. I simply could not leave your site prior to suggesting that I actually enjoyed the usual info an individual supply in your guests? Is gonna be back incessantly in order to check out new posts|

  3. Do you mind if I quote a couple of your posts as long as I provide credit and sources back to your site? My blog is in the exact same area of interest as yours and my visitors would definitely benefit from a lot of the information you present here. Please let me know if this okay with you. Thank you!|

  4. I am in fact glad to read this blog posts which includes plenty of useful information, thanks for providing these information.|

  5. Hello there, You have done a fantastic job. I’ll certainly digg it and for my part recommend to my friends. I’m sure they’ll be benefited from this site.|

  6. In our blog post on how to clean earbuds and headphones, we recommend wiping down headphones’ earpads and tips regularly with a mixture of soap and warm water on a lightly damp cloth. If your headphones are powered, make sure they’re off and disconnected before doing this.

  7. Hi there, just changed into aware of your weblog via Google, and found that it is really informative. I am going to watch out for brussels. I will be grateful should you proceed this in future. Numerous other people will be benefited out of your writing. Cheers!|

  8. No matter if some one searches for his vital thing, thus he/she wants to be available that in detail, so that thing is maintained over here.|

  9. Unquestionably believe that which you said. Your favorite justification appeared to be on the web the easiest thing to be aware of. I say to you, I definitely get annoyed while people consider worries that they just do not know about. You managed to hit the nail upon the top and also defined out the whole thing without having side effect , people can take a signal. Will probably be back to get more. Thanks|

  10. all the time i used to read smaller articles or reviews which as well clear their motive, and that is also happening with this paragraph which I am reading at this place.|

  11. It’s such as you read my thoughts! You seem to grasp a lot about this, such as you wrote the guide in it or something. I believe that you can do with some p.c. to pressure the message house a bit, but other than that, that is great blog. A fantastic read. I will certainly be back.|

  12. It’s appropriate time to make some plans for the future and it’s time to be happy. I’ve read this post and if I could I desire to suggest you some interesting things or suggestions. Maybe you could write next articles referring to this article. I desire to read more things about it!|

  13. Howdy, i read your blog from time to time and i own a similar one and i was just wondering if you get a lot of spam comments? If so how do you reduce it, any plugin or anything you can advise? I get so much lately it’s driving me crazy so any help is very much appreciated.|

Leave a Reply