Support #840
Install XVWA on Arch Linux
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
- And make sure the following values are set:
- 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 themysqli_connect
andmysqli_select_db
functions
- And adjust the following values:
- Open a web browser and go to http://xvwa.example.com/xvwa/setup and click the Submit/Reset button
- Now XVWA will be available at http://xvwa.example.com/xvwa
Resources¶
Updated by Daniel Curtis over 8 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