DVWA installation and error to solve

PS: I am building an integrated environment in wamp5

 

1, decompress downloaded DVWA installation package to the next directory www

    DVWA installation package:  https://pan.baidu.com/s/1ivnwiH53gIV5jWU5IyeD0Q

2. Enter in your browser "   http://127.0.0.1/DVWA-master/setup.php  " (DVWA-Master is unpacked into the folder name)

3, enter setup installation interface, click on the  Create / Reset Database  following error may occur when the button:

 Technology sharing pictures

 Technology sharing pictures

 

4, modify the  config.inc.php  configuration file

 Technology sharing pictures

  • The security level is set to low

              $_DVWA[ ‘default_security_level‘ ] = ‘low‘;

  • mysql default password is blank

               $_DVWA[ ‘db_user‘ ]     = ‘root‘;

               $_DVWA[ ‘db_password‘ ] = ‘‘;

 

Error: reCAPTCHA key: Missing

  • Public_key to set up and private_key

              $_DVWA[ ‘recaptcha_public_key‘ ]  = ‘6LdK7xITAAzzAAJQTfL7fu6I-0aPl8KHHieAT_yJg‘;

              $_DVWA[ ‘recaptcha_private_key‘ ] = ‘6LdK7xITAzzAAL_uw9YXVUOPoIHPZLfw2K1n5NVQ‘;

 

5, if the error also try setup again, find php configuration file ( the php.ini ) as modified below.

 Technology sharing pictures

 

报错: PHP function allow_url_include: Disabled

  • allow_url_include=Off     改为     allow_url_include=on

 

Error: PHP module pdo_mysql: Missing

           Fatal error: Uncaught exception ‘PDOException‘ with message ‘could not find driver‘

  • Remove ";" or "#" Notes to extend opening portion.

             ; Extension = php_pdo.dll to extension = php_pdo.dll

             ; Extension = php_pdo_mysql.dll to extension = php_pdo_mysql.dll

 

 Error: PHP module gd: Missing

  •  ; Extension = php_gd2.dll to extension = php_gd2.dll

 

  •  Restart the service, then setup

 

(I use wamp, the easiest way is to find wamp5 icon in the taskbar, select "PHP Settings" - "PHP Extension" - " choose what you want to open the Extensions" )

 

 Technology sharing pictures

 Technology sharing pictures

 

Test GD library code:

<? PHP 
 IF (extension_loaded ( 'Gd')) { 
       echo 'can Gd <br>'; 
       the foreach (gd_info () = AS Cate $> $ value) { 
           echo "$ Cate: $ <br> value"; 
       } 
 the else} 
      echo 'extensions are not installed gd'; 
 ?>

 

Technology sharing pictures

 

Guess you like

Origin www.cnblogs.com/forforever/p/12614635.html