As a WordPress beginner, to install WordPress on localhost is the first step to starting and building your web design skills with WordPress.
WordPress is a powerful and very easy content management system for web designers and business owners to create responsive and dynamic websites within a short period of time without the need to learn any programming language.
As the most popular web platform, WordPress is already powering up 34% of the entire websites on the internet. Thus, it is a great choice to pick when deciding on which tool to use to create a website.
If you are new to the WordPress community, it is advisable to start creating a WordPress website or blog on localhost before moving to create one on a live site. When you are done creating your website on localhost, you can learn how to migrate WordPress files from localhost to live server with this step by step guide.
To install WordPress on a local server is very easy. It is the first step to creating a personal blog or responsive website for your business on localhost. Localhost here refers to your Windows or Mac machine.
In this post, I will guide you on how to install WordPress locally in 5 easy steps:
So, let’s begin with this popular question.
A site in a localhost environment is basically for personal purposes, not for users or an audience. The only person who can see and use the site is you! So, why does anyone need to build a site in localhost?
The answer is already given in the above paragraph. Before going live with our site, we should learn the basics, see the structure and test the output of our developed product.
A localhost site lets us check and experience the updates, changes, and settings to be sure about the final outputs. Here are the steps:
For you to install WordPress on localhost using xampp, you start with downloading a local server to your computer that will help you run your WordPress site.
This is because WordPress is built with a server-side programming language (PHP). Which helps you make your website dynamic and able to change data at will. The recommended local server we are going to use in this guide is called Xampp.
XAMPP is a free and open-source cross-platform web server solution. Consisting mainly of the Apache HTTP Server, MariaDB database, and interpreters for scripts written in the PHP and Perl programming languages.
Download the latest version of Xampp software for your particular operating system and let’s move forward with installing Xampp on your computer.
Locate the folder/directory where the xampp software is downloaded to. Select the xampp software to install.
Click “OK” or try to deactivate all antivirus programs installed on your PC, to enable the smooth installation of the xampp software.
Click “Next” to continue with the installation.
Make sure the following checkboxes are being checked as shown above and click “Next”.
Make sure there is no other folder named xampp in your C:\ drive directory and click “Next”.
Select your preferred language you would like to use when working with the xampp control panel.
Lastly, click “Next” to allow complete installation of the software to your computer.
Wait for up to 7 – 13 minutes for the software to unpack the xampp setup files to your “C:\” directory.
Click “Finish” to complete the setup and start the xampp control panel.
After the complete installation and the control panel is now opened, “Start” the Apache local server and the MySQL database by clicking both start buttons in front of each.
Congratulations! You have completed the XAMPP installation process!
To create a website using WordPress requires you to also download and install WordPress configuration files from their official website.
You can download the latest version of the WordPress setup folder from wordpress.org website. People are often confused about the differences between WordPress and WordPress.com.
There is a great difference between the wordpress.org website and the wordpress.com website. Check here to learn the difference between wordpress.com and wordpress.org.
Locate the downloaded zipped WordPress folder and unzip it to the same directory.
After extracting the zipped folder, move the newly extracted WordPress folder to the htdocs folder located in the xampp directory just installed. I.e. “C:\xampp\htdocs”.
Rename the moved WordPress folder to a name you desire to use as your website name. Note: When renaming, do not add spaces between the words. It is advisable to join words with a hyphen character “-” or underscore character “_” when renaming your WordPress folder.
E.g. You can rename from “wordpress” to “mynewwebsite” or “my-new-website” or “my_new_website”. But not “my new website”.
Also, make sure to use all lowercase letters when renaming the WordPress folder.
Now, let’s create a database in WordPress localhost to hold all our WordPress data and any other changes made by users to the WordPress site.
To create a new database on localhost with xampp, open your browser.
In the address bar of your browser, insert the URL: “localhost/phpmyadmin” to open the xampp MySQL database dashboard. Note: Ensure that your MySQL server is running in the xampp control panel as stated above.
Click “New” on the left side panel to add a new database to existing ones.
Add a new database name in the input field (preferably the name of your new WordPress website) and click create.
That’s all we need to create a database in WordPress localhost.
Once you are done creating a database for your website in localhost, it’s time to configure and install the WordPress setup files you downloaded earlier.
To start configuring your WordPress website, insert the URL “localhost/mynewwebsite” in the address bar of your browser. Note: replace “mynewwebsite” with the name of your WordPress folder.
Select your preferred language and click “Continue”, to move to the next step.
Read the instructions to know what you need, to continue with the WordPress setup and click “Let’s go!”.
Now, it’s time to provide the details of your database to enable a successful connection with your WordPress platform. (follow these steps carefully).
In the “Database Name” input field, insert the name of your database created earlier (mine is ‘mynewwebsite’).
The “Username” input field should be changed to “root”.
The “Password” input field should be left empty or blank.
The “Database Host” input field should be left as is (No need to change its value).
The “Table Prefix” input field should be left as is also (No need to change its value).
Click “Submit” after completing the database connection details to continue with the installation.
Click on “Run the installation” to move to the next step.
Provide the details needed for login and the complete installation of WordPress on localhost to use WordPress offline.
After you are done filling in the necessary details, click “install wordpress” to finally install WordPress on localhost for free. Note: copy your username and password data that you filled above into a text file, to enable easy access whenever needed.
Congratulations! You have completely installed WordPress on localhost. Click the “Log In” button to move to the login form for authentication.
Provide the username or email address and password you added when installing WordPress. And click “Login” to view your WordPress dashboard.
After a complete setup of your WordPress configuration files, it’s time to view how the default WordPress platform or theme looks like.
To view how your website would look like to users, hover across the name of your site at the top left-hand corner in your admin dashboard. You would see a dropdown, saying “Visit Site”. Click on it to view your website or enter the URL: “localhost/mynewwebsite” in the address bar of your browser. (Note: replace “mynewwebsite” with the name of your WordPress folder).
To go back to your WordPress admin dashboard, add “/wp-admin” to the URL already in the address bar of your browser. E.g. “localhost/mynewwebsite/wp-admin” (Note: replace “mynewwebsite” with the name of your WordPress folder).
To use a new theme or WordPress template on your website, you need to install a WordPress theme on localhost. On the left sidebar of your admin dashboard, click on “Appearance”. You can also hover on the “Appearance” link to see a dropdown list. In it click on “Themes” to go to the themes page.
You can select any of the already made themes provided by WordPress by hovering on it and click on the “Activate” button to make as current theme.
Or preferably, you can add a downloaded theme by clicking on the “Add New” button to move to the Theme Install page. The best platform to get and select any WordPress templates of your choice for any industry when creating your websites is from Astra WordPress Themes. Download a free Astra WordPress Theme now.
Click on “Upload Theme” to add a zipped folder of your downloaded theme.
After uploading/installing it, activate by hovering on it and click on the “Activate” button to make as the current theme to be used.
To view how your website looks like now with a new theme, open a new tab in your browser and enter the URL: “localhost/mynewwebsite” in the address bar. Note: replace “mynewwebsite” with the name of your WordPress folder.
To make creating your website easy, you need to install WordPress plugins on localhost. To add a plugin to your WordPress website is as easy as installing a theme. At the left sidebar panel, hover on “Plugins” link to get a dropdown list. And then click “Add” to move to the plugins add page.
You can search for the desired plugin in the search bar or see a list of must-have plugins for WordPress sites.
When you’ve found a plugin, click on “Install Now” to install it.
After it has completed its installation, click the “Activate” button to activate the plugin and start enjoying its features.
Installing WordPress on your computer is a very straightforward process. Even the most experienced developers start with setting up WordPress locally before moving it online.
To install WordPress on localhost is easy. And it takes a few steps of downloading a xampp software, download the WordPress setup/configuration file, create a database to hold data for your WordPress site, configure and install the WordPress files, upload a WordPress theme and install different WordPress plugins to add exciting features to your WordPress website.
Once you learn how to install WordPress on localhost, you can create a lot of WordPress websites for different industries at your own convenience.
Note: To create many WordPress sites on localhost with xampp, you don’t need to delete your previous one. Just extract a new WordPress folder from the previously downloaded WordPress zipped file, move it into your htdocs folder in the C:\xampp directory to join the previous ones. And then create a new database as described in the steps above.
After you are done creating your superb designs on localhost, follow this guide to learn how to migrate WordPress from localhost to live server without breaking your WordPress site or causing any harm to your online server.
If you like this article, Kindly like our Facebook, Twitter and Instagram page to receive more helpful tips about WordPress. Also, check out our amazing affordable web design and digital marketing services to help triple customers to your business now.
Lastly, don’t forget to share with friends on all social platforms to help them begin their web design journey as a WordPress designer. Good luck!
Once you learn how to install WordPress on localhost, I would like to know: What type of site are you going to create with this newly found knowledge? Feel free to share it in the comments!
“Disclosure: Some of the links in this post are “affiliate links”. This means if you click on the link and purchase the item, I will receive an affiliate commission. Thank You”.
Online publicity with marketing software is a much faster and more efficient way of business… Read More
While starting my business and trying to get clients to offer my web services to,… Read More
To move WordPress from localhost to live server can be time-consuming, intimidating and risky (especially… Read More
A content strategy is you using content as an investment wisely while marketing is of… Read More