In the become a blogger article series, I told you the best way to start a blog is using WordPress. WordPress is an open-source and free script and, In my opinion, the best one to start a blog. In this article, I’m going to talk about how to install WordPress. First, you need a host and a domain name. You can buy your domain from GoDaddy and your host from DigitalOcean. There are also other good websites and some free websites such as x10Hosting and Free Hosting that you can start with. The WordPress installation is a little different according to your host. In this article, I will tell you how to install WordPress on localhost.
How to Install WordPress On Localhost
Installing WordPress on localhost is not tricky. However, you have to follow some easy steps. First, you have to create an environment and, after that, install WordPress on localhost. Initially, it is about just three major tasks:
- Create an environment
- Download WordPress from its website
- Install WordPress on localhost
Through some easy steps, you can complete these three major tasks. But, first, follow the following steps to install WordPress on your computer successfully.
1. Download a Local Server Software
We need a local server software to create a localhost environment and install WordPress on localhost. In this tutorial, I will use MAMP for that. MAMP is a cross-platform web server solution. Since WordPress is written in PHP language, it requires a platform to run. MAMP is the way to do this. You can use the development environment of your choice according to your OS (whether it is Windows, macOS, or Linux).
Download MAMP from their official website.
The reason I am recommending MAMP is it works on both Mac and Windows operating systems. I found MAMP much more user-friendly than any other local server environment. If you have Linux running on your machine, you need XAMPP. Check this link to know how to download and use XAMPP.
2. Install MAMP Server
Click on the downloaded MAMP and MAMP Pro package file to run the installer (both come in a single package by default). Then, click on the “Continue” on some subsequent popups until the “Install” option comes.
Click on “Install” upon agreeing to the terms of the software license.
3. Run MAMP on Your Computer
Once you have installed MAMP successfully, run MAMP on your computer and click on “Start Servers. “
After starting the servers, the system will take you to a success page in your default browser.
Now your MAMP is ready to work.
4. Create a Database
Your WordPress site needs a database to save its data on. Go to localhost/PHPMyAdmin on your browser. Click on “New” and give it a name, then click on “Create” to finish the process.
Have the “Database Name” in mind as you need to use it in the future.
5. Download WordPress
To install WordPress on localhost, you need to download WordPress from the official WordPress website. Then, unzip the downloaded zip file.
6. Put WordPress in MAMP’s htdocs
Now go to the MAMP directory in your computer’s system drive. Open the “htdocs” folder (found inside the MAMP directory) and paste the unpacked WordPress folder in there.
7. Install WordPress on Localhost
Type localhost/WordPress (name of your WordPress file in the htdocs) on your browser’s address bar and hit enter. Now perform a few more actions to complete the WordPress installation on localhost. Select language and click “Continue. “
Click on the “Let’s go!” button on the following page.
Give all Required Information
This page requires “Database Name” (the database you’ve created earlier in Step 3). Username and Password both will be “root,” as mentioned in the MAMP installation success page.
Hit the “Submit” button at the bottom and click “Run the installation” on the very next page.
Complete WordPress Installation with Admin Information
Give your site a title, username, password, and email address. Finally, hit the “Install WordPress” button at the bottom.
You have successfully installed WordPress on your computer. Log into your locally hosted WordPress site now.
If you have followed all the steps above, now you have your WordPress website ready. You can also find other articles on how to install WordPress here.