DEV Community

loading...
Cover image for How to install WordPress on localhost?

How to install WordPress on localhost?

stackfindover profile image Stackfindover ・2 min read

Hello guys today we will learn how to install WordPress on localhost? So let’s get started.

Installing WordPress on localhost is very simple. You just have to follow some easy steps. You can not install WordPress on your computer directly. You must have to create an local environment in your system then install WordPress. Initially, it is about just 3 major tasks. Such as:

  1. Create an environment
  2. Download WordPress
  3. Install WordPress on localhost

Step:1

First, we need to create a local environment, please check the below video for creating a local environment in your system.

How to setup localhost environment in your system

Step:2

After setup the local environment we need to download WordPress, then we need to do put Unzip WordPress in the XAMPP htdocs folder.

Step:3

Also, we need to create a database for WordPress, WordPress site needs a database to save its data. Go to localhost/PHPMyAdmin on your browser. Click on “New” and give it a name then click on “Create” to finish the process.

Step:4

After creating database goto browser type localhost/WordPress (name of your WordPress file in the htdocs) on your browser’s address bar and hit enter. Now perform a few more actions to complete the WordPress installation on localhost. Select language and click Continue.
Click on the Let’s go! button on the following page.

Give all Required Information
in this page requires Database Name (the database you’ve created earlier in Step 3). The username will be “root” and Password blank as mentioned in the XAMPP installation success page.

Hit the Submit button at the bottom and click Run the installation on the next page.

Complete WordPress Installation with Admin Information
Give your site a title, username, password, and email address. Finally hit the Install WordPress button at the bottom.

You have successfully installed WordPress on your computer. Log into your locally hosted WordPress site now.

if you have followed all the steps above, you stand no chance of facing any error along the way of WordPress installation on localhost. Now do whatever you want with your WordPress site on your computer.

WordPress Installation video tutorial:

Click here to read the article with images for the better experience

More articles related to web development

Slick Slider With Motion Blur Effect
Profile card design HTML & CSS
YouTube Loading animation

Discussion (2)

pic
Editor guide
Collapse
grocker42 profile image
Grocker

Why not using local by flywheel or laragon ?

Collapse
stackfindover profile image
Stackfindover Author

Yes, we can use "flywheel or laragon" both, but this article related to Xampp Server.
Thanks :)