cerebrate/INSTALL/INSTALL.md

57 lines
1.4 KiB
Markdown
Raw Normal View History

2020-06-22 17:58:56 +02:00
## 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 intl, mysql, sqlite need to be installed and running
2020-06-22 17:58:56 +02:00
## 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;
2020-06-22 15:03:50 +02:00
CREATE USER 'cerebrate'@'localhost' IDENTIFIED BY 'YOUR_PASSWORD';
2020-06-22 14:50:56 +02:00
GRANT USAGE ON *.* to cerebrate@localhost;
GRANT ALL PRIVILEGES ON cerebrate.* to cerebrate@localhost;
2020-06-22 15:03:50 +02:00
FLUSH PRIVILEGES;
2020-06-22 14:50:56 +02:00
```
Load the default table structure into the database
2020-06-22 14:50:56 +02:00
2020-06-22 14:51:35 +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
To log in use the default credentials below:
username: admin
Password: Password1234
2020-06-22 14:50:56 +02:00