Project

General

Profile

Support #840

Install XVWA on Arch Linux

Added by Daniel Curtis over 7 years ago. Updated over 7 years ago.

Status:
Closed
Priority:
Normal
Assignee:
Category:
Web Server
Target version:
Start date:
08/07/2016
Due date:
% Done:

100%

Estimated time:
0.50 h
Spent time:

Description

This is a guide on setting up XVWA on a LAMP server running Arch Linux.

Prepare the Environment

  • Make sure the system is up to date:
    pacman -Syu
    
  • Install a LAMP stack
    NOTE: Make sure add a xvwa database
  • Install git:
    pacman -S git
    

Install XVWA

  • Edit the PHP config:
    nano /etc/php/php.ini
    
    • And make sure the following values are set:
      file_uploads = On 
      allow_url_fopen = On 
      allow_url_include = On
      
  • Edit the XVWA config:
    nano /srv/http/xvwa/config.php
    
    • And adjust the following values:
      <?php
      $XVWA_WEBROOT = '';
      $host = "localhost";
      $dbname = 'xvwa';
      $user = 'root';
      $pass = 'SuperSecretPassword';
      $conn = mysqli_connect($host,$user,$pass);
      $conn = mysqli_select_db($dbname);
      $conn1 = new PDO("mysql:host=$host;dbname=$dbname", $user, $pass);
      $conn1->setAttribute(PDO::ATTR_ERRMODE, PDO::ERRMODE_EXCEPTION);
      ?>
      

      NOTE: Make sure to adjust the mysqli_connect and mysqli_select_db functions

Resources

#1

Updated by Daniel Curtis over 7 years ago

  • Status changed from New to Resolved
  • Start date changed from 08/06/2016 to 08/07/2016
  • % Done changed from 0 to 100
#2

Updated by Daniel Curtis over 7 years ago

  • Status changed from Resolved to Closed

Also available in: Atom PDF