Tuesday, 23 July 2013

Installing XAMPP and DVWA on BackTrack 5r3

What is DVWA? Damn Vulnerable Web App (DVWA) is a PHP/MySQL web application that is damn vulnerable. Its main goals are to be an aid for security professionals to test their skills and tools in a legal environment, help web developers better understand the processes of securing web applications and aid teachers/students to teach/learn web application security in a class room environment.

A step by step guide on how to install XAMPP and DVWA on BackTrack Linux. 

Before we begin, download the following:

Once downloaded, put it into a folder in this case i created a folder in the Desktop called Tools. Then cd into the folder.

1. Provide write/modify access to the file
#chmod a+x xampp-linux-1.8.2-0-installer.run
2. Run the installation

Click Next 

And Finish once done

A default XAMPP website will launch. Close the browser.

Start the XAMPP services
#/opt/lampp/lampp start

Open up your browser and type in http://localhost/ . You will see the XAMPP page

We are done for XAMPP. Now let's proceed to do the DVWA

Unzip the file
#unzip DVWA-1.0.7.zip

Move the folder to /opt/lampp/htdocs

On your browser, type in http://localhost/dvwa

Click on 'here' to create the database

Database created

Go back to the http://localhost/dvwa and enter the default credentials
username: admin
password: password

And we have installed DVWA and XAMPP on LINUX



  1. The password for the Database (MySQL) default is set to some text in the config file...The default root password after a XAMPP install is '' (blank) for MySQL...So we need to change the Password in the config file..

  2. hello
    when i tried to run the installation i have this error :

    root@bt:~/Desktop/tools# ./xampp-linux-1.8.3-2-installer.run
    Installer payload initialization failed. This is likely due to an incomplete or corrupt downloaded file.

    i would be glad if you help me, thaks

  3. @merzak, as the error suggested, you may have downloaded an incomplete or corrupted installation files. Where did you download the installer from?