BWAPP

From Alpine Linux
Jump to: navigation, search
Underconstruction clock icon gray.svg
This material is work-in-progress ...

Do not follow instructions here until this notice is removed.
(Last edited by Fab on 27 Jan 2013.)

bWAPP or a buggy web application is a vulnerable web application.

Install lighttpd, PHP, and MySql

Install the additional packages:

apk add lighttpd php5-common php5-iconv php5-json php5-gd php5-curl php5-xml php5-pgsql php5-imap php5-cgi fcgi

apk add php5-pdo php5-pdo_pgsql php5-soap php5-xmlrpc php5-posix php5-mcrypt php5-gettext php5-ldap php5-ctype php5-dom

Configure Lighttpd

vi /etc/lighttpd/lighttpd.conf

Uncomment line:

include "mod_fastcgi.conf"

Start lighttpd service and add to needed runlevel

rc-service lighttpd start && rc-update add lighttpd default

Install extra packages:

apk add php-mysql mysql mysql-client php-zlib

Installing and configuring SQLol

Create a folder named webapps

mkdir -p /usr/share/webapps/

Switch to the webapps folder and download the source files

cd /usr/share/webapps/ wget http://downloads.sourceforge.net/project/bwapp/bWAPPv1.3/bWAPPv1.3.zip

Unpack the archive and delete it

unzip bWAPPv1.3.zip rm bWAPPv1.3.zip

Rename the folder

mv bWAPP bwapp

Change the folder permissions

chown -R lighttpd /usr/share/webapps/

Create a symlink to the bwapp folder

ln -s /usr/share/webapps/bwapp/ /var/www/localhost/htdocs/bwapp

Configuration and start MySQL

/usr/bin/mysql_install_db --user=mysql /etc/init.d/mysql start && rc-update add mysql default /usr/bin/mysqladmin -u root password 'password'

bWAPP configuration

Please add the MySQL configuration details to the bWAPP config file.

nano -w /usr/share/webapps/bwapp/config.inc.php

Browse to http://WEBSERVER_IP_ADDRESS/install.php for the installation.