DVWA is mainly used for learning the web of common attacks, such as SQL injection, XSS, such as a penetration test system, the following I will be combined with XAMPP to illustrate its installation process.
First, the environment
Os:windows 10
xampp:5.6.24
dvwa:1.9
Second, XAMPP installation
The installation of XAMPP is the same as the installation of ordinary software, which is not mentioned here. When the installation is complete, if Apache or MySQL does not start, it may be because of port conflict, modify the method as follows:
1. Click on the Apache config key, select httpd.conf in the drop-down list, and replace all 80 ports inside with another port number, such as 8000;
2. Click the Apache config key again, select Httpd-ssl.conf in the drop-down list and replace all 443 ports inside with another port number, such as 4443;
3. Click the config key for MySQL, select My.ini, and replace all 3306 ports in the file with the other port number;
However, I am in the installation process MySQL does not appear the port is occupied, so only modified the Apache two configuration files, then click the Start button, you can see that both Apache and MySQL can start normally.
Third, DVWA installation
Assuming that the installation path of the XAMPP is F:\install\xampp,apache configuration port is 8000, this time open the browser, enter http://127.0.0.1:8000, you can see the page has been able to display the normal, the following to complete the DVWA configuration.
1. First download Dvwa zip archive from the official website, rename the unzipped file to DVWA (can not change, I just for convenience), and then put in F:\install\xampp\htdocs directory, open the browser again, enter http://127.0.0.1:8000 /DVWA, you can see the installation page of DVWA;
2. Some of the wrong solutions
(1) PHP function Allow_url_include Disabled
Open/xampp/php/php.ini and find
allow_url_include=Off
Switch
allow_url_include=On
(2) Could not connect to the MySQL service. Please check the config file
Open the/xampp/htdocs/dvwa/config/config.inc.php and
$_DVWA[‘db_user‘] = ‘root‘
$_DVWA[‘‘db_password] = ‘[email protected]‘
Switch
$_DVWA[ ‘db_user‘ ] = ‘root‘;
$_DVWA[ ‘db_password‘ ] = ‘‘;
This should be the default username and password of MySQL in xampp, I do not know the different version of XAMPP is not the same, because on the Internet also see the default user name is root, the default password is root, I tried this method, but not successful.
(3) ReCAPTCHA key:missing
Open the/xampp/htdocs/dvwa/config/config.inc.php and
$_DVWA[ ‘recaptcha_public_key‘ ] = ‘‘;
$_DVWA[ ‘recaptcha_private_key‘ ] = ‘‘;
Switch
$_DVWA[ ‘recaptcha_public_key‘ ] = ‘6LdK7xITAAzzAAJQTfL7fu6I-0aPl8KHHieAT_yJg‘;
$_DVWA[ ‘recaptcha_private_key‘ ] = ‘6LdK7xITAzzAAL_uw9YXVUOPoIHPZLfw2K1n5NVQ‘;
Configuring DVWA in Xampp