Migrate from Laragon
Switch from Laragon to DAMP on Windows
Switch from Laragon to DAMP and get DevContainers, service isolation, and cross-platform compatibility.
Migration Process
Stop Laragon Services
Stop all services to free ports:
- Open Laragon
- Click "Stop All" button
- Right-click system tray icon → "Exit"
- Verify ports are free:
netstat -ano | findstr ":80 :443" # Should return nothing
Open DAMP
Launch DAMP and click "Add Site" button.
Select "Existing Project"
Choose the Existing Project option.
Configure Site
Fill in the details:
| Field | Value | Example |
|---|---|---|
| Name | Your site name | my-laragon-site |
| Path | Your Laragon project | C:\laragon\www\my-project |
| PHP Version | Your current PHP | 8.3 |
Install Services
Install services your project uses:
| Service | Install? | Why? |
|---|---|---|
| MySQL | ✅ Required | If using database |
| PostgreSQL | ✅ If needed | If using PostgreSQL |
| Redis | ✅ Recommended | For caching/queues |
| Mailpit | ✅ Recommended | For email testing |
Go to Services page → Click "Install" for each needed service.
Export Laragon Database
Export your existing data:
- Open Laragon
- Click "Database" → "Open" (HeidiSQL)
- Right-click database → "Export database as SQL"
- Save as
backup.sql
Import to DAMP
Import data to DAMP MySQL:
# Inside VS Code DevContainer terminal
mysql -h damp-mysql -u damp -pdamp damp < backup.sqlUpdate Configuration
Open project in VS Code DevContainer and update .env or config.php:
Laravel .env:
# Old Laragon config
DB_HOST=127.0.0.1
DB_DATABASE=my_database
# New DAMP config
DB_HOST=damp-mysql
DB_DATABASE=damp
DB_USERNAME=damp
DB_PASSWORD=damp
# Redis (if using)
REDIS_HOST=damp-redis
# Mail
MAIL_HOST=damp-mailpit
MAIL_PORT=1025Plain PHP:
// Old Laragon
$host = '127.0.0.1';
// New DAMP
$host = 'damp-mysql';Update Hosts (Optional)
Laragon managed your hosts file. With DAMP:
- Sites use
*.localdomains - Caddy handles routing automatically
- No hosts file editing needed!
Test Your Site
- Open in VS Code: Click "Open in VS Code" in DAMP
- Reopen in Container when prompted
- Browse to
https://yoursite.local - Install SSL certificate from DAMP
What Changed
File Structure
DAMP adds DevContainer files to your existing project:
my-project/
├── .devcontainer/ ← Added by DAMP
│ ├── devcontainer.json
│ ├── Dockerfile
│ └── php.ini
├── .vscode/ ← Added by DAMP
│ ├── launch.json
│ └── settings.json
└── [Your existing Laragon files remain]Service Access
Laragon:
$host = '127.0.0.1'; // Localhost
$port = 3306;DAMP:
$host = 'damp-mysql'; // Container name
$port = 3306;Domain Names
Laragon:
http://my-project.testDAMP:
https://my-project.local # HTTPS by defaultKey Differences
Service Management
Laragon: Start/stop all services together
DAMP: Install/uninstall services per project
Port Assignment
Laragon: Fixed ports (80, 443, 3306, etc.)
DAMP: Auto-assigned ports (no conflicts!)
Troubleshooting
Keep Laragon Installed
You can keep Laragon for non-DevContainer projects - just don't run both on ports 80/443 simultaneously!