DVWA works fine in PHP7 #117

digininja opened this Issue Dec 3, 2016 · 4 comments


None yet

3 participants


I'm creating this issue in the hope that people will find it when complaining that DVWA doesn't work in PHP7 and with the new MySQL drivers.

As I've said in lots of other tickets, IT DOES.

I've just done a fresh install of Ubuntu, installed "PHP Version 7.0.8-0ubuntu0.16.04.3" and its associated MySQL drivers and it worked straight off.

There is a little config required if you want to enable all the features but the setup page displayed fine, the database was created correctly and I could log in.

So, if you have problems with DVWA, please do not complain that it doesn't work in PHP7, it does, it is where I run it on all my machines. The upgrades have been done so it works with mysqli_ instead of mysql_.

There may be the odd bug here or there but the fundamentals work.

I'm going to leave this open for a short while so that it gets indexed and people can see it then I'll close it and hope that google can do its magic and show people that it does work.


Since you're so upset with people complaining about DVWA not working with PHP7 you should create a release with the name "PHP7 Compatibility Update".

In the website it automatically downloads the 1.9 release from 2015.

If you care about the package to create an issue yourself telling people not to create issues, consider what you can do to prevent people from creating those issues...


Updated link on dvwa.co.uk to point to master zip download


Great! Thanks you.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment