DVWA设置PHP函数allow_url_include:已禁用

前端之家收集整理的这篇文章主要介绍了DVWA设置PHP函数allow_url_include:已禁用前端之家小编觉得挺不错的,现在分享给大家,也给大家做个参考。
我正在通过XAMPP在 Windows上设置DVWA,我在谷歌搜索了大约24小时 – 我似乎无法找到答案.

我的问题是设置服务器:

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.30

Web 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: Installed

reCAPTCHA 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: Yes

Status 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';

猜你在找的PHP相关文章