How to Install WordPress On a Localhost in 5 Easy Steps As the most popular web platform, WordPress is the platform that nearly 50% of the worlds websites are built on.

Thousands of people are entering the community every day. If you too are one of them, we are welcoming you with this easy and beginner-friendly tutorial- “How to Install WordPress on Localhost” in five easy steps.

Learning WordPress is just fun. Nowadays, anyone can build a website for his/her blogging-business or any other purposes within minutes. Yes, CMS (Content Management System) made it super easy for all of us. In this tutorial, we will demonstrate how to install WordPress on localhost in 5 easy steps. 1. Download XAMPP 2. Install & Run the XAMPP on Your PC 3. Download WordPress Latest Version 4. Create a 5. Install WordPress on Localhost

Let's start with this basic question. The easy answer is FREE, Practice, and can’t break anything.

Why Install WordPress on Localhost?

A site in a localhost environment is basically for personal purposes, not for users or audience. The only person who can see the site is you! So, why does anyone need to create a site in localhost? The answer is as just stated, so only you can see your learning work. Before going live with our site or to make a visual presence, we should learn the basics and test the output of our developed solution. A localhost site lets us check and experience the updates, changes, and settings etc. to be sure about the final outputs. Basically, developers use these sites to check their works for being sure about the quality and issues on it. But as a user, you too should create and use one or more localhost sites before making any update or adding a new feature. So, a localhost site actually supports you to prepare for your next final move. Here comes the localhost site to the rescue. How to Install WordPress on Localhost (5 Easy Steps) WordPress made it easy to install the solution with ease both in a c-panel or localhost. Most of the famous hosting provider companies offer one-click installation for WordPress. But, you need to depend on a localhost webserver solution to create a database and save your files when you are creating a local site. To make learning easy, we using the easiest of localhost service providers. XAMPP These are the software that creates localhost on your PC by utilizing software Apache, PHP and MySQL. You may know- PHP is a programming language and MySQL is a database management software. Both of them are required to run a WordPress site. Installing each of these software separately is difficult and time-consuming for beginners. That’s why you need to depend on the solution like XAMPP which is open-source and provides a free solution.

XAMPP is compatible with all the available operating systems like Windows, OS-X, and Linux.

Now, let's start with the first step. Step 1- Download XAMPP

• Simply go to the XAMPP's official website.

• You may select the link on the previous line or visit - https://www.apachefriends.org/index.html

• Select your and click on download button.

There are different versions for different operating systems. Choose the appropriate one for your device. After clicking on the download button, wait for a few moments.

It's around 150 MB file, so you should give some time for it to get downloaded. Step 2- Install & Run the XAMPP on Your PC This is the second step. After downloading the software, you need to unzip it (unless your hardware is set to automatically unzip files that are zipped). When the file is ready, just select the Install button or click on it twice. Soon you will discover that the installation process has begun.

In the next step, you will see some checkboxes these are already marked. You only need MySQL and phpMyAdmin, so unmark all the others. After a few moments, you would see a welcome notice. That means your installation process is working as it should.

If you have any antivirus software installed in your PC, you may see a security alert like this. Don't worry, check any of the given networks and go ahead by clicking on the Allow access button. You may see a language selection option, check one that you want and click on the Save button.

You are almost at the end of the installation process. Just mark this question box and click on Finish button. The XAMPP control panel will automatically run on your device. Congratulations! You have completed the XAMPP installation process! Step 3- Download WordPress Latest Version Now is the time to create a database and start installing WordPress on localhost. To do that, you need to download the latest version of WordPress.

• Go to the WordPress official website, or www..org and click on Get WordPress button from the top right side.

• You will be redirected to a new page.

• Now hit on Download WordPress button.

The download process might take a few moments to begin. You will get a zip file. Unzip the file and copy that for later steps. Step 4- Create a Database To create a database, first you need to prepare a folder on your PC in which you want to save all the data of your local site.

• Go to your local disk, where you saved the downloaded XAMPP file.

• Select the htdocs folder and paste the WordPress latest version you have copied earlier.

Now, rename the WordPress folder. You can avoid this option, if you want to build your site with the name ‘WordPress' itself. We named the folder here ‘mytest’. Refer to the screenshot. You should remember the name you have selected for your database. If you receive an error that states Now, open a new tab on your browser and go to localhost/phpMyAdmin “can't connect to Select Database localhost/phpMyAdmin” or “page can’t be found”. Make sure that you open your XAMPP Control Panel and have Apache and MySQL running as shown below. If they say START, they are not running and you need to select START. Then try the above again.

Insert the same name you have chosen on your local disk. (where you renamed the WordPress folder ) And finally, click on the Create button. Your database will be created within a few seconds.

You have successfully created your localhost database. Now, is time to install WordPress on the localhost. Note: Before going to the final step, you need to start both Apache Web Server and MySQL Database from the Xampp control panel (if you have not already) installed on your PC or Mac. Without starting both of them, you can't get access to PHPMyAdmin. Just go to your app folder. Select the Xampp control panel and click on MySQL and Apache buttons. Have a look at below screenshot. Step 5- Install WordPress on Localhost Open a new tab on your browser and write localhost/your given name (‘mytest‘ in our case) and hit on the Enter button. You will see a WordPress setup wizard like below.

• Select your language and click on continue

• You would see a welcome notice on behalf of WordPress. On the next step, WordPress will require 1. A database Name 2. A user name 3. A password 4. And a database host

• Just click on the Let's go button • These are the fields you can see in the screenshot to the right.

• Provide your database name

• Enter ‘root' as user name,

• Keep the password option blank- it's better and you would find other fields populate from earlier.

• Click on Submit button Give a name to your site. we named our site WordPress ERP here. You can also keep your database name as your site's name. 1. Create a user name and password 2. Enter your e-mail address 3. Be sure to check the “Discourage search engines from indexing this site” option ….Otherwise, Google would start indexing your local site too!

• And, finally click on Install WordPress button! Yes, you have completed your installation. You should see a notice like below.

Check out the Site You Have Built This is the time to check out your local site. How would it look like or how would it work? Give a check.

• This is your backend dashboard or admin panel, from where you would control everything.

So, this was the total process of building a personal testing site on a localhost environment. The process can typically be completed in 10-20 minutes. Wrapping up on How to Install WordPress on Localhost As CMS made it easy to build a website for people of any background, you can consider it as fun. Yes, building a website with WordPress is so easy these days. You already know- how to install WordPress on the localhost, so it's your turn to build a site for learning WordPress or checking/testing any plugin/theme/update, etc. WordPress started its journey just as a blogging platform, but over time it became the most powerful web platform for all sorts of websites. You can easily learn to build an online presence completely free of cost! So, give it a try!!!!

We are always here to help our member registrants! If you are not a member, please consider joining AAOMCP for added guidance and support.

Now, you may enjoy our lessons on working within WordPress!