ILIAS-7-Install-Tutorial for Ubuntu 20.04
Way II: No portforwarding to 443
Creating server.cfg
cd /opt/iliasdata/clientname/chatroom
nano server.cfg
- Delete the old code (STRG+K)
- Paste this code in:
1 | { |
- Change the following lines so that they fit to your installation:
- 4: Your FQDN
- 5-6: You can find the paths in the config files in /etc/apache2/site-available
- 7: Use the path from line 6. The file does not exist at the moment
- 8-9: Check if this path realy exists!
touch /opt/iliasdata/log/chat.log
touch /opt/iliasdata/log/chaterror.log
- 10: Leave empty
Creation of dhparam.pem
cd /etc/letsencrypt/live/bbs-ilias.de
openssl dhparam -out dhparam.pem 2048
Create the Startscripts
- Btw: Every ILIAS-instance needs a seperate startscript that starts the chatserver with its own unique internal port (eg. 8080)
- Remember: Info is the Clientname:
nano /etc/init.d/ilchat
- Its normally the same as stated in the client.cfg. However it must be the same like in client.cfg
- Fill in the following code:
1 | #!/bin/bash |
- Change lines 23-24 so that they fit to your installation and client
- Exit nano
chmod +x /etc/init.d/ilchat
- 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 settings
nano /etc/crontab
- Add a line like this to check every 5 minutes, if the chatserver still runs
1 | #Line for Chat-Server: checks every 5 minutes if sevice is up |
Connect the Server to the Database
- As I said before, the chatserver may run but the chat will still not work. So please copy the the whole content of server.cfg to the right table of the database as described here (JSON or PHPMyAdmin method)