s4n7h0 / xvwa

XVWA is a badly coded web application written in PHP/MySQL that helps security enthusiasts to learn application security.
GNU General Public License v3.0
1.69k stars 339 forks source link

Installing #14

Closed Maigo96 closed 8 years ago

Maigo96 commented 8 years ago

OK... I'm stuck... I'm installing on top of XAMPP.

This is my config file config

When I visit localhost I get this: page

I get errors in the source underlyingsourse

Any ideas?

Barsomisco commented 8 years ago

I'm using WAMP and I had the same problem. I solved it by creating a database in phpmyadmin called xvwa with a user called root and with the password root.

s4n7h0 commented 8 years ago

@Maigo96 yes. I can see the error is because of database access. Make sure the username and password for Mysql is correct. Also create a database in mysql using command line or phpmyadmin as suggested by @Barsomisco I will be also releasing an pre-configured iso soon to make things more easy :)

Barsomisco commented 8 years ago

@s4n7h0 I also got another error that might be something to look into aswell: "Deprecated: mysql_connect(): the mysql extension is deprecated and will be removed in the future: use mysqli or PDO...." At the moment I simply ignore it by adding this line in php.ini: error_reporting = E_ALL ^ E_DEPRECATED

s4n7h0 commented 8 years ago

@Barsomisco Is that error or warning ??

Barsomisco commented 8 years ago

@s4n7h0 I guess it is an error since it kinda break the website: depr

s4n7h0 commented 8 years ago

@Barsomisco Oh yea. can you please use error_reporting(E_ALL ^ E_DEPRECATED); option to ignore those errors as you suggested earlier. mysql_connect() is required in some part of the application.

s4n7h0 commented 8 years ago

@Barsomisco Hey, I made a short script for auto configuring xvwa with latest repo from GitHub. This issue should be closed with it https://github.com/s4n7h0/Script-Bucket/blob/master/Bash/xvwa-setup.sh