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

DVWA Setup apache

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

create a database mariadb

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

config file

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

dvwa login id 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