1、首先按照如下文件安装最基本DVWA的环境,该环境搭建完成后支持http访问
(6条消息) DVWA安装教程(懂你的不懂·详细)_学会了再换名字的博客-优快云博客
2、进入到phpstudy_pro的安装路径下修改apache的配置文件,路径如下:phpstudy_pro\Extensions\Apache2.4.39\conf
2.1 修改httpd.conf文件,包含httpd-ssl.conf文件
<IfModule ssl_module>
Include conf/extra/httpd-ssl.conf
#Include conf/extra/httpd-ahssl.conf
2.2指定文档路径
DocumentRoot "D:/phpstudy_pro/WWW"
2.3使用默认的认证文件
SSLCertificateFile "${SRVROOT}/conf/ssl/server.crt"
SSLCertificateKeyFile "${SRVROOT}/conf/ssl/server.key"
2.4 修改一下网页的php解析,将路径换成自己的安装路径
FcgidInitialEnv PHPRC "D:/phpstudy_pro/Extensions/php/php7.3.4nts"
AddHandler fcgid-script .php
FcgidWrapper "D:/phpstudy_pro/Extensions/php/php7.3.4nts/php-cgi.exe" .php
2.5 在phpstudy_pro中重启apache的服务
3. 使用https访问
https://127.0.0.1/DVWA-master/
successful 成功
4. 输入用户名和密码并选择系统安全级别:
admin/password