Skip to Content

Laragon

Laragon is a portable, isolated, fast & powerful universal development environment for PHP, Node.js, Python, Java, Go, Ruby. It is fast, lightweight, easy-to-use and easy-to-extend.

Installation

Install Laragon using any of the 2 package manager or manually.

Option 1: Using choco

Step 1: Open your Terminal as Administrator

  1. Press Windows Key + X and select Windows PowerShell (Admin) or Command Prompt (Admin).
  2. Click Yes if prompted by the User Account Control dialog.

Step 2: Install Laragon using command

terminal
choco install laragon -y
Note

The -y flag automatically accepts all prompts, making the installation seamless.

Option 2: Using scoop

Step 1: Open your Terminal

You don’t need to run Terminal as Administrator.

Step 2: Install Laragon using command:

terminal
scoop bucket add extras scoop install extras/laragon

You can change Laragon’s configuration later on.

Option 3: Install Manually

Step 1: Start by downloading Laragon Full (64-bit) edition which includes:

  • Apache 2.4, Nginx, MySQL 8, PHP 8, Redis, Memcached, Node.js 18, npm, git

Step 2: Run installation wizard

Open the downloaded file, follow the installation wizard and click Next, Next, Next... .

Step 3: Setup - Welcome page

Laragon Welcome page

Step 4: Setup - Select location

Laragon Select location

Step 5: Setup - Options

Laragon Options

🚫
Important

For security purposes, Windows will ask you to confirm, just click “Run” to continue.

You can follow through the Laragon official installation guide for more details.


Configuration

With Laragon, you can easily switch between different versions of PHP, MySQL, MariaDB, and other tools.

Switching PHP, MySQL/MariaDB version

Open packages.conf file

Step 1: Start your Laragon app.

this will open the Laragon dashboard.

Step 2:

Right click anywhere on the blank space or find Laragon icon in the system tray.

Laragon dashboard context menu

Laragon dashboard context menu

Laragon system tray context menu

Laragon system tray context menu

Step 3:

Go to Tools > Quick add > Configuration….

Note

This will open the packages.conf file in notepad++.

laragon packages.conf

Step 4: Add PHP version

Add the following line below the existing PHP version (eg. php8.2):

laragon
php8.3=https://windows.php.net/downloads/releases/archives/php-8.3.12-nts-Win32-vs16-x64.zip

add php8.3

Step 5: Add MariaDB version

Within notepad++, if you still have the packages.conf opened, add the following line below # MySQL:

💡
Tip

You can follow previous steps to open packages.conf file.

largon
# MariaDB mariadb-11.4=https://archive.mariadb.org/mariadb-11.4.3/winx64-packages/mariadb-11.4.3-winx64.zip

add mariadb

Step 6: Save file changes

Once you’ve added those lines, save the file close notepad++.

Download and install newly added versions

Step 1

To install the versions we defined, right click on Laragon icon in the system tray and select Tools > Quick add > then select the tools you want to install, in this case we’ll install PHP 8.3 and MariaDB 11.4.

add php8.3

add mariadb

Step 2

Wait for the installation to complete.

PHP8.3 version installation

Note

A window prompt might appear before proceeding with installation. Click Yes to confirm.

Activate the newly installed versions

Step 1:

  1. To activate PHP 8.3, right click on Laragon icon in the system tray and PHP > Version then select php-8.3.12.

    activate php8.3

  2. Do the same for MariaDB 11.4, right click on Laragon icon in the system tray and MySQL > Version then select mariadb-11.4.3.

    activate mariadb11.4

Step 2: Restart Laragon

  1. Fully exit and restart Laragon by right clicking on the Laragon icon in the system tray and select Exit.

    restart laragon

  2. Once you open Laragon again, click on Start All button.

    laragon start all

    You should see Laragon started with MariaDB 11.4.3.

    laragon started

    Note

    Windows might prompt you to run services like mysql. Click Yes to confirm.

Step 3: Verify installed versions

  1. We can verify the installed versions using Laragon Terminal, simply right click on Laragon icon in the system tray and select Laragon > Terminal.

    laragon terminal

  2. Then run the following commands:

    terminal
    php --version mysql --version

    You should see the following output:

    laragon terminal php version laragon terminal mysql version

    Note

    If versions are not correct, try restarting Laragon, open a new Laragon terminal then run the commands again.

Last updated on