Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- How to install DVWA Without any error (dvwa install github)
- ERRORS FIXED:
- - DVWA install in kali linux
- - DVWA White screen error fixed
- - DVWA unable to login error fixed
- - DVWA how to create and delete database and user in MYSQL or mariadb
- - DVWA default login and password
- - Start stop start at boot apache2 and mariadb
- - Video link will be added soon
- #----------------------------------------------------------------------------------#l
- #------ FIRST TIME INSTALLATION TO IF DVWA IN KALI LINUX / PARROT OS / UBUNTU------#
- #------ Please join https://t.me/efxtv to get it installed by us ------------------#
- #----------------------------------------------------------------------------------#
- #Install DVWA
- - google 'DVWA install'
- - Click on the first link (https://github.com/digininja/DVWA)
- - CTRL + f and search for git clone
- - Copy the command and paste it into your terminal
- # Install requirements
- sudo apt install -y apache2 mariadb-server mariadb-client php php-mysqli php-gd libapache2-mod-php
- # Git clone
- cd /var/www/html
- git clone https://github.com/digininja/DVWA.git
- # Permissions
- sudo su -
- chmod -R 777 /var/www/html/DVWA
- #Change php config
- cp /var/www/html/DVWA/config/config.inc.php.dist /var/www/html/DVWA/config/config.inc.php
- # Start services
- sudo systemctl start apache2
- sudo systemctl start mariadb
- or
- sudo systemctl start mysql
- # Stop services
- sudo systemctl stop apache2
- sudo systemctl stop mariadb
- or
- sudo systemctl stop mysql
- # Create a database and fix the white screen error
- sudo su -
- sudo msql -u root -p
- create database dvwa;
- create user dvwa@localhost identified by 'p@ssw0rd';
- grant all on dvwa.* to dvwa@localhost;
- # Verify by logging in to the database with the same password
- - open a new terminal (ERROR: use the command in case of no login mysql -u dvwa -pp@ssw0rd )
- mysql -u dvwa -p
- # Edit php.ini file
- nano /etc/php/7.4/apache2/php.ini (press ctrl w search for->> allow_ )
- change off to on (capital O small n)
- allow_url_include = On
- #start services again
- sudo systemctl start apache2
- sudo systemctl status apache2
- # Login to DVWA
- now go http://localhost/DVWA/setup.php and create database
- now go http://localhost/DVWA/login.php
- #----------------------------------------------------------------------------------#
- #------ Run the commands in case of reinstall (delete database user and recreate)
- #----------------------------------------------------------------------------------#
- # fix
- sudo su -
- mysql -u dvwa -p
- SHOW DATABASES;
- DROP DATABASE dvwa;
- drop user dvwa@localhost;
- create database dvwa;
- create user dvwa@localhost identified by 'p@ssw0rd';
- grant all on dvwa.* to dvwa@localhost;
- Exit out of sudo user and login to db with password p@ssw0rd
- mysql -u dvwa -p
- (if you are logged great )
- now go http://localhost/DVWA/setup.php and create a database
- now go http://localhost/DVWA/login.php
- Still facing white screen error?
- # FIX which screen error (close all the terminals and open new terminal Run command one by one)
- sudo service apache2 stop
- sudo service mysql stop
- sudo service apache2 start
- sudo service mariadb start
- now go http://localhost/DVWA/setup.php and create a database
- now go http://localhost/DVWA/login.php Cheers
- username = admin
- password = password
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement