- Prerequisites
>= PHP 5.4.11
MySQL
php5-mysql
php5-intl
nodejs (with symlink to /usr/bin/node)
LESS (installed through npm)
- Installation
-
Clone the repository:
$ git clone https://github.com/aursulis/academicbrother2.git
-
Install Composer:
$ cd academicbrother2 $ curl -sS https://getcomposer.org/installer | php
-
Create a database and user to use with Symfony:
$ mysql -u root -p Enter password: mysql> create database academicbrother2; mysql> create user 'symfony'@'localhost' identified by 'notsosecret'; mysql> grant all privileges on academicbrother2.* to 'symfony'@'localhost';
-
Fetch required vendor dependencies and configure Symfony:
$ php composer.phar install
-
Check your PHP configuration with:
$ php app/check.php
-
To get rid of all warnings, on Debian Wheezy, I:
6.1. upgraded to PHP 5.5 via http://dotdeb.org
6.2. set the
date.timezone
setting in/etc/php5/{apache2,cli}/php.ini
, in my case toEurope/Vilnius
- Try it out!
To launch a development server, do:
$ php app/console server:run
The server will be accessible through http://localhost:8000/app_dev.php.
- Generate database tables
-
Create db
$ php app/console doctrine:database:create
-
Generate tables
$ php app/console doctrine:schema:update --force
-
Populate tables with default data
$ php app/console ab:dbpopulate db_resources/UK_uni_list.txt
-
Create an administrator user
$ php app/console ab:createadmin
- Configure Bootstrap frontend framework
- Run
php app/console assetic:dump
to generate assests in/web
folder (make them accessible to templates).