Skip to content
This repository has been archived by the owner on May 18, 2021. It is now read-only.
Tyler Schmidtke edited this page Feb 5, 2019 · 16 revisions

Hackazon logo

You can also follow the pdf version

Hackazon installation

  1. Checkout the code
  2. Set DOCUMENT_ROOT directory to /web. Make sure that htaccess and REWRITE support is enabled.
  3. Copy /assets/config/db.sample.php to /assets/config/db.php
  4. Change settings for DB connection in the /assets/config/db.php
  5. Open http://yoursitename/install

Features

Technical Details

Code structure:

.
├── assets
├── bin
├── classes
├── database
├── docs
├── modules
├── subprojects
├── vendor
└── web


9 directories

Install composer.phar in /var/www/hackazon

# Install manual dependencies, apt example below
apt install php-xml php-bcmath

# First update composer.phar
php composer.phar self-update

# Then install dependencies
php composer.phar install -o --prefer-dist

Enable php_rewrite mod

a2enmod rewrite

Copy/Rename File DB

cp /assets/config/db.sample.php /assets/config/db.php

Change settings for DB connection in the

/assets/config/db.php

Create new configuration file in /etc/apache2/site-available

001-hackazon.conf

COPY THIS!

type in /etc/hosts - 127.0.0.1 hackazon.lc

<VirtualHost *:80>
	ServerName hackazon.lc

	DocumentRoot /var/www/hackazon/web
	<Directory />
		Options FollowSymLinks
		AllowOverride All
		Order deny,allow
		Allow from all
	</Directory>
	<Directory /var/www/hackazon/web/>
		Options Indexes FollowSymLinks MultiViews
		AllowOverride All
		Order allow,deny
		Allow from all
	</Directory>
</VirtualHost>

Save file and type in terminal

ln -s /etc/apache2/sites-available/001-hackazon.conf /etc/apache2/sites-enabled/001-hackazon.conf

If you get error "Forbidden - You don't have permission to access / on this server" type this in terminal:

chown -R www-data:www-data /var/www/hackazon

Open in browser

http://yoursitename/install

That's it!

More help here

https://community.rapid7.com/thread/9330

Ready to go virtual machine

You can find OVA file (VMWare image) with installed Hackazon web application by the url https://drive.google.com/open?id=0B7KzT3FP4YOoRkp6empQQi1WTXM

OS: hackazon/hackazon

MySQL: hackazon/hackazon

Web app: admin/hackazon