我的问题是设置服务器:
PHP function `allow_url_include: Disabled`
我的配置文件说它已启用.它可能与我的端口有关吗?我应该设置我的服务器以便外部访问我的路由器,还是内部IP访问足够?
设置我的服务器时,我得到了这个:
Database Setup
Click on the ‘Create / Reset Database’ button below to create or reset your database.
If you get an error make sure you have the correct user credentials in: C:\XAMPP\htdocs\dvwa/config/config.inc.PHP
Setup Check
Operating system: Windows
Backend database: MysqL
PHP version: 5.5.30Web Server SERVER_NAME: 192.168.0.13
PHP function display_errors: Enabled (Easy Mode!)
PHP function safe_mode: Disabled
PHP function allow_url_include: Disabled
PHP function allow_url_fopen: Enabled
PHP function magic_quotes_gpc: Disabled
PHP module PHP-gd: InstalledreCAPTCHA key: Missing
Writable folder C:\XAMPP\htdocs\dvwa/hackable/uploads/: Yes)
Writable file C:\XAMPP\htdocs\dvwa/external/PHPids/0.6/lib/IDS/tmp/PHPids_log.txt: YesStatus in red,indicate there will be an issue when trying to complete some modules.
C:\xampp\PHP\PHP.ini
并改变:
allow_url_include=Off
至:
allow_url_include=On
然后去:
C:\xampp\htdocs\DVWA\config\config.inc.PHP
并改变:
$_DVWA[ 'recaptcha_public_key' ] = ' '; $_DVWA[ 'recaptcha_private_key' ] = ' ';
成:
$_DVWA[ 'recaptcha_public_key' ] = '6LdK7xITAAzzAAJQTfL7fu6I-0aPl8KHHieAT_yJg'; $_DVWA[ 'recaptcha_private_key' ] = '6LdK7xITAzzAAL_uw9YXVUOPoIHPZLfw2K1n5NVQ';