ILIAS-7-Install-Tutorial for Ubuntu 20.04
Rsyncing files and DBs
Create a Sync Script 16.bbs.ilias.de ->18.bbs-ilias.de
Logon to the source system 16.bbs-ilias.detouch sync_to_newchmod +x sync_to_newnano sync_to_newPaste this code in:
1 | #!/bin/bash |
- Fill in your credentials. You can find them here for example:
- /opt/etherpadlite/settings.json
- /var/www/html/ilias/data/clientname/client.ini.php
- Doubble the lines if necessary
- Take a snapshot before you run the script on both servers
- Be careful with the rsync option (better run without for the first time)
--delete
mkdir /opt/dbsync./sync_to_new
Creating the Databases and Users at the target system
- With the credentials that you used before in the syncscripts do the following in the target system:
mysql- Create Database "ilias": mysql>
CREATE DATABASE ilias CHARACTER SET utf8 COLLATE utf8_general_ci; - Create Databaseuser "dbuser1": mysql>
CREATE USER 'dbuser1'@'localhost' IDENTIFIED BY 'USER_PASSWORD'; - Give user "dbuser1" rights to database "Ilias": mysql>
GRANT SELECT, INSERT, UPDATE, DELETE, CREATE, INDEX, DROP, ALTER, CREATE TEMPORARY TABLES, LOCK TABLES ON ilias.* TO 'dbuser1'@'localhost';
How to fill the new database with the backup from the source system
Login to the target system 18.bbs-ilias.decd /opt/scriptstouch dbupchmod +x dbup- Find out if you need user credentials for mysql:
mysqlexit
- If this worked, then you need none
nano dbup- paste the following code in (if you need credentials, use the 2nd script):
1 | #!/bin/bash |
Skript with user credentials
1 | #!/bin/bash |
Adjust rightsettings
chown -R www-data:www-data /var/www/html/iliaschown -R www-data:www-data /opt/iliasdatachmod -R 775 /var/www/html/iliaschmod -R 770 /opt/iliasdata
Test the source server 18.bbs-ilias.de
- The basic ILIAS service (no chat, no pad) should work now on the target system
- Do not spent energy in testing the chat until the move has completed