Installing WordPress Offline

Installing WordPress Offline

I assume from our previous unit that you have XAMPP installed on your local PC. Therefore we can start to install WordPress in this lesson. If by any means you were not able to install, contact us using our Contact Page to make sure you have XAMPP installed and running before you go through this lesson. This is because, without the server running, you cannot install WordPress. So let’s dive in to Installing WordPress Offline.

Steps to Installing WordPress Offline

  • Start the Apache and MySQL in XAMPP Control Panel
    Apache is the main server that is going to run WordPress. MySQL is the database software for XAMPP. We therefore need to start these two to have WordPress running. Open XAMPP Control Panel from the list of programs on your computer. Click on start next to Apache, and MySQL. If they start successfully and turns into green, move to the next step. If not, visit the following link to diagnose XAMPP installation errors.
  • Download WordPress
    Visit www.wordpress.org to download the current version of WordPress. It comes in a zip format that will need to be extracted.
  • Extract the Downloaded file: Open the downloaded WordPress zip file and extract it to a location that you can remember on your PC. To avoid confusion, extract the contents straight to your desktop.

Upload Contents of Your Downloaded WordPress

  • Locate your XAMPP Installation folder on your PC: Remember the location you installed your XAMPP? If not go to your local drive ( Drive C) and look for “xampp”. This is usually the default location XAMPP installs to. If it’s not found here, go to the next partition or drive. Open it and look for “xampp”. In the xampp folder, locate htdocs folder and open it. That’s the folder where your files will be hosted and indexed.
  • I usually create folders so I can have multiple websites on my localhost. For the sake of this tutorial, I’m going to create folders from a, b, c… to make it easier to manipulate our website. So then, for our first website, we create a folder and name it “a” in our htdocs folder.
  • Let’s go back to our desktop and open the extracted WordPress folder. Open it and highlight all ( Control + A) and copy ( Control + C) them. Go to this “a” folder, and paste ( Control + V ) them.

    Creating a WordPress Database for Installing WordPress Offline

Creating a database is usually done automatically when you purchase a web hosting account and you are installing WordPress. With a local host on your local PC, you need to do all these manually. It’s quite important to know what really happens as the installation goes on so you can easily diagnose problems with your online account.

  • On your XAMPP Control Panel, look for Admin near MySQL and click on it. This action opens directly with your default PC browser to localhost/phpmyadmin where you can create your database. On the left panel of your dashboard, look for new and click on it. After it opens, type in your database name as “a” for the “a” website we are creating. This name allows us to easily identify with which database is for which particular website. Leave the other settings to their defaults and hit Create.
  • After the page loads, the database is successfully created with the username root and no password. You can create a password and modify the user account(s) but for the sake of this tutorial, we are not going much into the database stuff. We just need it created and we are good to go.

Installing WordPress Locally

  • Open your browser and type this address localhost/a. That is the address of our website that we are creating. Supposing we named our folder in the htdocs folder as “b“, our site address would be localhost/b. That’s very clear, I hope. This opens to the WordPress install page. If not, go back to your folder and make sure you copied the right contents of the WordPress folder. The WordPress installation folder looks like the one below.installing wordpress offline locally
  • Fill in the spaces with the following details:
    The Database name: a
    Database user: root
    The Database Password: (no password)
    Database host: localhost
    Table prefix: wpa_
  • Hit next to the next page
    Type in your account details. These are your personal details. Note that the username and password here are the ones you’ll use to login to your website. If you forget, you lock yourself out of your own website. Click install after you have filled in all the spaces here.

 

After installation, WordPress asks you to login by adding /wp-admin/ to your website address in your web browser. This is what you will use to log in every time you need to change something on your website or go to the dashboard. The WordPress dashboard looks like the one below;

wordpress dasboard installation

After getting to this stage, I’ll like to congratulate you on successfully installing WordPress offline on your computer. We would look more into the WordPress Dashboard in the next lesson. See you in there.


About The Author

Leave A Comment?