ILIAS-Tricks not only for Schools
How to update ILIAS?
[wolfganghuebsch] - 10. Jun 2017, 18:45
This post discusses how to update ILIAS for two cases:
- Update with git
- Update ILIAS if git is not working or available
Update with git
Once you installed your ILIAS like this:
- Clone latest stable version from git:
git clone https://github.com/ILIAS-eLearning/ILIAS.git ilias
- You may want to update the installation:
cd ilias
- This loads all updates of your current branch:
git fetch
orget pull
(pull can reset some files)
Already up-to-date.
Aktualisiere 6052b0f..1b530ab
error: Your local changes to the following files would be overwritten by merge: ... Aborting
How to deal with that ^^?
One method is git stash, because it moves all these different files to a special place called stash:
git stash
git stash list
Stash works nearly always and gives something like this:
HEAD ist jetzt bei 6052b0f Merge branch 'release_5-2' of https://github.com/ILIAS-eLearning/ILIAS into release_5-2
ilias/Services/WebServices/RPC/lib/
/opt/iliasdata/lucene.
If you like to do that, you need a new ilserver startscript with adjusted paths. How to do this can be read here (Lucene section).
After git stash, the update should work like a charme:
git pull
git checkout release_5-1
Update ILIAS if git is not working or available
In case you did not install ILIAS via git or your git is broken, copy the important files from the old iliasfolder to the new updated one. For example, we have a folder called iliasold and a second called iliasnew. Change to the iliasold folder and copy/move the following files and directories:
cp ilias.ini.php /var/www/iliasnew/
mv data /var/www/iliasnew/
mv Customizing/* /var/www/iliasnew/Customizing/
- If the Lucene- and Chatserver settings reside in /opt/iliasdata like described here, you don`t have to care about them.
chmod -R 775 /var/www/iliasnew
chown -R www-data:www-data /var/www/iliasnew
Please update always the language files of your ILIAS-clients! Administration->language