WordPress in localhost

How to run WordPress in localhost? (in just 10 easy steps)

Spread this useful information with your friends if you liked.

How to run WordPress in localhost? (in just 10 easy steps)

Do you have doubts like, how to run WordPress locally? What is WordPress localhost? How to host WordPress locally?

Don’t worry we from Netrofly are here to solve all your doubts regarding this topic.

After reading this post, if you have any doubts or are facing any problems in starting WordPress in local host, make sure you comment that doubt in the comment section.

What is WordPress?

WordPress

 

WordPress (WordPress.org ) is a free and open-source content management system (CMS) written in PHP and paired with a MySQL or MariaDB database.

As the most popular web platform, WordPress is already powering up over one-third of the entire website.

It is super easy to learn and if you have mastered the skills you can make beautiful and fancy websites in a few hours.

Its features include plugin architecture and a template system, referred to in WordPress as Themes.

Why to host WordPress locally?

 

For starting a WordPress website, you need hosting but if you are a beginner and you want to start learning WordPress, you don’t need to invest any penny in only learning WordPress.

You can start learning WordPress by hosting your site locally. This site will only be visible to you in your system. Localhost can be seen as a server that is used on your own computer.

For this post, we are using XAMPP as a local server.

XAMPP is a completely free, easy to install Apache distribution containing MariaDB, PHP, and Perl. The XAMPP open source package has been set up to be incredibly easy to install and to use.

How to run WordPress in localhost?

 

Downloading and installation of XAMPP.

 
Step 1: Download XAMPP.

 

This is the very first step for starting WordPress in localhost. You can download the XAMPP application for free from Apache Friends. It’s a big file, about 110mb, so it might take some time depending on your internet connection.

Download XAMPP according to your operating system as we are currently using windows we will download windows version of XAMPP.

Step 1: Download XAMPP. This is the very first step for starting WordPress in localhost. You can download the XAMPP application for free from Apache Friends. It’s a big file, about 110mb, so it might take some time depending on your internet connection. Download XAMPP according to your operating system as we are currently using windows we will download windows version of XAMPP.

Step 2: Run .exe file.

 

After downloading XAMPP you will find the setup in the Downloads folder. Run the XAMPP.exe file.

Step 3: Deactivate any antivirus software.

 

An active antivirus program can negatively affect the installation process, it’s recommended to temporarily stop any antivirus software installed in your PC, until all XAMPP components have been installed successfully.

 Deactivate any antivirus software.

Step 4: Start the setup wizard.

 

Depending on your operating system, your installation wizard and the application interface may differ from these screenshots. In this blog post, we’ll show you the Windows version of the software.

Click next to continue installation.

Start the setup wizard.

Step 5: Choose software components.

 

In step 5, you have to select components from the checkboxes. You can include or exclude individual components of the XAMPP software bundle from the installation.

You don’t need all the components for starting a WordPress site locally. All you need,

  • MySQL
  • phpMyAdmin

After selecting the above components proceed by clicking next.

Choose software components.

Step 6: Choose the installation directory.

 

You can select where you want to install XAMPP, in this post we will go with the default location.

Choose the installation directory.

Step 7: Bitnami for XAMPP

 

You will get a prompt asking you to install Bitnami for XAMPP. You don’t need to install this for starting WordPress in localhost.

So skip this window, and click next.

Bitnami for XAMPP

Step 8: Start the installation process.

 

After clicking next, the installation process will start, this will take sometime.

Start the installation process.

Step 9: Complete installation.

 

Once all the components are unpacked and installed, click ‘Finish’ to close the setup wizard.

Complete installation.

Start modules and test your server

 

Step 1: Launch XAMPP control panel app.

 

After successfully installing XAMPP, run the XAMPP control panel, a window similar to the image below will pop up. Start the following components,

  • Apache
  • MySQL

Launch XAMPP control panel app.

Step 2: Starting Apache and MySQL.

 

After starting Apache and MySQL, wait till the background of Apache and MySQL turns green. Sometimes it may take some time to turn the Apache background green.

Starting Apache and MySQL.

Step 3: Testing the local server.

 

After following all the above steps you should be able to test your local server by going to http://localhost/dashboard/

Testing the local server.

Downloading WordPress

 

You can download WordPress for free by visiting https://wordpress.org/download/

Downloading WordPress

After downloading WordPress, you need to extract the zip file, and you will see a wordpress named folder. You need to Copy this folder.

And paste this folder in this location C:\xampp\htdocs if you installed XAMPP in the default location.

If you haven’t installed XAMPP in default location you have to enter xampp folder and open htdocs and paste the wordpress folder in that location.

WordPress installation (locally) and database

 
Step 1: Select language.

 

After downloading WordPress, you need to install WordPress locally. To install WordPress visit http://localhost/wordpress/

 Select language.

When you visit http://localhost/wordpress/  this will load the WordPress installation wizard and you’ll be asked to select a language. After selecting a language, click on the ‘Continue’ button.

On the next screen, you will notice that WordPress needs a database name, database username, password, and host information.

WordPress

Step 2: Creating a database for your WordPress site.

 

To create a Database, open a new tab and visit https://localhost/phpmyadmin/.

This will launch the phpMyAdmin application that is pre-installed with XAMPP. It allows you to easily manage your databases.

You need to click on Databases in the navbar, and go on to create a database. There you need to provide a name for your database and click ‘create’.

Creating a database for your WordPress site.

Step 4: Go back to https://localhost/wordpress/

 

Go back to https://localhost/wordpress/ and click the ‘Let’s Go’ button. Next, you  need to provide WordPress database information.

Enter the database name that we created earlier (In my case its ‘test site’).

In XAMPP,

Your username is ‘root’ and leave the section blank for password. If you have any doubts refer to the following image.

After filling this information click ‘Submit’.

Go back to https://localhost/wordpress/

Step 5: Enter valid information.

 

Enter information that is asked on the screen, select the checkbox and click ‘Install WordPress’ to continue installation.

Enter valid information.

Step 6: Login to your WordPress dashboard

 

After installation, you can login to your website by going to https://localhost/wordpress/wp-admin page and using the username / password that you entered during installation to login.

Login to your WordPress dashboard

Start working on your website

 

You have successfully started WordPress locally.

Start working on your website

 

Now you can start learning WordPress without spending any money.

 You can also create your website locally and when you create your best website then, you can buy a hosting and make it available on the internet.

Here are some of our blogs related to WordPress which will highly benefit you for your site,

Summary :

 

In this blog post, we have provided you with detailed information on how to run WordPress locally with theory as well as images for better understanding.

The information is given in steps that will help you to implement the processes simultaneously and efficiently.

Here are the basic steps for running WordPress in local host stated in the post,

  • Downloading and Installation of XAMPP.
  • Start a module and test your server.
  • Downloading WordPress.
  • WordPress installation and database.
  • Start working on your website.

Spread this useful information with your friends if you liked.

Leave a Comment

Your email address will not be published. Required fields are marked *