Skip to content
Snippets Groups Projects
Select Git revision
  • 20149ea4ad24dec5888e7fdfeb05e3bd02c0cf21
  • master default protected
  • develop
  • featureXnymous
  • moveToL10woSimpleSaml
  • upgrateToL10
  • setupDoc
  • tomas.budvytis-master-patch-06795
  • v1.0.0
9 results

edugain-attribute-release-check

Ioannis Igoumenos's avatar
Ioannis Igoumenos authored
fix idp metadata url

See merge request !9
20149ea4
History

EduGAIN Attribute Release Check

Application description

Application deployment

Application requirements for web interface deployment

  1. Web server Apache / nginx
  2. PHP 7.4+
  3. Database manager mysql / mariadb
  4. Composer

Application's environment 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
  1. 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
  1. 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. clone application to /var/www/earc
  2. install vendor
  • from application root run
composer install
  1. 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
  1. populate basic configuration for simpleSAMLphp
  • from application root run
cp vendor/simplesamlphp/simplesamlphp/config-templates/config.php vendor/simplesamlphp/simplesamlphp/config/config.php
  1. simplesaml sp-remote-metadata : !!!to do automatically currently found here : technical-test>edugain.org /var/www/earc-deployed/releases/1541529858

  2. 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
  1. check application