How To Install WordPress On Localhost

install wordpress

Are you searching for a way to install WordPress on Localhost? Well, it’s a very easy process. With a localhost site, you will be able to test your themes, plugins, and codes as much as you want. There are several software available to do this. You can use XAMPP, WAMP, MAMP, LARAGON, etc. 

Among all these software, XAMPP is the most popular. Therefore in today’s post, I will be showing you how to install WordPress on localhost using XAMPP. After going through the post, you will be able to install WordPress on localhost by yourself. 

Let’s start then. 

How To Install WordPress On Localhost

First, download XAMPP software from the Apache Friends. For Windows, select ‘XAMPP for Windows,’ and for MacOSX, choose ‘XAMPP for OS X.’  It might take a few minutes to complete the download. 

Once the download is complete, launch the installer. If you are running any antivirus software, then you might get a warning. In that case, just click on the Yes button and continue the installation. Depending on your windows configuration, you may also get a UAC prompt; just click the ok button. 

Afterward, click the Next button to continue the installation. Choose your components and finish the installation. 

Once the installation is completed, run the XAMPP control panel and click on the Start button for both Apache and MySQL. 

Once you launch them, your local host will be ready. Now download the WordPress.zip from the official WordPress directory. Navigate to the XAMPP installation folder and find htdocs in the subfolder. For me, it’s C://xampp. 

In htdocs, create a new folder and make a folder with your desired local site name. For example, if you make a folder named mysite, you will have to access your site by navigating to https://localhost/mysite.

Once you have created the folder, extract WordPress.zip in this folder. 

Now it’s time to create a MySQL database. Launch your control panel and click on the Admin button. 

Next, click on the databases. 

Provide the database name and click on the create button. Now navigate to your test site. 

https://localhost/FOLDERNAME

On the next page, hit the ‘Let’s go’ button. Then you will have to provide the database name, username, password. Provide the database name that you created earlier, Username = ‘root,’ and keep the password field blank. 

 Then continue the installation. Before finishing, it will ask for the site title, username, password, and email. Provide this information and go ahead. 

Now your WordPress installation is complete. You can navigate to your WordPress via localhost. 

Conclusion

You are all done. I hope now you will be able to install WordPress on a local platform all by yourself. Feel free to ask questions; I will be happy to reply to those. If you liked the post, please share it with your friends, and don’t forget to tell your thoughts. 

close

Easy WP Tweaks

10X Your Site Growth!

Join the growing library of Easy WP Tweaks to grow your WordPress site.

Leave a Comment

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