some details added

pull/23/head
Sascha Rommelfangen 2020-06-29 12:08:40 +02:00 committed by GitHub
parent e56be70446
commit 341b1cec7f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 14 additions and 3 deletions

View File

@ -3,6 +3,8 @@
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
sudo apt install apache2 mariadb-server git composer php-intl php-mbstring php-dom php-ldap php-sqlite3 sqlite libapache2-mod-php php-mysql
## Cerebrate installation instructions
@ -11,14 +13,14 @@ Simply clone this repository (for example into /var/www/cerebrate)
```
cd /var/www
git clone git@github.com:cerebrate-project/cerebrate.git
sudo git clone git@github.com:cerebrate-project/cerebrate.git
```
Run composer
```
cd /var/www/cerebrate
composer install
sudo composer install
```
Create a database for cerebrate
@ -35,7 +37,7 @@ FLUSH PRIVILEGES;
Load the default table structure into the database
```
mysql -u cerebrate -p cerebrate < /var/www/cerebrate/INSTALL/mysql.sql
mysql -u cerebrate -pYOUR_PASSWORD cerebrate < /var/www/cerebrate/INSTALL/mysql.sql
```
create your local configuration and set the db credentials
@ -46,7 +48,16 @@ vim /var/www/cerebrate/config/app_local.php
```
Simply modify the Datasource -> default array's username, password, database fields
This would be, when following the steps above:
```
'Datasources' => [
'default' => [
'host' => 'localhost',
'username' => 'cerebrate',
'password' => 'YOUR_PASSWORD',
'database' => 'cerebrate',
```
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
To log in use the default credentials below: