Blank login and wrong permissions #115

Open
M3rcurio opened this Issue Dec 2, 2016 · 11 comments

Projects

None yet

4 participants

@M3rcurio
M3rcurio commented Dec 2, 2016

I installed DVWA on apache2 but, when I try to go to localhost/dvwa in the browser it sends me to the localhost/dvwa/login.php web page which is blank. I've manually typed localhost/dvwa/setup.php in the browser and it shows "var/www/html/dvwa/hackable/uploads/" and "var/www/html/dvwa/external/phpids/0.6/lib/IDS/tmp/phpids_log.txt" are not writable, even if i give them writable permissions (chmod +w ...).
This is what setup.php shows: http://pastebin.com/0J8YeeAa.
I also watch apache error log which is full of errors: http://pastebin.com/6wC0ZJmi

@digininja
Contributor
@M3rcurio
M3rcurio commented Dec 2, 2016

..but when i type "mysql" on command line it opens mysql shell and it works fine, what libraries are missing?

@digininja
Contributor
@prmdsngh
prmdsngh commented Dec 3, 2016 edited

please see the php version u using is either 5 or 7.0

sudo apt-get install php7.0-gd

u can check ur php version

php -v

@M3rcurio
M3rcurio commented Dec 3, 2016 edited

I found the issue: php v7.0 doesn't support functions like msql_connect(...) which is used in dvwa because they are deprecated. I'm using php v7.
I've already had php-mysql.
For testing php-mysql i tried to make my own db with a table called "users" which contains (fake) users and passwords. After that i created a php login for that db and works fine.
The question now is: do i have to downgrade php or exist a dvwa for latest php version?

@digininja
Contributor
@M3rcurio
M3rcurio commented Dec 3, 2016

Downloaded github dvwa but setup.php says "PHP module mysql: Missing".
When i type "apt-get install php-mysql" on command line the answer is "php-mysql is already the newest version (1:7.0+46)."
Also my own fake login works...

@digininja
Contributor
@M3rcurio
M3rcurio commented Dec 3, 2016

Ok, it works now! (Even if setup.php says module php is missing)

@digininja
Contributor
@GroupT00

顶一下,我来自china

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