DVWA Installer 🚀
August 19, 2026 · View on GitHub

Automated, modern, and zero-touch installer for DVWA (Damn Vulnerable Web Application) on Debian and Ubuntu-based Linux distributions.
🌟 Features / Características / Fonctionnalités
- ⚡ Zero-Touch Setup: Automatically installs all dependencies, configures Apache & MariaDB, fixes PHP directives, and initializes the DVWA database tables via
setup.phpwithout requiring manual browser interaction. - 🛡️ PHP & PCRE JIT Compatibility: Automatically tunes PHP directives (
allow_url_include,allow_url_fopen,display_errors) and applies thepcre.jit = 0fix for modern PHP environments. - 🐳 Universal Service Fallback: Supports
systemd,service, and/etc/init.d/— fully compatible with standard Linux servers, Docker containers, WSL 1/2, and minimal environments. - 🎨 Cyberpunk / Neon UI: 5-stage progress indicators (
[1/5]to[5/5]), clear status badges ([➜],[✓],[!],[?]), and an access summary card. - 🤖 Batch / Headless Mode: Supports automated, non-interactive execution via environment variables.
- 🌐 Multi-Language Support: Full automatic detection for English, Español, and Français (
LC_ALL/LC_MESSAGES/LANG).
🛠️ Quick Installation / Instalación Rápida
Run the one-liner command in your terminal as root / sudo:
sudo bash -c "$(curl --fail --show-error --silent --location https://raw.githubusercontent.com/IamCarron/DVWA-Script/main/Install-DVWA.sh)"
Note / Nota / Remarque: If you intend to use the
rootuser with an empty MySQL password, ensure you run the script directly as therootuser.
🤖 Non-Interactive / Batch Mode
For CI/CD pipelines, Dockerfiles, or automated setups, you can pass parameters as environment variables:
sudo batch_mode=1 sql_user="root" sql_password="" force_download="y" bash -c "$(curl -fsSL https://raw.githubusercontent.com/IamCarron/DVWA-Script/main/Install-DVWA.sh)"
🔐 Credentials / Credenciales / Identifiants
Once the installation finishes, open your browser and navigate to http://localhost/DVWA:
| Field / Campo | Value / Valor |
|---|---|
| URL | http://localhost/DVWA |
| Username / Usuario | admin |
| Password / Contraseña | password |
🌐 Language Support / Idiomas
The script automatically detects your system locale:
- 🇬🇧 English (
en) - 🇪🇸 Español (
es) - 🇫🇷 Français (
fr)
🤝 Contributing & License
Contributions, issues, and feature requests are welcome! Feel free to check the issues page.
Distributed under the MIT License. See LICENSE for more information.