Database Setup

Click on the 'Create / Reset Database' button below to create or reset your database.
If you get an error make sure you have the correct user credentials in: /var/www/html/dvwaapp2/config/config.inc.php

If the database already exists, it will be cleared and the data will be reset.
You can also use this to reset the administrator credentials ("admin // password") at any stage.



Setup Check

General
Operating system: *nix

DVWA version:
  • Git reference: d45ba3c4e7efa7f023f25f58ab4af9912c887057
  • Date: Sat May 30 11:13:16 2026 +0100

reCAPTCHA key: Missing

Writable folder /var/www/html/dvwaapp2/hackable/uploads/: Yes
Writable folder /var/www/html/dvwaapp2/config: Yes

Apache
Web Server SERVER_NAME: dvwa.btkh.today

mod_rewrite: Enabled
mod_rewrite is required for the API labs.

PHP
PHP version: 7.4.3-4ubuntu2.29
PHP function display_errors: Disabled
PHP function display_startup_errors: Disabled
PHP function allow_url_include: Enabled - Feature deprecated in PHP 7.4, see lab for more information
PHP function allow_url_fopen: Enabled
PHP module gd: Installed
PHP module mysql: Installed
PHP module pdo_mysql: Installed

Database
Backend database: MySQL/MariaDB
Database username: dvwa
Database password: ******
Database database: dvwa
Database host: 127.0.0.1
Database port: 3306

API
This section is only important if you want to use the API module.
Vendor files installed: Not Installed

For information on how to install these, see the README.

Status in red, indicate there will be an issue when trying to complete some modules.

If you see disabled on either allow_url_fopen or allow_url_include, set the following in your php.ini file and restart Apache.
allow_url_fopen = On
allow_url_include = On
These are only required for the file inclusion labs so unless you want to play with those, you can ignore them.






Unable to connect to the database.