• Skip to primary navigation
  • Skip to main content
  • Skip to primary sidebar
  • Skip to footer
TechRT Logo

TechRT

Technology, Real Time

  • Home
  • About
  • Contact
  • Deals and Offers
TechRT Logo
FacebookTweetLinkedInPin
Wordpress Captcha Plugins
Up Next

5 Useful WordPress CAPTCHA Plugins

Install Wordpress On Local Server

TechRT  /  WordPress

How to Install WordPress on a Local Server (XAMPP)

Avatar of Rajesh Namase Rajesh Namase
Last updated on: July 13, 2022

In this article we’ll show you how to install WordPress on your local computer. Why is it useful to have WordPress on your local computer? Well, maybe you’ve a website, and you want to change something on the website’s theme, but you don’t want to risk that if you mass up something, your website will go down, and you’ll lose a lost of visitors or you might want to create your own theme and with a WordPress on your local server make is much easier.

How to Install WordPress on a Local Server

To be able to install WordPress on your local server, first you need to have one. There are many server software like XAMPP, WAMPP or many others. We prefer XAMPP because it’s easy to install, to control and to manage your websites with it.

How to Install XAMPP

  1. First of all you need to Download XAMPP. When downloading it, make sure you choose the right version (We prefer to install it with the installer, not with the ZIP version).
  2. After you downloaded it, run the installer, make sure to check MySQL and Apache these two are the most important things you must have to install WordPress on your Local Server (You can install FileZilla as well but we’re sure you have it already).
  3. After the installation is done, reboot your computer. It is important to reboot it, or otherwise the Apache will not work properly.
  4. After you restarted your computer, open up the XAMPP Control Panel and click on Admin in your the second row. Where it says MySQL. That will open up your MySQL database, and you’ll be able to create/edit/delete databases and users.

How to Install WordPress

  1. Create a new Database and call it what ever you’d like to. This will be your WordPress’s Database.
  2. Go to http://www.wordpress.org and download the latest Version of WordPress. Go where you installed XAMPP, default is C:/XAMPP and go to htdocs and extract the zip there. (C:/Xampp/htdocs)
  3. Open up your internet browser and type in Localhost or http://localhost it should open up your WordPress Installation.
  4. Press “Let’s Go” then enter the details:
    • Databse name: (The database you created earlier)
    • Username: (Your MySQL databse username default: root)
    • Password: (Your MySQL password, leave it empty)
    • Host: Localhost
    • Table Prefix: (You can leave it WP_ or leave it empty.)
  5. Press next, create your admin account.
  6. Login. You are done.
See also
How to Start a Blog in 15 Minutes: Free Beginners Guide

Security Settings

If you leave everything default you risk your computers safety. What can you do about this? You can add a password to every default user in your MySQL center. To do this, go to http://localhost/phpmyadmin in the top menu search for “users” then select one user, and click edit Edit Privileges scroll down until you see password. Add your password of choice there and then press GO. Do this for each user.

Be sure to go to c:/XAMPP/htdocs, and search for wp-config. Open it up with any text editor, and search for:

/** MySQL database username */
define('DB_USER', 'root');

/** MySQL database password */
define('DB_PASSWORD', ' pass here ');

And change the username and password to the new ones and you are done. If you’re facing any problems let us know in form of comments below.

Disclosure: Content published on TechRT is reader-supported. We may receive a commission for purchases made through our affiliate links at no extra cost to you. Read our Disclaimer page to know more about our funding, editorial policies, and ways to support us.

Sharing is Caring

FacebookTweetLinkedInPin
Avatar of Rajesh Namase

Rajesh Namase

Rajesh Namase is one of the top tech bloggers and one of the first people to turn blogging and digital marketing into a full-time profession. He is the co-founder of TechRT. He has a great passion for technology, digital marketing, and SEO.

Category

WordPress

Tags

WordPress Tutorials

Reader Interactions

No Comments Logo

Leave a comment

Have something to say about this article? Add your comment and start the discussion.

Add Your Comment Cancel reply

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

Primary Sidebar

Popular

  • Hulu Keeps Crashing or Shutting Down (10+ EASY Fixes)
  • How to Ping a Phone: 8 Ways to Find Location
  • What is Carrier Hub App? How to Uninstall it?
  • Hotmail Not Receiving Emails (You Should Try This Fix FIRST)
  • 12+ Google Workspace Alternatives: G Suite Alternatives (Free and Paid)

Trending Topics

  • Android
  • Gaming
  • Internet
  • iPhone
  • macOS
  • Social Media
  • Technology
  • Windows
image/svg+xml image/svg+xml

Footer

About

Hello and welcome to TechRT. TechRT, which stands for Technology, Real Time, aims to be a holistic space for all things tech. We talk about anything and everything that comes under the umbrella of ‘tech’ and ‘science.’

Founded and managed by some of the most passionate tech geeks you will come across, TechRT wants to become more than a resource hub. We would like to build a community that can offer the best technology experience to everyone!

Links

  • About
  • Contact Us
  • Disclaimer
  • Privacy Policy
  • Terms

Follow

Cloud Hosting by Cloudways

Copyright ©  2016–2023 TechRT. All Rights Reserved. All trademarks are the property of their respective owners.