If you are new to web development, it’s very likely that you’ve heard the term Local WordPress Development or Running WordPress Locally at least once before.
In this article, I will cover the basics of Local WordPress Development so that you have a clearer understanding of what exactly it entails, how it can benefit your WordPress career and how to get started with it.
In this guide, you will also know more about
What is LocalWP?
LocalWP is a simple software that allows you to run a local development environment for WordPress. It takes care of creating a database, installing WordPress with default themes and plugins and it have many more features like MailHog, LiveLinks, installing Add-ons.
As If you are using XAMPP/MAMP, running a website locally can be quite a hassle because there are some prerequisites you have to meet before you get started.
First off, you need install XAMPP, then you need create database, download WordPress file, start web server software (Apache), PHP, and MySQL which usually is time consuming.
This is where LocalWP comes in handy because it takes care of all these things for you with just few clicks.
LocalWP vs XAMPP
You can install WordPress on your PC using different approaches: One is by using LocalWP and another by using XAMPP
|Mainly optimized for WordPress Development||Mainly used to Develop PHP Applications|
|WordPress Installation is easy||Need more time for Installation|
|Graphical User Interface is best||GUI is not best compared to LocalWP|
|Easy to set up new themes and plugins||Difficult to set up new themes and plugins|
|Resetting password is very easy using MAILHOG||Access your database in PHPMyAdmin.|
|Share the development of your local website using LiveLinks to anyone on the internet||There is no facility of LiveLinks|
How to Install LocalWP?
If you’re a developer and you want to test a new theme or plugin on your local host, then you’re in luck. LocalWP makes it incredibly easy.
Here are four simple steps that can help set up your WordPress site up and running quickly. All you need is few clicks, configuration and a few minutes of your time.
Let’s get started!
- Download LocalWP from the official website.
- Provide your email id and password.
- Install LocalWP to your PC ( Mac, Windows, and Linux)
Now you get to see the cool interface.
- Click on Create a New Site
- In the next step, enter your project/sitename and click on Continue.
- Here you will get the local site domain as yoursitename.local, you can browse it using this link.
- Here you can choose environment. It has predefined preferred environment as well as you can set up Custom environment.
- You can select PHP version, Web Server between nginx & Apache, select database between MariaDB & MySQL.
- After setting up click on Continue.
In the final stage,
- You have to set up WordPress Username & Password.
- Don’t change WordPress Email.
- Also, if you want to create multisite then you can also find the option here.
- After setting up click on Add Site.
- Here, you need to wait few minutes for total WordPress setup.
- After that Enable the site inorder to access your site from browser (as in screenshot no. 1).
- Now access your site by clicking Admin in your browser. (Screenshot no. 2).
MAILHOG – Reset Password
When you forget your WordPress login credentials in LocalWP then it’s easy to reset password using MailHog. As earlier, while setting up the software, LocalWP has created an email address which can be used to reset password.
- Go to your local project URL.
- Click On Lost your password.
- Enter your username/email address.
- Now, you to your LocalWP interface.
- Click on Tools > MailHog > Open MailHog.
- Check the latest email where you may have get the Password Reset email.
- Click on the link and set new password.
How to use LiveLinks?
One of the best features of LocalWP is that you can share your locally hosted project from your local WordPress development area to anyone on the internet using LiveLinks.
The LiveLinks helps push the site live without needing the remote server which is one of the handy features in LocalWP.
- After visting to LocalWP interface. Enable the site project.
- In order to enable Live Links you need to login to LocalWP.
- After that Click on Enable.
- Now you will be able to copy and share the link to your teammates.
- Note that you need to share the livelink username and password.
- Go to Tools > Live Links to get URL, Username, and Password.
At the End
Furthermore, you can push your site to live hosting from the Local WordPress Development area. Recently, LocalWP by Flywheel has made all pro features available to download and use it. so, enjoy the LocalWP which is available in Mac, Windows, and Linux.
Currently, LocalWP supports syncing your locally hosted projects to FlyWheel and WPEngine where you can pull and push your site with few clicks.
If you have any queries related to LocalWP and its features then you can post directly to the comment area.
5 thoughts on “Local WordPress Development – How to Run WordPress Locally?”
Great job sir!!❤ your tutorials are just awesome!!✌
Thank You so much 🙂
Great job, Mr. Suraj Katwal!
It was very educational and very well explained. Easy to read and to follow, and complete. Thank you!
Thanks Ricardo 🙂
I was wondering that I recently downloaded localwp and working on my website locally before it goes online. The features looks like it doesn’t have premium options? Is this normal? Feel free to contact me via email.