How to easily install WordPress locally on your computer

Objective

In this tutorial, we are going to learn how we can install WordPress locally on our computer in less than 5 minutes. We are going to know about two different methods of installing WordPress into our system: the first and easy way with the help of a dedicated local development tool Local by Flywheel and the second and not so easy way with a Local web server such as XAMPP or WAMP.

 

Installation by Local

Installing WordPress using Local is super easy just go to their official Local WP Website website and download applications as per your operating system. This tool is available for Mac, Windows, and Linux. After downloading, installation is fairly easy and you know that much. After installing you see the screen as below.

Just click on a create a new site, After that configuration page opens type your website name then choose your environment. For the environment you get two options one is preferred and the second is custom. In the first option everything is set for you PHP 7.3.5 | Web Server Nginx | MySQL Version 8.0.16 (This may change in future updates).

In the custom option, you can select different PHP, web server, and database versions. In the current version, you can see the options as shown in the image below, you can choose them as per your preference. But for most beginners the preferred method is fine and you should choose that too unless you know what you are doing.

After that, you get the option to enter your WordPress username, WordPress password, and WordPress email, which you will use later to log in to your admin panel. And then just click on the add site and based on your internet speed everything gets downloaded into your system. You may get a system firewall warning because it is making a server on your system but that is to run the application so you must allow it. And Voila! your WordPress website is completely ready.

Now from the website info panel, you can click on admin to go to your WordPress admin panel to view your local website on your browser.

 

Installation using Local webserver

For installing WordPress using a local server you need to download two things. One is WordPress from the official WordPress website and the second is a local server such as XAMPP or MAMP. Both XAMPP and MAMP are basically the same and installation is also almost the same and for the sake of this tutorial, we are going to use XAMPP.

After downloading the XAMPP into your system install it, for the installation you know the drill next>next>finish. After Installation, launch the XAMPP from your taskbar and click on the start button for Apache and MySQL for running the Local web server and database in your system. You may get a system firewall warning because it is making a server on your system but that is to run the application so you must allow it.

 

Next, head over to your XAMPP installation folder. Which will be the:

C:/Program Files/XAMPP/htdocs or C:/Xampp/htdocs folder for Windows 

/Applications/XAMPP/htdocs folder for the Mac.

 

After that paste the WordPress zip file which you have downloaded from the WordPress website. Now extract the file in the same location. Now open your browser and use the following URL.

localhost/wordpress

Now you can see the WordPress installation wizard. First, you will see the language option, choose your preferred language, and click on continue. On the next screen, you will see WordPress needs database name, username, password, host, and table prefix. 

For that, we will create a database on our local database for our WordPress website. Open a new tab in your browsers and in your URL bar type: localhost/phpmyadmin and hit enter. You will see your database admin panel from there click on databases then new as shown in the image below then type your database name and click on create and then close the window.

After creating the database head back to the WordPress installation wizard click on let’s go and fill in the details. Enter the database name you created earlier. Your username should be root and you need to leave the password field blank. In the database host field use localhost.

After that WordPress will require some information about your website. First, enter the title for your website. After that type your username which you can use while logging in into your WordPress admin panel. Now WordPress will create a strong password for you but you can also use your (must save your password). Now enter your email address and click on Install WordPress and with that your WordPress installation is complete.

Now you can log in to your website using your username and password which you have used while setting up WordPress. Later when you want to log in again using the following URL:

localhost/wordpress/wp-admin

Conclusion

Now you have learned how you can install WordPress locally into your system. Now you know both methods and you can choose any of these according to your preference. If you face any issues while installing WordPress into your system let me know in the comment below.

Have questions or confused about something WordPress Related? Join Our Discord Server & ask a Question

Leave a Comment

Your email address will not be published. Required fields are marked *

Scroll to Top