Download DVWA in here
copy to directory /srv/www/htdocs [ in open suse ]
#chmod 777 DVWA-1.0.7.zip
create a database in your local machine
>mysql create database dvwa;
to C0nfigure it , change your database c0nfiguration in /config/config.inc.php
# Database variables
$_DVWA = array();
$_DVWA[ 'db_server' ] = 'localhost';
$_DVWA[ 'db_database' ] = 'dvwa'; >> your database name
$_DVWA[ 'db_user' ] = 'root'; >> your database user
$_DVWA[ 'db_password' ] = ''; >> your database password
config php.ini in /srv/www/htdocs/dvwa/php.ini
change it to be
; This file attempts to overwrite the original php.ini file. Doesnt always work.
magic_quotes_gpc = Off
allow_url_fopen on
allow_url_include on
open in localhost
for setup
c0nfig database