ILIAS-7-Install-Tutorial for Ubuntu 20.04
Way I: Portforwarding to 443
Creating server.cfg
cd /opt/iliasdata/clientname/chatroom
nano server.cfg
- Paste this code in:
1 | { |
- Change the following lines so that they fit to your installation:
- 8-9: Check if this path really exists!
- 10: Leave empty
Create Startscripts
- Btw: Every ILIAS-instance needs a separate startscript that starts the chatserver with its own unique internal port (eg. 8080). It follows, that every instance needs its own server.cfg.
- Remember: info is the clientname of my ILIAS instance (the clientname was set in the json file) and can be found here:
nano /var/www/html/ilias/data/info/client.ini.php
Its normally the same as stated in the client.cfg. However it must be the same like in client.cfg
nano /etc/init.d/ilchat
- Fill in the following code:
1 | #!/bin/bash |
- Change line 23 so that the client name fits to your installation and client (here info)
- Exit nano with STRG+x
chmod +x /etc/init.d/ilchat
- Create client.cfgYou can create this file via the ILIAS frontend in Administration->Repository/Objects-> Chat with ticking the "save" button in the registercard "Settings"
- The file is to be found inย /opt/iliasdata/clientname/chatroom
Start the server
chmod 555 /opt/iliasdata/clientname/chatroom/*
- Check if Node is installed
- Thats enough to start the chatserver. You can do this manually:ย
/etc/init.d/ilchat start
|stop|status - Check if there are any messages in the errorlog that would indicate a false configuration:
nano /opt/iliasdata/log/chaterror.log
ย
Crontab setting
- Crontab shall check if the chatserver runs every 5 minutes:
nano /etc/crontab
- Ad a line like thisย
1 | #Line for Chat-Server: checks every 5 minutes if sevice is up |
Connect the Server to the ILIAS-Database
- As I said before, the chatserver may run but the chat will still not work. So please copy the slightly modifiedย content of server.cfg to the right table of the database as described here (JSON or PHPMyAdmin method)
- Slightly modified content:
1 | { |
- As you can see, the lines 2-4 are different to the content of server.cfg. This is OK because of the port rewrite that comes now
- Edit line 4 accordingly to your chat-subdomain
- Check, if paths in lines 8 und 9 really exists
Configure Subdomains
- You need for every ILIAS instance a subdomain
- Every client needs a Name (can be but must not the client name)
- Every client needs a port.ย
- An example at a glance:
Subdomain | Name | Internal Port | External Port |
chat.bbs-ilias.de | info | 8080 | 443 |
chat2.bbs-ilias.de | coronademo | 8081 | 443 |
Create the vhosts
- Every client needs its own subdomain
cd /etc/apache2/sites-available
nano chat.bbs-ilias.conf
- Fill in the following code:
1 | <VirtualHost chat.bbs-ilias.de:80> |
- Adjust line 1, 9 and 10 (the port in line 9 and 10)
- Activate subdomain:
a2ensite chat.bbs-ilias.conf
systemctl reload apache2
- Get the SSL certificate and SSL-vhost-file for the subdomain:
certbot