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.
- 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.
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.
Just click Next to continue.
You can now select which folder to install XAMPP. You can leave it as the default:
On the next screen, uncheck the box and don’t click on any link.
Just click Next to continue.
Just click Next to continue and you are ready to run the install. The install process might take a few minutes:
Once it finishes, you can launch the control panel to start working with XAMPP:
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
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.
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.
After the start go to a web browser and type http://localhost/phpmyadmin/
Then click on Databases at the top:
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
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.
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
This is your site.
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 http://localhost/phpmyadmin/ in that go to the User account.
In that go to Add a user account.
- Type User name and Password same as above.
- IN Hostname type: – localhost
- Remember to click in a checkbox field.
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