cerebrate/INSTALL/INSTALL.md

53 lines
1.3 KiB
Markdown

## Requirements
An Ubuntu server (18.04/20.04 should both work fine) - though other linux installations should work too.
- apache2, mysql/mariadb, sqlite need to be installed and running
- php extensions for mysql, sqlite need to be installed and running
## Cerebrate installation instructions
Simply clone this repository (for example into /var/www/cerebrate)
```
cd /var/www
git clone git@github.com:cerebrate-project/cerebrate.git
```
Run composer
```
cd /var/www/cerebrate
composer install
```
Create a database for cerebrate
```
mysql
CREATE DATABASE cerebrate;
CREATE USER 'cerebrate'@'localhost' IDENTIFIED BY 'YOUR_PASSWORD';
GRANT USAGE ON *.* to cerebrate@localhost;
GRANT ALL PRIVILEGES ON cerebrate.* to cerebrate@localhost;
FLUSH PRIVILEGES;
```
Load the default table structure into the database
```
mysql -u cerebrate -p cerebrate < /var/www/cerebrate/INSTALL/mysql.sql
```
create your local configuration and set the db credentials
```
cp -a /var/www/cerebrate/config/app_local.example.php /var/www/cerebrate/config/app_local.php
vim /var/www/cerebrate/config/app_local.php
```
Simply modify the Datasource -> default array's username, password, database fields
Create an apache config file for cerebrate / ssh key and point the document root to /var/www/cerebrate/webroot/index.php and you're good to go