Skip to content
This repository has been archived by the owner on May 18, 2021. It is now read-only.

Tutorial

15w34r0n3D4y edited this page Jul 10, 2015 · 2 revisions

First read InstallationGuide:

InstallationGuide.pdf

or Wiki Hackazon

FOLDER & FILES:

  • assets
  • classes
  • database
  • modules
  • vendor
  • web
  • composer.json
  • composer.lock
  • composer.phar
  • LICENSE
  • pack_vendor.php
  • phpunit.xml.dist

Install composer.phar in /var/www/hackazon

php composer.phar install -o --prefer-dist

'Warning: This development build of composer is over 30 days old...'

php composer.phar self-update

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>

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

hackazone.lc

That's it!

Clone this wiki locally