WordPress is fun to learn. Anyone who would like to try and create a website would certainly be encouraged with the easiest ways to install WordPress on your machine.
The first step in any website development process is often WordPress installation on your PC/LocalHost. The process of installing WordPress on the localhost (your Windows or Mac machine) is known as Localhost Installation.
Read this article for the complete guide to install WordPress on localhost.
Step 1. Download a Local Server Software
Three items need to be in order for WordPress to work:
- A server-side programing language like PHP
- A web server app. Apache is the commonest
- A database management technology like MySQL
While all three of these platforms can be installed separately, things can be out of hand. You need to be an expert on the computer. So, let’s make things easier you can simply download XAMPP.
Step 2. Install XAMPP
The second step is important. You have to unzip it after you download the application. If the file is enabled, simply select or double-click the Install icon. The installation process is about to be found.
Step 3. Download WordPress
Before installing WordPress on your localhost, you must get the pre-required WordPress files.
After you finish downloading.
- WordPress comes in zip format, so you have to extract it first. That should be quite straightforward.
- Since we are using Windows, copy the extracted folder to C:\xampp\htdocs
- We recommend renaming the folder, though optional. We will change the folder to the “test website” for this tutorial.
Step 4. Open XAMPP and Start Apache and MySQL
Boot up XAMPP when the installation is finished.
Start Apache and MySQL.
Step 5. Time to create a Database
Creating a database will be your last step before you install WordPress. In order to create a database, you need to follow the step given by us.
- 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.
You can always rename the WordPress folder but it is optional. For this tutorial, we have renamed the folder here ‘mytest’.
Check the below screenshot. You should remember the name you have selected for your database.
- Now, open a new tab on your browser and go to localhost/phpmyadmin
- Select Database
- Write the same name you have written on your local disk. And finally, click on the Create button. Your database will be created within a few seconds.
Congratulations! You have successfully created your localhost database. Now, it is time to install WordPress on the localhost.
Note: You will launch both the Apache Web Server and MySQL Database in the Xampp control panel on your PC or on your Mac before moving into the last stage. You can not enter PHPMyAdmin without starting both.
Step 6- Install WordPress on Localhost
Let’s begin installing WordPress on your localhost. Open a new tab on your browser and write localhost/your given name (‘mytest‘ in our case) and hit on the Enter button.
After this, you will be welcomed with the screen below. You need to click Let’s go!
- Provide your database name, you can write ‘root’ as user name, keep the password option blank- it’s better and you would find other fields filled up 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.
- Write your user name
- Give a strong password
- Write your personal e-mail address
- Carefully check the search engine visibility button. Otherwise, Google would start indexing your local site too!
- Click on the Install WordPress button!
Thanks for staying with us. You have successfully installed WordPress on localhost.