Laragon — Windows Localhost
Laragon is a modern, portable local development environment for Windows. Unlike XAMPP or WAMP, Laragon features automatic virtual hosts, easy switching between PHP/Node versions, and a clean, lightweight design.
Laragon localhost:
http://localhost
Auto vhosts:
http://myproject.test | Admin: phpMyAdminWhy Laragon?
| Feature | Laragon | XAMPP/WAMP |
|---|---|---|
| Auto Virtual Hosts | ✅ project.test | ❌ Manual config |
| Portable | ✅ Run from USB | ❌ Install required |
| PHP Switching | ✅ Right-click | ⚠️ Complex |
| Node.js Support | ✅ Built-in | ❌ Separate install |
| SSL/HTTPS | ✅ One-click | ⚠️ Manual |
| Memory Usage | ~4MB RAM | ~100MB+ RAM |
Download & Install
- Download from laragon.org
- Choose edition:
- Full — Apache, MySQL, PHP, Node.js, Redis, etc.
- Lite — Minimal (Apache, MySQL, PHP)
- Portable — Run from USB drive
- Run installer or extract portable version
- Launch Laragon
- Click Start All
Automatic Virtual Hosts
Laragon's killer feature: create a folder in www and it automatically becomes foldername.test
# Create project folder
C:\laragon\www\mysite\
# Automatically accessible at:
http://mysite.test
# No Apache config editing needed!
Quick Create Projects
Right-click Laragon tray icon → Quick app:
- WordPress — Downloads and configures WP
- Laravel — Creates new Laravel project
- Symfony — Creates Symfony project
- Drupal — Downloads and sets up Drupal
- Joomla — Creates Joomla installation
Switch PHP Versions
- Right-click Laragon tray icon
- Go to PHP
- Select version (7.4, 8.0, 8.1, 8.2, 8.3)
- Services restart automatically
Directory Structure
| Path | Purpose |
|---|---|
C:\laragon\www\ | Document root (projects) |
C:\laragon\bin\ | PHP, MySQL, Apache binaries |
C:\laragon\data\ | MySQL databases |
C:\laragon\etc\ | Configuration files |
Enable HTTPS/SSL
- Right-click Laragon → Apache → SSL → Enable
- Access project at
https://mysite.test - Self-signed certificate auto-generated
Included Tools
- Apache or Nginx (switchable)
- MySQL or MariaDB
- PHP (multiple versions)
- Node.js with npm
- Redis (optional)
- Memcached (optional)
- Git, Composer, npm
- Terminal (Cmder)
- HeidiSQL (database GUI)
Troubleshooting
| Problem | Solution |
|---|---|
| Port 80 in use | Stop Skype/IIS, or change Apache port |
| .test not working | Restart Laragon (updates hosts file) |
| MySQL won't start | Check port 3306 availability |
| PHP extension missing | Enable in php.ini via Laragon menu |