This article will explain how to install WordPress on localhost. And also, how to two or more WordPress on localhost using Bitnami stack. We can do this using XAMPP too, but the stack is slower than Bitnami. Let’s understand how to.
- What is localhost Installation?
- Install WordPress on the localhost server in your machine.
- Install Multiple WordPress websites on localhost.
- Final Words for WordPress on localhost
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 refers to “this computer” working as a server. And the URLs served from your computer are known as the localhost URLs.
When using a localhost machine, server software needs to serve the files to your computer’s browser. Usually, we install an Apache server on our local host machine.
WordPress is one of the best Content Management Systems (CMS) for blogging, with a 63.5% share all around the internet. You can run WordPress for blogging and other purposes. But before setting up the live server, we can design our WordPress website on our computer using localhost.
To install WordPress on our localhost computer, we have to create the environment or software 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,
We can use XAMPP for this, but the module is slower than the Bitnami stack. That’s why we are using the Bitnami WordPress stack.
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, we recommend installing 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 contain 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.
Here, you have to choose the folder to install the Bitnami WordPress stack. 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; wait for it.
And you did it! WordPress is now installed on localhost, and you have to access it.
Access WordPress Bitnami from your localhost
Enter URL http://localhost/wordpress, and press enter to access WordPress homepage. To make changes in it, you’ve to log in on the dashboard 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.
PHPMyAdmin allows you to manage the database. 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 would like to install multiple WordPress sites, 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 requires a folder in localhost where it can keep 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 example.com, then create a database example (for this tutorial, we’ll create a database with the name seoneurons). 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 seoneurons for the new WordPress website.
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.
Download the latest version of WordPress
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 seoneurons; rename the “wordpress” folder to “seoneurons”. (You can create a folder with any name, but 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/seoneurons/. 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. It will connect with the MariaDB database, where you have already created a database for the new website with the name seoneurons.
On the above page, please enter the required data.
- The name of the database you entered in phpMyAdmin, is seoneurons 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.
Final Words for WordPress on localhost
This article explained how to install WordPress on the localhost machine and another WordPress, Joomla, or Drupal.
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, queries, or feedback regarding the localhost installation, feel free to ask in the comment section provided below.
Thanks so much for your perfect instructions on adding multiple websites.
I am searching on google how to install WordPress on localhost and I find your post. And after reading your article, hopefully, now we can install WordPress easily. Thank you!
Thanks for everything