WordPress is one of the best Content Management Systems (CMS) for Blogging, with a total of 63.5% share all around the internet. Install WordPress application on the localhost machine. But before setting up the live server, we can design our WordPress website on our computer using localhost. This article will guide you on how to set up a WordPress website on a localhost machine.
What is localhost Installation?
Installing an application on your computer is called local installation. And now, if the computer serves a URL, when you enter it in the browser is called the localhost URL. So the localhost means This Computer, where the files are hosted. And the URLs that are served from your computer are known as the localhost URLs.
When you use a localhost machine, it needs some server software to serve the files to your computer’s browser. Usually, we install an Apache server on our local host machine.
To install WordPress on our localhost computer, we’ve to understand the environment or software are required to run the WordPress CMS. WordPress is designed using PHP; its backend needs a database and a server to serve the files to the browser. So our localhost will contain the following applications for the WordPress CMS.
- PHP (We’ll install the Latest Version)
- database Management System – We’ll use MariaDB
- Apache Server
- PHPMyAdmin to access the database,
So, we can install all these using WordPress Bitnami. You can install more than one WordPress or PHP program by using this application.
Install WordPress on the localhost server in your machine.
Bitnami stack provides the complete bundle of software to run WordPress on localhost. If you want to run WordPress and PHP applications using localhost, then we’ll recommend you to install the Bitnami WordPress Stack on your computer.
Download Bitnami WordPress stack for localhost
First, you’ve to download the latest version of the Bitnami WordPress stack. The latest updates are fast, stable, and contains the latest version of all the applications.
Download and Install Bitnami WordPress for localhost
The above link will land you on the page provided above. Here you’ve to select your operating system and download the application. You can download the localhost for Windows, Mac OS, Linux Operating System.
Here we’re guiding for Windows 10 64 bit. The process is nearly similar to other Operating Systems too.
- Download the Bitnami Stack Application, Right-click on setup, and select run as administration
- An install window will pop up – select YES.
- Select your language now(default English).
- On the Bitnami WordPress Stack page- click on Next.
- Keep both PHPMyAdmin and WordPress marked
- Select the custom installation folder(if you want to install it in a different folder, otherwise leave it as it is. I changed it to C:\Bitnami\wp-bitnami).
Installation Folder and Admin Account.
This will allow us to choose the folder where the Bitnami WordPress stack will be install. And in Admin Account, we’ll provide details about the admin who will run the application.
This will install the Bitnami stack to the selected folder. After selecting the folder, click on the Next button.
In this window, you’ve to create the admin account. This admin account is the same for both WordPress and phpMyAdmin. So do it carefully.
- On the next setup page, enter the name, email, and login username.
- Enter Your name
- Your email address
- Enter the username for login (for this tutorial, we enter “root”)
- Please enter the password and confirm it by re-entering the same. (for this tutorial, we’re choosing password 123123, you can choose a tough one.)
- Click on Next
From the above, you’ve to remember login details for WordPress and phpMyAdmin. Now click on next, and WordPress Bitnami will install on your computer. However, it will take a few minutes to install the WordPress CMS on your machine, so you’ve to wait for it.
And you did it! WordPress is installed, and you have to access it.
Access WordPress Bitnami from your localhost
Enter URL http://localhost/wordpress, and press enter. This will take you to the WordPress homepage. To make changes in it, you’ve to log in using the URL http://localhost/wordpress/wp-login.php.
The IP for localhost is 127.0.0.1, so you can also access the localhost using this IP address. The URL will be http://127.0.0.1/wordpress.
All Done. You can now access localhost WordPress on your machine.
To easily access and manage the database, you need to access the PHPMyAdmin. We’re using the MariaDB database management system. You can access it by entering the URL http://localhost/phpmyadmin/, and the login credentials are root and 123123 as provided while creating the admin account in the last step.
Now, all done, you can access and enjoy localhost WordPress, but if you like to install multiple WordPress sites, then follow the steps below.
Install Multiple WordPress websites on localhost.
If you want to run more than one WordPress website on the localhost, you can follow this guide further.
Every WordPress website needs a database where it can store all the database values, and it needs a folder in localhost where it can store all the WordPress application files.
Create a database using phpMyAdmin
This Bitnami stack includes phpMyAdmin to manage the database. First, log in to phpMyAdmin http://localhost/phpmyadmin/ and provide the login credentials. In our case username is “root”, and the password is “123123”.
Here create a new database; suppose your new site name is
mysite.com, then create a database naming
mysite (for this tutorial, we’re creating it for
techaak). Follow the steps:
- Click on new on the left-hand side of the panel.
- Enter the database name
- Click on the create button.
Here I created a database with the name techaak. The additional WordPress website will use this database.
Create a Folder for the additional WordPress
After creating the database, you’ve to download the latest version of WordPress software through the link provided below.
After downloading this zip file, extract the files of it. Now copy the WordPress folder from the extracted files and place that folder in
Now rename this WordPress folder according to your database to avoid mashup. Suppose the database name is
techaak, then rename “
wordpress” folder to “
techaak“. (You are allowed to create a folder with any name, but to avoid mashup, please keep the same name for the database and folder).
Here wp-bitnami is the folder where you installed the Bitnami WordPress stack.
Access the WordPress CMS
Now access your new WordPress site installed here
http://localhost/techaak/. The following window will open up. You’ve to select the language of the WordPress website.
Select the language and click on the continue button. This will redirect you to the following page.
The above page is the welcome page for the WordPress website. It is to inform you that you’ve to provide database values on the following page.
To connect the newly built WordPress website, you’ve to enter the database details. This will connect with the MariaDB database, where you already created a database for the new website with the name
On the above page, please enter the required data.
- The name of the database you entered in phpMyAdmin, is “
techaak” here in this tutorial.
- The user name that you choose during the installation of the software, in our case, is “root”.
- Next, enter the password for the username. In our case, it is 123123.
- Leave this as it is.
- Leave this as it is.
Now you’ll be on the final setup page,
- Enter your website title.
- Choose a username for your site.
- Choose a password for your site.
- please enter your email address
- leave it as it is
- Click on Install WordPress
If the button is not enabled, check whether your password is strong, or a pop-up will appear to choose a weak password.
Now it’s all done. You can now access this localhost WordPress.
After completing the WordPress website on localhost, you can transfer the localhost website to the live server.
Install WordPress on Google Cloud using Bitnami NGINX. (Free for 90 Days)
If you’ve any doubt, query, or feedback regarding the localhost installation, feel free to ask in the comment section provided below.