From 341b1cec7f2c4dcd6eb31a63ef64c74ff8508cc2 Mon Sep 17 00:00:00 2001 From: Sascha Rommelfangen Date: Mon, 29 Jun 2020 12:08:40 +0200 Subject: [PATCH] some details added --- INSTALL/INSTALL.md | 17 ++++++++++++++--- 1 file changed, 14 insertions(+), 3 deletions(-) diff --git a/INSTALL/INSTALL.md b/INSTALL/INSTALL.md index 6db03ff..76b5eae 100644 --- a/INSTALL/INSTALL.md +++ b/INSTALL/INSTALL.md @@ -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: