How to install wordpress locally

Early in my career I tried to install WordPress locally but failed terribly.

I searched the Internet with the term ‘how to install WordPress on localhost’ and tried to install WordPress using one of the guides. But I failed. I was getting an error message There are tons of guides available on the Internet, but most of them were difficult to understand for me.

Anyway, as I faced these problems while installing WordPress on the local server and now one of my new colleagues facing the same problems. So I thought I would write a guide to my readers for from beginners to professionals, everyone can easily install WordPress on the local server. I covered the installation process for all platforms. 

I covered the installation process for all platforms. I covered all detailed so you can choose an appropriate application for yourself.

Why installing WordPress on Localhost is important?

If you’re new to development then it is best to first install wordpress in localhost. Because you may be stuck with a problem with hosting and Cpanel on first use. In addition to localhost help, you make the entire site without any problem and you can test your web application or applications the way you want.

Easy to test: The local installation of WordPress offers you the ability to quickly test plugins(10 Must Have WordPress Plugins) and themes(Best WordPress themes for blog). And you can do this without anything on your live site to break.

Reduce site risk: You can not afford to make drastic changes – like changing a theme and plugins – on a live website. This may break your site, and the availability and reputation of your website will be severely affected. The best option is to test offline and then make the changes after extensive testing.

Save time and provide flexibility: Build a modern WordPress website from scratch takes time. If you were to go the direct live server, you spend hours online to get your website up and running. However, if you opt for local installation, an Internet connection will be required when you want to push the online site.

Applications Lists For Installing WordPress on Localhost(Select according to your choice)

XAMPP:- XAMPP is open-source software developed by the Apache friends. XAMPP software package contains the Apache distribution for Apache servers, MariaDB, PHP, and Perl. And is essentially localhost or a local server.

WAMP:- WAMP is an acronym that stands for Windows, Apache, MySQL, and PHP. This is a software stack that means installing WAMP install Apache, MySQL, and PHP on your operating system  

MAMP:- MAMP is free, local server environment that can be installed under macOS and Windows only with a few clicks. MAMP provides them with all the tools they need to run WordPress on their desktop PC for testing purposes or development, for example. You can even easily test your project on a mobile device. No matter whether you prefer Apache or Nginx web server other than MySQL as the database server, or if you want to work with PHP, Python, Perl or Ruby. 

AMPPS:- AMPPS is a software stack from Softaculous enabling Apache, MySQL, MongoDB, PHP, Perl, Python and Softaculous auto-installer on your desktop. It includes everything you need for website development. Start developing your website from open source web applications or just start writing code yourself.

EasyPHP:- EasyPHP is a complete package that allows to use all the power and flexibility that offers the dynamic language PHP. Package includes an Apache server, MySQL database, PHPMyAdmin as well as easy development tools for web sites and applications.

Uniform Server:-Uniform Server is a lightweight solution free WAMP server for Windows. Less than 24MB, modular design, including the latest version of Apache2, Perl5, PHP (switch between PHP53, PHP54, PHP55 or PHP56), mysql5 or MariaDB5, phpMyAdmin or Adminer4. No installation required! There is no registry dust! Just unpack and run!

Local by Flywheel:-It allows you to create your WordPress localhost in a few clicks. You do not need to create or configure any database. All you have to do is click on the Add button and the rest will be done by this application.

Laragon:-Laragon is a portable, isolated, fast & powerful universal development environment for PHP, Node.js, Python, Java, Go, Ruby. It is fast, lightweight, easy-to-use and easy-to-extend.

How to install WordPress on your local computer

Installing WordPress on localhost is pretty easy. Just follow a few simple steps. You can not install WordPress on your local computer directly.

Here I’m using XAMPP you can use any of the above applications

Step 1. Download a Local Server Software

  • First, download it from the official site.
  • Select the download option of your choice, for example, if you use a window and then select XAMPP for Windows.

Step 2. Install XAMPP Server

  • Open download application and click on the “Continue” on some subsequent popups until the “Install” option comes.
  • Click on “Install” upon agreeing to their terms of the software license.

Step 3. Run XAMPP on Your Computer

If you installed XAMPP on your PC. Now it’s time to run XAMPP in your pc or local server

  • Run the XAMPP control panel.
  • Now start “Apache” and MySQL. (Apache Web server and MySQL keeps your database.)

Step 4. Create a Database

  • Now open your browser and go to http://localhost/phpmyadmin/.
  • It is time to create a database for your site.
  • Click the “new button” from the top left corner.
  • Put the name of your database and click the “Create” button. (I created a database named “xampp_site.”)
database creation

Step 5. Download WordPress

To install WordPress on localhost you have to download WordPress on the official website. Unzip that file.

Step 6. Put WordPress inside XAMPP’s htdocs

Extract the zip file and rename your favourite site name. (I’ve renamed my_first_site)

Put the file in your htdocs directory. The default location of the htdocs directory (C:/xampp/htdocs)

Step 7. Setup WordPress on Localhost or local server

From your browser go to “localhost/Your_Site_Name“. (I entered this address localhost/my_first_site like my site name is my_first_site.)

Now perform a few steps to complete the installation of WordPress on localhost. Select the language and click “Continue“.

wp continue

This page requires “Database name” (the database you previously created in Step 3 in my case xampp_site). Username(root) and password(leave blank) mentioned in the success page of XAMPP installation.

wp database

Click the “Submit” button at the bottom and click “Run the install” on the next page.

Complete WordPress installation with admin Information

install wordpress

Give your website a title, username, password and email address. Finally, click “Install WordPress” below.

WordPress final

Congratulations! You have successfully installed WordPress localhost with XAMPP. Now you connect to your site with the details that you used when installing WordPress.

Video Tutorial