We use cookies to understand how you interact with our site, to personalize and streamline your experience, and to tailor advertising. By continuing to use our site, you accept our use of cookies and accept our Privacy Policy.
Black Friday starts now. Get 75% off Nexcess premium managed hosting
Shop plans
Contact Us
Contact Us
Sign in
Sign in
Nexcess Logo

Laragon: Best Local Development Environment for WordPress

September 14, 2022


Using Laragon for Local Development Environment for WordPress


Any development environment is a place to create your website before you go live. You can do customized work in a development environment, try new plugins and themes, test various features and try new updates to your website. Then, when the site is all set to go live, you may upload this to a live hosting environment and make it public.

Does Laragon Support WordPress Local Development?

Yes, although Laragon was created to help Laravel, it has earned its popularity with the WordPress community due to how well it can support WordPress in the context local development.

Does Laragon Work with Macs?

Laragon only works with Windows, so if you’re a Mac user your will need to find another solution for local development.

WordPress Development Environment


A local WordPress development environment allows you to set up a working website on your local machine. You can access this site and make changes as you do on a live website, but this will not be publicly visible. The advantage of such an environment is that you don’t require an active Internet connection. Furthermore, you're not constrained by the website speed that would be dependent on the hosting environment involved. Hence local development environments are generally faster. There are various local development environments available like, XAMPP or WAMP. However, Laragon is the best local development environment suggested since it is lightweight and efficient.

How to Choose a Local Development Environment Tool?

For setting up the WordPress local development environment, you will need to install a LAMP (Linux, Apache, MySQL, PHP) or LEMP (Linux, Nginx, MySQL, PHP) technology stack on your computer. Setting up PHP-based local environments on Windows servers might sometime be tedious. For easily integrating these technologies into your Windows machine, you can use a local development environment like Laragon, which is fully compatible with WordPress. Laragon is the most suggested and best local development tool since it is easy to install, use, and operate. Its speed is unsurpassed.

What is Laragon?


Laragon is a portable, isolated, fast, and powerful universal development environment for building and managing various web applications based on PHP, Node.js, Python, Go, and Ruby. Laragon has an isolated environment with your OS and doesn’t use Windows services. It has its own service orchestration, which manages services asynchronously. Laragon starts instantly and uses low RAM while running.

Features of Laragon

Laragon has several attractive features:

  • High-performance local development environment
  • Highly flexible, easy to install, and use
  • Pretty URLs. Example: http://testsite.test. For more information, please visit Pretty URLs.
  • Supported databases: MySQL, MariaDB, PostgreSQL, MongoDB

Graphical User Interface of Laragon


An example of the GUI you get with Laragon is shown below:

GUI of Laragon


Steps to Install Laragon

The steps for installing Laragon are straightforward:

1. Download the latest version of Laragon.

2. When the setup wizard screen appears, click “Next >”:

Laragon Setup Wizard


3. Select the destination location and click "Next >". By default, Laragon will be installed in the C:\laragon directory path on your machine. However, you can choose a path according to your convenience:

Selection Destination Location


4. Choose the setup options and click "Next >":

Auto Start, Auto Detect & Create Virtual Hosts


5. As a security measure, Windows will ask you to confirm. Just click “Run” and install:

Laragon = Ready to Install


6. Once the installation is complete, the following window will appear:

Menu & Start All Button



Setup of the WordPress CMS Using Laragon

The steps for setting the WordPress CMS locally using Laragon are also straightforward:

1. Start Laragon and click “Start All”.

2. Click "Menu > Quick app > WordPress > Quick Create".

3. Choose a project name, type “myblog” and click "OK". The progress window will appear:


Choose a project name, say “myblog” and click OK. The progress window will appear.


Your WordPress website is ready!

View WordPress Hosting Plans


Other Addons & Features of Laragon


Other Addons & Features #1: Add phpMyAdmin

By default, this feature is not included with Laragon, but you can easily add this from phpMyAdmin and extract it to the following directory path:

{LARAGON_DIR}\etc\apps\phpMyAdmin


You can then access phpMyAdmin at http://localhost/phpmyadmin.

Other Addons & Features #2: Add New PHP Version

You can also add a new PHP version by downloading the required version from https://windows.php.net/download. Then extract the downloaded version to the following directory path:

{LARAGON_ROOT}\bin\php\PHP_version

Then, you can choose the new version of PHP to use via the Laragon Menu > PHP > Version > New Version command.

Other Addons & Features #3: Reset MySQL Root Password with 1 Click

Navigate to "Root >> MySQL >> Reset" and generate random password for root.

Other Addons & Features #4: SSL Certificate

You can generate SSL certificates from "Menu > Apache > SSL". Laragon will auto-generate corresponding SSL certificates and auto update your Virtual Hosts. Those auto-generated certificates are found in the following directory path:

(LARAGON_ROOT)\etc\ssl

Other Addons & Features #5: Mail Catcher

This feature is available via "Menu > Preferences > Mail Catcher." Emails are saved as HTML or text files and located in the following directory path:

C:\laragon\bin\sendmail\output

Other Addons & Features #6: Mail Sender

This features allows the use of PHPmail() function to send emails to the Internet. You need to specify a Gmail address and password in the "Menu > Preferences > Mail Sender" area and send emails.

Terminal Access

You can also access Laragon via the Terminal from "Menu > Laragon > Terminal" area.

Conclusion


Laragon is suggested as a perfect solution for a local WordPress development and testing environment. Every Windows user needs to try it out. You can find more details about Laragon at https://forum.laragon.org/.

Happy developing!


Fully Managed Hosting Plans with Nexcess


Nexcess Managed Hosting
offers you faster speeds, more robust security, inherent scalability, and trusted support. Once your website is ready to go live, consider our stellar hosting plans:

Plugin Performance Monitor — Test Your WordPress Plugins Automatically


Don’t let changes to your website slow you down. The Nexcess Plugin Performance Monitor watches your site hourly, so you don’t just see the problem - you know how to fix it.


Why Choose Nexcess?


Because we are different! Chris Lema captures "the why" in his passionate and stirring recount of a Nexcess support-related story.


Why Your Hosting Provider Matters


We’ve optimized hosting for the industry’s leading commerce and content platforms. That means speed, security, scalability and support are built in. Backed by free migrations and 30-day money-back guarantee, let us show you why we’re the best.

No one optimizes hosting for open-source applications better than Nexcess!



Recent Articles


Related Articles

Sapta Upendran
Sapta Upendran


Sapta is passionate Linux Systems Engineer, voracious reader, dexterous cook, and full of wanderlust. She is also interested in technical and non-technical writings.