ILIAS-7-Install-Tutorial for Ubuntu 20.04
Clone a Client
We will copy the client corona2 to corona3
- Set the client offline in ilias/setup/setup.php
Copy the Database
mysql
- Create Database "corona3": mysql>
CREATE DATABASE corona3 CHARACTER SET utf8 COLLATE utf8_general_ci;
- Create Databaseuser "ucorona3": mysql>
CREATE USER 'ucorona3'@'localhost' IDENTIFIED BY 'USER_PASSWORD';
- Give user "ucorona3" rights to database "corona3": mysql>
GRANT SELECT, INSERT, UPDATE, DELETE, CREATE, INDEX, DROP, ALTER, CREATE TEMPORARY TABLES, LOCK TABLES ON corona3.* TO 'ucorona3'@'localhost';
exit
- Copy the Database to a file:
mysqldump corona2 > corona3.sql
- Import the Database:
1 | mysql corona3<corona3.sql; |
Change the NIC-ID
- You can find the NIC-ID in Administration->General Setings-Server
- Example: NIC-ID 12334
- It is stored in the Database-Table settings in the column inst_id
- You can change the NIC-ID to any value. It must only be unique on your installation. For example, if this is client #3, you can change it to 3:
mysql
- mysql>
use coronadb1;
- mysql>
UPDATE `settings` SET `value` = '3' WHERE `settings`.`module` = 'common' AND `settings`.`keyword` = 'inst_id';
- mysql>
exit
- mysql>
Configure the webdir
- Explanation: corona2 (old clientname), corona3 (new clientname)
cd /var/www/html/ilias/data
- To look whats in here:
ls
- Choose the client to rename. In this case, I choose to rename corona1 to corona2
cp -R corona2 corona3
cd corona3
nano client.ini.php
- Change the Name:
name = "Corona-Client 3"
Configure the Datadir
cd /opt/iliasdata
- What is in here?:
ls
cp -R corona2 corona3
Configure the Chat (if installed)
cd corona3/chatroom
nano client.cfg
- "name": "corona3",
- Leave key and secret for now
- Give new values (the same from client.ini.php) for section database
- Do the following tasks like described here:
- Create a new Subdomain
- Create a new startscript
- Configure the client in Administration->Chat
Configure Lucene-Server (if installed)
- Change the corresponding values:
nano /opt/iliasdata/lucene/ilServer.properties
/etc/init.d/ilserver stop
/etc/init.d/ilserver start
Adjust rightsettings
- If you have, change this script:
nano /opt/scripts/setrights
- And run it
- Set the clients online in ilias/setup/setup.php