ILIAS 8 Install Tutorial for Ubuntu 22.04

Client-Creation, JSON-File, Login

  • This works only with ILIAS versions >=7
  • Since ILIAS 7 it is not possible to have more than one client per installation

Creating a JSON file for configuration parameters

mkdir -p /opt/scripts/clients
nano /opt/scripts/clients/clientname1.json
Paste these lines in: 
{
"common": {
"client_id": "test8",
"server_timezone": "Europe/Berlin",
"register_nic": false
},
"database": {
"type": "innodb",
"host": "localhost",
"port": "3306",
"database": "iliasdb1",
"user": "ildbuser1",
"password": "password",
"create_database": true
},
"filesystem": {
"data_dir": "/opt/iliasdata"
},
"http": {
"path": "https://bbs-ilias.de"
},
"language": {
"default_language": "de",
"install_languages": [
"de",
"en"
],
"install_local_languages": [
"de"
]
},
"logging": {
"enable": true,
"path_to_logfile": "/opt/iliasdata/log/ilias.log",
"errorlog_dir": "/opt/iliasdata/errorlog/"
},
"utilities": {
"path_to_convert": "/usr/bin/convert",
"path_to_zip": "/usr/bin/zip",
"path_to_unzip": "/usr/bin/unzip"
},
"pdfgeneration": {
"path_to_phantom_js": "/usr/bin/phantomjs"
},
"preview": {
"path_to_ghostscript": "/usr/bin/gs"
},
"mediaobject": {
"path_to_ffmpeg": "/usr/bin/ffmpeg"
},
"style": {
"manage_system_styles": true,
"path_to_lessc": "/usr/bin/less"
},
"globalcache": {
"service": "apc",
"components": {
"clng": true,
"comp": true,
"events": true,
"global_screen": true,
"obj_def": true,
"ilctrl": true,
"tpl": true,
"tpl_blocks": true,
"tpl_variables": true
}
},
"backgroundtasks": {
"type": "sync",
"max_number_of_concurrent_tasks": 3
},
"mathjax": {
"client_enabled": true,
"client_polyfill_url": "",
"client_script_url": "https://cdn.jsdelivr.net/npm/mathjax@2.7.9/MathJax.js?config=TeX-AMS-MML_HTMLorMML,Safe",
"client_limiter": 0,
"server_enabled": false,
"server_address": "http://localhost:8003",
"server_timeout": 5,
"server_for_browser": true,
"server_for_export": true,
"server_for_pdf": true
},
"webservices": {
"soap_user_administration": false,
"soap_wsdl_path": "http://localhost/ilias/webservice/soap/server.php?wsdl",
"soap_connect_timeout": 30,
"rpc_server_host": "127.0.0.1",
"rpc_server_port": "11111"
},
"chatroom": {
"address": "chat.bbs-ilias.de",
"port": 443,
"https": {
"cert": "/etc/letsencrypt/live/chat.bbs-ilias.de/fullchain.pem",
"key": "/etc/letsencrypt/live/chat.bbs-ilias.de/privkey.pem",
"dhparam": "/etc/letsencrypt/live/chat.bbs-ilias.de/dhparam.pem"
},
"log": "/opt/iliasdata/log/chat.log",
"log_level": "warning",
"error_log": "/opt/iliasdata/log/chaterror.log",
"deletion_interval": {
"deletion_unit": "months",
"deletion_value": "6",
"deletion_time": "23:45"
}
},
"systemfolder": {
"client": {
"name": "test7",
"description": "Test Installation for ILIAS 7",
"institution": "Atomic Powerplant Springfield"
},
"contact": {
"firstname": "Homer",
"lastname": "Simpson",
"title": "Sir",
"position": "Security Inspector Sector 7G",
"institution": "Atomic Powerplant Springfield",
"street": "742 Evergreen Terrace",
"zipcode": "12345",
"city": "Springfield",
"country": "USA",
"phone": "(939) 555-0113",
"email": "Chunkylover53@aol.com"
}
}
}
  • Edit all values accordingly too your needs

Creating the client itself

cd /var/www/html/ilias
 
#To make sudo -u www-data work:
chown -R www-data:www-data /opt/scripts/clients/clientname1.json
chown -R www-data:www-data /opt/iliasdata
chmod -R 770 /opt/iliasdata
 
cd /var/www/ilias
 
#This starts the installation process:
sudo -u www-data php setup/setup.php install /opt/scripts/clients/clientname1.json
 
#You can run the script multiple times, no problem. This yould be the case if you wand to change values.
  • A lot of setting options from ILIAS->Administration moved since ILIAS 7 to this script
  • Repeat the execution of the script everytime you have something to change:
    • sudo -u www-data php setup/setup.php install /opt/scripts/clients/clientname1.json

First Login

Create an index.php file

rm /var/www/html/index.html
nano /var/www/html/index.php
#Paste this in:
1
2
3
4
5
6
7
<?php
/* Redirect browser */
header("Location: ./ilias/login.php");
 
/* Make sure that code below does not get executed when we redirect. */
exit;
?>

Tata: First Login

  • URL:
    •  https://yourserver.com/ilias/login.php
  • Credentials:
    • User: root
    • Passwort: homer


No comment has been posted yet.