Skip to content
Snippets Groups Projects
Commit 3f969f19 authored by Valentin Pocotilenco's avatar Valentin Pocotilenco
Browse files

added sime requirements

parent 89071b87
Branches
Tags
1 merge request!3Setup doc
# 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
......@@ -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"
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment