• Skip to primary navigation
  • Skip to main content
  • Skip to primary sidebar

Ani's Webdev Blog

A learning diary of website development

  • Home
  • Demo
    • Ajax Contact Form
  • WordPress
  • Front-end
  • Backend

WordPress Basics: Installing WordPress On a Local Server

Modified on: July 4, 2020

Before pushing any website to the Internet, it is a good practice to install it first on a localhost. That way, you can test, debug, modify the site and the content as much as you like. And installing a WordPress site is not any different. When you are comfortable with the current version of the website, you can place it online.

Table of contents

  1. 1. What is a localhost?
    1. 2. Installing WordPress on the localhost step by step
      1. 3. Video on installing WordPress on a local server

        In the last blog post, we have a look at using WordPress with wordpress.com and wordpress.org. Let’s continue today with installing wordpress.org on a localhost.

        1. What is a localhost?

        Simply saying, a local server is a developing environment in which you host website projects in your own computer or in any local machine. And the project will not yet be accessible online. In other words, setting up a local server allows you to test, debug, and modify the website in an offline manner.

        A local server provides you with the similar hosting environment as the web host’s server. There are a number of local web server for different operating platforms such as MAMPP, XAMPP, WAMP. For more information about what is a localhost, please visit this website.

        In this blog post, I use XAMPP.

        2. Installing WordPress on the localhost step by step

        • Step 1: Download WordPress from wordpress.org. Visit the site and hit the button Download WordPress.
        • Step 2: Unzip the file download from wordpress.org. It comes up with a folder named “wordpress”, which contains a lot of folder and file inside. This folder is the root folder which we will use.
        • Step 3: Open XAMPP Control Panel, hit the buttons Start in line with Apache and MySQL. Because in order to run WordPress we need both server and the database service.
        installing wordpress on a local server XAMPP control panel
        XAMPP Control Panel
        • Step 4: Create a new database for the wordpress project. Press the button Admin next to MySQL in the XAMPP Control Panel. This brings you to the database center where you can create a new database. Follow the video to create a new one.
        • Step 5: Copy the root folder in step 2 into the folder C:/xampp/htdocs/
        • Step 6: Go to your browser and type localhost/wordpress or hit the Admin button in line with Apache from the XAMPP Control Panel. Choose wordpress from the Admin page opening with your browser. Please notice, if you rename the folder “wordpress” after downloading it, the URL will also come up with the new name.
        • Step 7: If you successfully land on the WordPress setup page, follow the video below to finish the registration phrase. This phrase includes choosing language, connecting to the database and registering the first website information.

        Notice: installing WordPress on XAMPP allows you to fill in the database information with username: root and no password, but for another local hosting, this information may be different. So please remember to check the server development page for an exact answer.

        3. Video on installing WordPress on a local server

        Link on Youtube: Installing WordPress on a local server

        https://youtu.be/nbnASbywkn4

        What do you think about this post? Do you want to correct or contribute something? Let me know by sharing your thoughts in the comment section below.

        Filed Under: Wordpress

        Recent posts

        WordPress: Create custom post type programmatically

        [WordPress] Open Images in Posts into Lightboxes On Clicks (Without Plugins)

        Mangools Review: A Productive SEO tool for The Affiliates

        Reader Interactions

        You are here: Home / Wordpress / WordPress Basics: Installing WordPress On a Local Server

        Leave a Reply Cancel reply

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

        Primary Sidebar

        Hello! My name is Anh. I am a front-end developer in Oulu, Finland. Currently, I work with PHP, HTML, CSS, JavaScript and love writing about them. Please feel free to join the discussion!

        FOLLOW MY BLOG

        Thank you for visiting this website! I hope you find something useful here :). Contact me by email: anh@anhkarppinen.com.