Installing WordPress on localhost is an easy task. It takes only few steps to get it done. It’s not wise to work on your server always. Many developers prefer to work on local computer and then migrate their websites to live server.
If you haven’t installed WordPress on your local server yet, we will walk you every step in this article. Just follow along.
How to install WordPress on localhost
Being written in PHP, WordPress requires an environment to run. You can never install WordPress without having an environment on your local computer. So, how do you create such an environment? Don’t panic. There’s a software named XAMPP that creates the environment.
What is XAMPP?
XAMPP is a free, simple, lightweight and easy to install Apache distribution that allows you to create a local web server.The XAMPP open source package is incredibly easy to use for all level of users.
Now, let’s install WordPress in just 5 easy steps.
1. Install XAMPP on your computer
Download XAMPP from Apache Friends (a non-profit project to promote the Apache web server and a home to the XAMPP project). Run the downloaded executable file and follow the instruction it says.
XAMPP will be installed immediately. Once you are done with the XAMPP installation you need to run XAMPP and start Apache and MySQL port as WordPress requires both of them.
2. Create a database
After starting Apache and MySQL port, go to localhost/phpmyadmin to create a database. Click “New” on the left. Give your database a name then hit the create button. Once your database is created, you have nothing else to do here.
3. Download WordPress
Download WordPress from the official WordPress website. Once downloaded, unpack the zipped file. You can rename it with whatever you like or keep it as WordPress.
4. Install and configure WordPress
Now, go to XAMPP’s directory and find “htdocs” folder. Paste unzipped WordPress file there.It’s time to configure WordPress.
Go to your browser and type localhost/wordpress (can be different if you have renamed the unzipped file). Now select a language and click “Continue”.
The following page reminds you of some information you will need later. Click “Let’s go!” at the bottom.
Now place your database name here. Give “root” as Username and leave Password blank. Click “Submit” button at the bottom.
Now click “Run the installation ” on the next page.
5. Give admin information to complete the installation
Now you are on the verge of completing WordPress installation on your local computer server. Just fill out the form with all required information. Click “Install WordPress”.
If you have given all information correctly you are redirected to installation success page asking you to login with Username and Password.
Hopefully, you have successfully installed WordPress on your localhost. For more of such tutorials and WordPress guidelines, do visit us regularly. Good luck!