ILIAS-7-Install-Tutorial for Ubuntu 20.04
ILIAS-Download, Composer
Installing ILIAS
- For the composer part, make shure to preselect the desired PHP version
- Create these directories outside webspace:
mkdir /opt/iliasdata
mkdir /opt/iliasdata/lucene
mkdir /opt/iliasdata/log
mkdir /opt/iliasdata/errorlog
- Change to Webserver directory:
cd /var/www/html
- Download ILIAS latest via git:
git clone https://github.com/ILIAS-eLearning/ILIAS.git ilias
- By the way:
- You can update the current version of ILIAS with: git pull
- You can switch the ILIAS version with:ย git checkout release_xx. Examples:
cd /var/www/html/iliasย
- ILIAS 5.2:ย
git checkout release_5-2
- ILIAS 5.3:ย
git checkout release_5-3
- ILIAS 5.4:ย
git checkout release_5-4
- ILIAS 6:ย
git checkout release_6
- ILIAS 7:ย
git checkout release_7
- ILIAS 5.2:ย
- Install composer:
cd /var/www/html/ilias
composer install --no-dev
- Adjust the rightsettings:
chown -R www-data:www-data /var/www/html
chown -R www-data:www-data /opt/iliasdata
chmod -R 774 /var/www/html
chmod -R 770 /opt/iliasdata
Troubleshooting
- Your requirements could not be resolved to an installable set of packages.
- Choose the correct PHP version as described here
- Parse error: syntax error, unexpected '|', expecting variable (T_VARIABLE) in /usr/share/php/Composer/IO/BaseIO.php on line 163
cd /root
apt remove --purge composer
apt autoremove
systemctl restart apache2
php -r "copy('https://getcomposer.org/installer', 'composer-setup.php');"
php -r "if (hash_file('sha384', 'composer-setup.php') === '55ce33d7678c5a611085589f1f3ddf8b3c52d662cd01d4ba75c0ee0459970c2200a51f492d557530c71c15d8dba01eae') { echo 'Installer verified'; } else { echo 'Installer corrupt'; unlink('composer-setup.php'); } echo PHP_EOL;"
php composer-setup.php
php -r "unlink('composer-setup.php');"
mv composer.phar /usr/bin/composer