From 925a31fae8a25e3eecdaf92c0138a1e666027487 Mon Sep 17 00:00:00 2001
From: "valentin.pocotilenco" <valentin.pocotilenco@renam.md>
Date: Thu, 27 Apr 2023 00:08:51 +0300
Subject: [PATCH 1/6] test commit

---
 README.md | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/README.md b/README.md
index 57feae9..7f91e5a 100755
--- a/README.md
+++ b/README.md
@@ -1 +1,3 @@
 # EduGAIN Attribute Release Check
+
+Application description
-- 
GitLab


From 89071b87217a3da4b486aafecb1884459e011829 Mon Sep 17 00:00:00 2001
From: "valentin.pocotilenco" <valentin.pocotilenco@renam.md>
Date: Tue, 2 May 2023 22:33:50 +0300
Subject: [PATCH 2/6] general speps

---
 README.md | 17 +++++++++++++++++
 1 file changed, 17 insertions(+)

diff --git a/README.md b/README.md
index 7f91e5a..7ca69da 100755
--- a/README.md
+++ b/README.md
@@ -1,3 +1,20 @@
 # EduGAIN Attribute Release Check
 
 Application description
+
+Application deplyment 
+
+1. update php version requirement in composer accordingly
+2. composer install (i have used local composer.phar)
+3. nginx(apache) setup. server setup for web access. 
+4. copy .env from .env.example
+5. generate key : php artisan key:generate
+5. clear cache : php artisan config:cache
+------
+6. simplesaml config : !!!to do automatically 
+7. simplesaml sp-remote-metadata : !!!to do automatically
+currently found here : technical-test>edugain.org /var/www/earc-deployed/releases/1541529858
+------
+8. database config edit
+9. database populate : php artisan migrate
+10. voila
\ No newline at end of file
-- 
GitLab


From 3f969f19375094d8dc28a17e239853b934342bc5 Mon Sep 17 00:00:00 2001
From: "valentin.pocotilenco" <valentin.pocotilenco@renam.md>
Date: Tue, 9 May 2023 10:17:18 +0300
Subject: [PATCH 3/6] added sime requirements

---
 README.md     | 98 ++++++++++++++++++++++++++++++++++++++++++++-------
 composer.json |  2 +-
 2 files changed, 86 insertions(+), 14 deletions(-)

diff --git a/README.md b/README.md
index 7ca69da..989ceba 100755
--- a/README.md
+++ b/README.md
@@ -1,20 +1,92 @@
 # EduGAIN Attribute Release Check
 
-Application description
+##Application description
 
-Application deplyment 
+##Application deployment 
 
-1. update php version requirement in composer accordingly
-2. composer install (i have used local composer.phar)
-3. nginx(apache) setup. server setup for web access. 
-4. copy .env from .env.example
-5. generate key : php artisan key:generate
-5. clear cache : php artisan config:cache
+###Application requirements for web interface deployment
+
+1. Web server Apache / nginx 
+2. PHP 7.4+
+3. Database manager mysql / mariadb
+4. Composer
+
+###Applications setup example 
+
+1. nginx setup example 
+- example of nginx configuration for application
+```
+server {
+        listen        80;
+        server_name   earc.edugain.org;
+
+        access_log   /var/log/nginx/access.log  main;
+        error_log   /var/log/nginx/error.log warn;
+        root  /var/www/earc/public; #EARC application root /var/www/earc
+
+        index index.php;
+
+        location / {
+                try_files $uri $uri/ /index.php?$query_string;
+        }
+
+        location ~ \.php$
+        {
+                fastcgi_pass 127.0.0.1:9000;
+                fastcgi_param  SCRIPT_FILENAME  $document_root$fastcgi_script_name;
+                include fastcgi_params;
+        }
+}
+```
+- check nginx configuration for errors
+```
+sudo nginx -t
+```
+- reload nginx configuration without restart
+```
+sudo nginx -s reload
+``` 
+
+2. Web application require following PHP extensions
+- bcmath
+- ctype
+- fileinfo
+- json
+- mbstring
+- openssl
+- pdo
+- tokenizer
+- xml
+
+- check installed PHP extestions using:
+```
+php -m
+```
+- install missing extensions
+
+3. Setup DB for application
+- add DB using
+```
+CREATE DATABASE earc;
+```
+- add DB user and grants. Grant all rights and FILE operations 
+```
+CREATE USER 'travellist_user'@'%' IDENTIFIED WITH mysql_native_password BY 'password';
+GRANT ALL ON earc.* TO 'earc_user'@'localhost';
+GRANT FILE ON earc.* TO 'earc_user'@'localhost';
+```
+
+###Application setup
+
+1. composer install (i have used local composer.phar)
+2. copy .env from .env.example
+3. generate key : php artisan key:generate
+4. clear cache : php artisan config:cache
 ------
-6. simplesaml config : !!!to do automatically 
-7. simplesaml sp-remote-metadata : !!!to do automatically
+5. simplesaml config : !!!to do automatically 
+6. simplesaml sp-remote-metadata : !!!to do automatically
 currently found here : technical-test>edugain.org /var/www/earc-deployed/releases/1541529858
 ------
-8. database config edit
-9. database populate : php artisan migrate
-10. voila
\ No newline at end of file
+7. database config edit
+8. database populate : php artisan migrate
+9. voila
\ No newline at end of file
diff --git a/composer.json b/composer.json
index fd2a564..f09e7be 100755
--- a/composer.json
+++ b/composer.json
@@ -5,7 +5,7 @@
     "license": "MIT",
     "type": "project",
     "require": {
-        "php": "7.4|^8.0",
+        "php": "^7.4|^8.0",
         "laravel/framework": "^8.0",
         "simplesamlphp/simplesamlphp": "v1.19.2",
         "doctrine/dbal": "^3.1"
-- 
GitLab


From aabf48b52a187716ae744b34634b9d0cfd225c9d Mon Sep 17 00:00:00 2001
From: "valentin.pocotilenco" <valentin.pocotilenco@renam.md>
Date: Tue, 9 May 2023 10:50:41 +0300
Subject: [PATCH 4/6] update config and description

---
 README.md           | 50 +++++++++++++++++++++++++++++++--------------
 config/database.php |  2 --
 2 files changed, 35 insertions(+), 17 deletions(-)

diff --git a/README.md b/README.md
index 989ceba..40be796 100755
--- a/README.md
+++ b/README.md
@@ -1,17 +1,17 @@
 # EduGAIN Attribute Release Check
 
-##Application description
+## Application description
 
-##Application deployment 
+## Application deployment 
 
-###Application requirements for web interface deployment
+### Application requirements for web interface deployment
 
 1. Web server Apache / nginx 
 2. PHP 7.4+
 3. Database manager mysql / mariadb
 4. Composer
 
-###Applications setup example 
+### Applications setup example 
 
 1. nginx setup example 
 - example of nginx configuration for application
@@ -76,17 +76,37 @@ GRANT ALL ON earc.* TO 'earc_user'@'localhost';
 GRANT FILE ON earc.* TO 'earc_user'@'localhost';
 ```
 
-###Application setup
+### Application setup
 
-1. composer install (i have used local composer.phar)
-2. copy .env from .env.example
-3. generate key : php artisan key:generate
-4. clear cache : php artisan config:cache
-------
-5. simplesaml config : !!!to do automatically 
-6. simplesaml sp-remote-metadata : !!!to do automatically
+0. clone application to /var/www/earc 
+1. install vendor 
+- from application root run 
+```
+composer install
+```
+2. create and populate application's .env file 
+- from application root run 
+```
+cp .env.example .env
+php artisan key:generate
+```
+- clear cached configuration
+```
+php artisan config:cache
+```
+3. populate basic configuration for simpleSAMLphp
+- from application root run
+```
+cp vendor/simplesamlphp/simplesamlphp/config-templates/config.php vendor/simplesamlphp/simplesamlphp/config/config.php
+```
+4. simplesaml sp-remote-metadata : !!!to do automatically
 currently found here : technical-test>edugain.org /var/www/earc-deployed/releases/1541529858
 ------
-7. database config edit
-8. database populate : php artisan migrate
-9. voila
\ No newline at end of file
+7. configure and populate database
+- update database configuration file : config/database.php
+- populate database using prepared migration, from application root run
+```
+php artisan migrate
+```
+
+9. check application
\ No newline at end of file
diff --git a/config/database.php b/config/database.php
index 0ec83b3..f3ab567 100755
--- a/config/database.php
+++ b/config/database.php
@@ -56,8 +56,6 @@ return [
             'charset' => 'utf8',
             'collation' => 'utf8_unicode_ci',
             'prefix' => '',
-            'strict' => false,
-            'engine' => null,
             'modes'       => [
                 'ONLY_FULL_GROUP_BY',
                 'STRICT_TRANS_TABLES',
-- 
GitLab


From b77f10fe7992ffb2375b90c9844ae3bd4d9687e2 Mon Sep 17 00:00:00 2001
From: "valentin.pocotilenco" <valentin.pocotilenco@renam.md>
Date: Tue, 9 May 2023 10:54:43 +0300
Subject: [PATCH 5/6] beautify

---
 README.md | 13 +++++++------
 1 file changed, 7 insertions(+), 6 deletions(-)

diff --git a/README.md b/README.md
index 40be796..4069aa7 100755
--- a/README.md
+++ b/README.md
@@ -48,6 +48,7 @@ sudo nginx -s reload
 ``` 
 
 2. Web application require following PHP extensions
+```
 - bcmath
 - ctype
 - fileinfo
@@ -57,7 +58,7 @@ sudo nginx -s reload
 - pdo
 - tokenizer
 - xml
-
+```
 - check installed PHP extestions using:
 ```
 php -m
@@ -101,12 +102,12 @@ cp vendor/simplesamlphp/simplesamlphp/config-templates/config.php vendor/simples
 ```
 4. simplesaml sp-remote-metadata : !!!to do automatically
 currently found here : technical-test>edugain.org /var/www/earc-deployed/releases/1541529858
-------
-7. configure and populate database
-- update database configuration file : config/database.php
-- populate database using prepared migration, from application root run
+
+5. configure and populate database
+- update database configuration file by addind username, password and database: config/database.php
+- populate database using prepared migration. From application root run:
 ```
 php artisan migrate
 ```
 
-9. check application
\ No newline at end of file
+6. check application
\ No newline at end of file
-- 
GitLab


From 56a1b88a8e96f88611ddd10229fb1ce8b5d6516b Mon Sep 17 00:00:00 2001
From: "valentin.pocotilenco" <valentin.pocotilenco@renam.md>
Date: Tue, 9 May 2023 10:56:24 +0300
Subject: [PATCH 6/6] b2

---
 README.md | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/README.md b/README.md
index 4069aa7..8a19241 100755
--- a/README.md
+++ b/README.md
@@ -11,7 +11,7 @@
 3. Database manager mysql / mariadb
 4. Composer
 
-### Applications setup example 
+### Application's environment setup example 
 
 1. nginx setup example 
 - example of nginx configuration for application
-- 
GitLab