cerebrate/INSTALL/INSTALL.md

46 lines
1.1 KiB
Markdown
Raw Normal View History

## Cerebrate installation instructions
Simply clone this repository (for example into /var/www/cerebrate)
2020-06-22 14:50:56 +02:00
```
cd /var/www
git clone git@github.com:cerebrate-project/cerebrate.git
```
Run composer
2020-06-22 14:50:56 +02:00
```
cd /var/www/cerebrate
composer install
```
Create a database for cerebrate
2020-06-22 14:50:56 +02:00
```
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 ALL PRIVILEGES;
```
Load the default table structure into the database
2020-06-22 14:50:56 +02:00
2020-06-22 14:51:35 +02:00
```
2020-06-22 14:50:56 +02:00
mysql -u cerebrate -p cerebrate < /var/www/cerebrate/INSTALL/MYSQL.sql
2020-06-22 14:51:35 +02:00
```
2020-06-22 14:50:56 +02:00
create your local configuration and set the db credentials
2020-06-22 14:50:56 +02:00
2020-06-22 14:51:35 +02:00
```
2020-06-22 14:50:56 +02:00
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
2020-06-22 14:51:35 +02:00
```
2020-06-22 14:50:56 +02:00
Simply modify the Datasource -> default array's username, password, database fields
2020-06-22 14:50:56 +02:00
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
2020-06-22 14:50:56 +02:00