1. Introduction
For more then a decade I used XAMPP as a local development server. Although XAMPP is popular, it is not very fast nor easy to configure and not suited for using multiple PHP versions.
A few years ago I accidentally stumbled upon Laragon. It only took me 10 minutes to realize this was by far the best local development stack I’ve ever seen.
It has some features I have not found in other stacks :
- blazing fast startup, low CPU and memory footprint
- multiple PHP versions possible, easy switching between installed versions
- works out of the box with not only MySQL/MariaDB but also PostgreSQL & MongoDB
- all tools you need are build-in
- all services and build-in tools are easy to upgrade to their latest versions
- automatic virtual host configuration and hosts file change
- Quick App creation
- …
This post covers the installation of Laragon 6.x.
2. Installation
- Download Laragon (Full) into your Downloads folder.
- Start the installer laragon-full.exe.
- Change the location of the installation to a folder in the root of a fast drive. Prefer NVMe drives or SSD drives for optimal performance. Avoid using your systems OS boot drive.
By installing Laragon in a folder in the root of the drive you automatically keep the length of the PATH variable as short as possible. - Click Next.
- If you want to run Laragon when Windows starts, check the appropriate option.
- Laragon will automatically adapt your local hosts file every time you add or remove a project. Leave the Auto Virtual hosts option enabled.
- If you don’t already have an enhanced text editor installed, check the last option to integrate (the in Laragon included) Notepad++ to your Explorers Right-Click Menu.
- Click Next.
3. Configuration
4. Exploring the Main Menu
- In the PHP section, you can manage and configure the installed PHP version(s).
- It’s possible and very easy to install multiple PHP versions and switch between them using the Laragon Main Menu.
- In a future post, we’ll explain how to add new PHP versions and/or how to update the existing version.
- In the Apache section, you can manage and configure the installed Apache version.
- In a future post, we’ll explain how to update the existing Apache version.
- In the MySQL section, you can manage and configure the installed database version.
- In a future post, we’ll explain how to update the existing version.
- In other posts, we’ll explain how to use database providers like MariaDB, MongoDB or PostgreSQL.
- In the Node.js section, you can see the installed Node.js version.
- In a future post, we’ll explain how to update the existing version.
- In the Phyton section, you can see the installed Phyton version.
- In a future post, we’ll explain how to update the existing version.
5. Integrating the SSL Certificate
6. Starting the Services for the first time
7. Exploring the Button Menu
- You can click the Database button to open the database manager.
- By default Laragon will start the build-in portable HeidiSQL tool to manage your databases.
- In a future post we’ll explain how to add a portable phpMyAdmin tool to manage your databases.
8. Summary
Laragon is a very fast and powerful, yet easy to setup and configure local development server stack. Give it a chance. Play around with it for just a moment. I’m sure you’ll start using it too and just like me, you’ll nerver look back.
In future posts I’ll explain how easy it is to update Laragons services and even the build-in portable tools.
Buonasera, mi sono fermato all’aggiornamento di apache perché non l’ho trovato nella cartella bin e c’è un apache2 nella cartella etc. Ho comunque eseguito “Spostare la cartella completa \httpd-2.4.55-win64-VS17\ nella cartella \bin\apache\ dell’installazione di Laragon.” e mi da la seguente risposta:
Failed.Apache httpd-2 4 57-win64-VS17 80
Service Apache can not start. Reason:
httpd: Syntax error on line 547 of
M:/wp/laragon-6.0.0/bin/apache/httpd-2A.57-win64-…
Syntax error on line 1 of
M:/wp/laragon-6.0.0/etc/apache2/fcgid.conf: Cannot
load
M:/wp/laragon-6.0.0/etc/apache2/modules/mod_fcgi…
into server: Impossibile trovare il modulo specificato.
Nel ringraziare, per l’opportunità, attendo gradita risposta. Lionello
I just tested this in a fresh LARAGON 6 installation.
There is a \LARAGON\bin\apache\ folder, no \LARAGON\bin\apache2\.
Just follow the instructions in the post https://www.kreaweb.be/laragon-update-apache/.
Do not forget the instructions marked in red color.
Then you should be fine.
Thanks for keeping this updated.
Do you know a way to force the sites to open on https instead of http?
Thanks.
I have no idea how to force all projects to open in https.
Kind regards.
Marc