DVWA Setup apache Linux Server

How to setup DVWA vulnerable web app with the custom database in apache Linux server

DVWA is a DAMM VULNERABLE WEB APP coded in PHP/MYSQL. Seriously it is too vulnerable. In this app security professionals, ethical hackers test their skills and run these tools in a legal environment. The aim of DVWA is to practice some of the most common web vulnerability, with various difficulties levels DVWA Setup apache

Download DVWA Vulnerable web here www.dvwa.co.uk

Download DVWA with wget command

After downloading complete the file I extract the file destination our default apache server directory

change permission Directory (-R mean Recursively DVWA inside all file)

  • root: read, write, executable
  • group: read, executable
  • other: read, executable

Changing Ownership of Directory (-R mean Recursively DVWA inside all file)

  • user: www-data
  • group: www-data

Creating a new database for our DVWA WEB App


Create a database name for our data

Creating a database user and password

granting permission and creating a password

Flush all privilege

After creating our database we configure our DVWA database file I change our directory config folder

Rename config file with mv command

Edit DVWA database config file I use VIM editor you use your favorite editor

starting our MySQL and apache server

now open your browser and type your IP address and DVWA file name and login with the default username and password

we see our setup is almost complete last step is to create a reset database

Again login with default logging username and password and your DVWA is full setup success

How to configure xampp in Linux here

1 thought on “DVWA Setup apache Linux Server”

  1. We are a group of volunteers and starting a new scheme in our
    community. Your website offered us with valuable info to work on. You have done
    an impressive job and our entire community will be grateful to you.

Comments are closed.

Exit mobile version