Easiest way to setup WordPress on LocalHost

Creating a WordPress site locally is comparatively easy. If you are a beginner and want to start learning WordPress blog or website, you can start anytime. WordPress is free. You don’t have to pay anything for learning. All you need is a computer. Let’s start learning WordPress.

Once you know what you are doing. Localhost is the best.

  • Install Xampp on your localhost. Xampp is the most common application for running the Apache web server. You can use other options like, local by flywheel, wampp etc.
  • Visit wordpress.org/download.
  • Download the latest WordPress zip file. It is not a very big file. In general 11MB to 14MB. Depending on your internet speed it might take 10 seconds to 3mins.
  • Extract the zipped WordPress file on your xampp htdocs folder under your project folder. The default xampp htdocs folder is C:\xampp\htdocs.
  • Open xampp control panel and start apache server and MySQL localhost. It might take about a minute to start MySQL server. Once started click on “Admin” tab beside MySQL. It will take you to phpMyAdmin page via your default browser. If you want to set your default browser to google chrome see this article.
  • You can also manually type http://localhost/phpmyadmin or just click this link. It will also take you to the same page.
  • If you are familiar with MySQL database, you probably know what to do next. Create a database. Name of the database can be very similar to your project name. For example: if my project name is wpdebug, then I will name the database as site_wpdebug. You can name it anything you like.
  • I like to keep the localhost database username and password to default that xampp comes with. username: root and password: ”. It saves time and reduces password conflicts. But if you want to create a user and password for the particular database, go ahead. Click “users” from the top menu and follow the instructions. Make sure you select all the privileges for the user you create. Otherwise, it might give you unwanted bugs and frustration.
  • After you have successfully created the database. Go back to your project and copy the directory path where all the files and WordPress folder you have unzipped.
  • Open a new tab in the browser and paste the directory path after localhost/ . In my case it is localhost/wpdebug. In your case it might be localhost/projectname or localhost/projectname/wordpress or localhost/wordpress depending on where you have installed your files and folder.
  • Once you click enter it will take you localhost/yourproject/wp-admin/setup-config.php. Select your preferred WordPress language. I will use English and click continue.
  • In the next page, you will see what you need to proceed. Read the information before you actually proceed. It basically tells you what you need in the next step. In the next step will be prompted to enter the database name, user name, password, host, and prefix. All you need to provide is database name, user and password credentials. Other two option, a host is always localhost for xampp. The prefix is optional, it will add wp_ by default.
  • Click submit and run the installation. In the next Screen setup your WordPress site information and login credentials. Keep your WordPress login information saved somewhere. You will need login credentials in order to use the WordPress dashboard.
  • Fill up the information. Note I have checked to discourage the search engine indexing. This is because my site is not publishable yet. Once you publish your site live, check this option off.
  1. Install Xampp on your localhost. Xampp is the most common application for running the Apache web server. You can use other options like, local by flywheel, wampp etc.
  2. Visit wordpress.org/download.
  3. Download the latest WordPress zip file. It is not a very big file. In general 11MB to 14MB. Depending on your internet speed it might take 10 seconds to 3mins.
  4. Extract the zipped WordPress file on your xampp htdocs folder under your project folder. The default xampp htdocs folder is C:\xampp\htdocs.
  5. Open xampp control panel and start apache server and MySQL localhost. It might take about a minute to start MySQL server. Once started click on “Admin” tab beside MySQL. It will take you to phpMyAdmin page via your default browser. If you want to set your default browser to google chrome see this article.

I provide professional web server support. I can also help you with website security, code clean up, SSL installation and web design. Get Help

Leave a Reply