ILIAS 9 for Ubuntu 22.04

Basic install

Update the system

  • Normally, you logged in as user root. If not, become root with sudo -s
  • Load new systemupdates: apt update
  • Update the system with apt dist-upgrade -y
  • Repeat this step monthly in the future

It is possible that these packages are missing. So try install them:

apt install ubuntu-server language-pack-en sudo lsb-core rsyslog -y
apt install software-properties-common ca-certificates lsb-release apt-transport-https -y
LC_ALL=C.UTF-8 add-apt-repository ppa:ondrej/php
apt install telnet iputils-ping -y
apt update
apt dist-upgrade -y

Install needed apt packages

Apache2

apt-get install apache2 apache2-doc libapache2-mod-xsendfile -y
 
#Activate some Apache modules:
a2enmod rewrite dav_fs dav expires headers proxy socache_shmcb ssl vhost_alias dav ssl authnz_ldap ldap
a2enmod proxy_http proxy_http2 proxy proxy_balancer lbmethod_byrequests proxy_wstunnel xsendfile
 
systemctl restart apache2

PHP

  • If you have installed allready an ILIAS system and you want to change the PHP version, its possible that PHP is not active for a while. The result can be that all your INI-Files are readable in plain for everyone who wants to. So do this:
    • Before changing PHP version:
      • chmod 000 /var/www/html
    • When you are done:
      • chmod 775 /var/www/html

PHP 8.2 (ILIAS 9)

apt install php8.2 php8.2-cli php8.2-common php8.2-curl php8.2-gd php8.2-intl php8.2-mbstring php8.2-mysql php8.2-opcache php8.2-readline php8.2-xml php8.2-xsl php8.2-zip php8.2-bz2 libapache2-mod-php8.2 php8.2-ldap php8.2-xmlrpc php8.2-soap php8.2-apcu php8.2-imagick php8.2-bcmath php8.2-gmp php8.2-igbinary php8.2-opcache php8.2-dev

Maria-DB

apt-get install mariadb-server mariadb-client libmariadb3 mariadb-backup mariadb-common -y
mysql_secure_installation
 
#Enter current password: Enter (give no password)
#Switch to unix_socket authentication [Y/n] Y
#Change the root password? [Y/n] n
#Remove anonymous users? [Y/n] Y
#Disallow root login remotely? [Y/n] Y
#Remove test database and access to it? [Y/n] Y
#Reload privilege tables now? [Y/n] Y

Other tools and stuff

apt install zip git htop wget curl htmldoc mailutils imagemagick ffmpeg openjdk-11-jdk wkhtmltopdf xvfb tidy -y
apt install -y python3 abiword libreoffice libreoffice-l10n-de libreoffice-help-de -y
apt install ghostscript -y
apt install maven -y
apt install -y abiword libreoffice mailutils davfs2 nano composer nmon clamav clamav-daemon wkhtmltopdf xvfb zip unzip -y
apt install certbot python3-certbot-apache -y

Activate PHP caching modules

phpenmod apcu

Adjust language settings

  • Are the date and locale infos correct? date
  • Check what locales are available: locale -a
  • Generate missing locale. here: german: locale-gen de_DE.UTF-8
  • Update loacale with your language: update-locale LANG=de_DE.UTF-8
  • export LC_ALL=de_DE.utf8
  • Update this file: nano /etc/default/locale
  • Set your timezone (example Berlin): timedatectl set-timezone Europe/Berlin
  • Log off and log in again
  • Try again: date

Make shure only the desired version is active

  • Choose the following PHP version that fits to your ILIAS version:
    • ILIAS 5.4 -> 7.2, 7.3, 7.4
    • ILIAS 6 -> 7.2, 7.3, 7.4
    • ILIAS 7 -> 7.3, 7.4
    • ILIAS 8 -> 8.0
    • ILIAS 9 -> 8.1, 8.2

update-alternatives --config php
php -version
#try to uninstall an unwanted php-version:
apt remove php8.3*

Check, if only the desired PHP (here 8.2 for ILIAS 9) module is active:

a2dismod php7.4 php8.1 php8.1
a2enmod php8.2
systemctl restart apache2
php --version

Consider to uninstall not needes PHP versions in case of mixing problems

apt remove php8.1* -y


No comment has been posted yet.