ILIAS-7-Install-Tutorial for Ubuntu 20.04

Basic install

Update the system

  • Normally, you logged in as user root. If not, become root with sudo -s
  • Load new systemupdates: apt-get update
  • Update the system with apt-get upgrade
  • 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

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 http2 authnz_ldap ldap

PHP 7.3

  • apt install php7.3 php7.3-gd php7.3-xsl php7.3-ldap php7.3-xmlrpc php7.3-dev php7.3-curl php7.3-cli php7.3-common php7.3-soap php7.3-mbstring php7.3-intl php7.3-xml libapache2-mod-php7.3 php7.3-zip php-apcu php7.3-imagick php7.3-bcmath php7.3-gmp -y
  • apt install php7.3-curl php7.3-json php7.3-mysql php7.3-opcache php7.3-readline libapache2-mod-php7.3 -y

PHP 7.4

  • apt install php7.4 php7.4-gd php7.4-xsl php7.4-ldap php7.4-xmlrpc php7.4-dev php7.4-curl php7.4-cli php7.4-common php7.4-soap php7.4-mbstring php7.4-intl php7.4-xml libapache2-mod-php7.4 php7.4-zip php-apcu php7.4-imagick php7.4-bcmath php7.4-gmp -y
  • apt install php7.4-curl php7.4-json php7.4-mysql php7.4-opcache php7.4-readline libapache2-mod-php7.4 -y

PHP 8.0

  • apt install php8.0 php8.0-gd php8.0-xsl php8.0-ldap php8.0-xmlrpc php8.0-dev php8.0-curl php8.0-cli php8.0-common php8.0-soap php8.0-mbstring php8.0-intl php8.0-xml libapache2-mod-php8.0 php8.0-zip php-apcu php8.0-imagick php8.0-bcmath php8.0-gmp -y
  • apt install php8.0-curl php8.0-mysql php8.0-opcache php8.0-readline libapache2-mod-php8.0 -y

PHP 8.1

  • apt install php8.1 php8.1-gd php8.1-xsl php8.1-ldap php8.1-xmlrpc php8.1-dev php8.1-curl php8.1-cli php8.1-common php8.1-soap php8.1-mbstring php8.1-intl php8.1-xml libapache2-mod-php8.1 php8.1-zip php-apcu php8.1-imagick php8.1-bcmath php8.1-gmp -y
  • apt install php8.1-curl php8.1-mysql php8.1-opcache php8.1-readline libapache2-mod-php8.1 -y
  • phpenmod opcache
  • apt install wkhtmltopdf php-tcpdf xvfb tidy -y

If your OS version does not ship the desired PHP version

  • Problem: 
    • E: Unable to locate package php8.0
  • Solution:
    • lsb_release -a
    • Google the solution
      • E.g.: 
        • apt install software-properties-common
        • add-apt-repository ppa:ondrej/php
        • apt update
        • apt dist-upgrade

Select desired PHP version

  • update-alternatives --config php
    • 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
  • php -version
1
2
3
4
PHP 7.3.33-6+ubuntu22.04.1+deb.sury.org+1 (cli) (built: Sep 18 2022 10:23:23) ( NTS )
Copyright (c) 1997-2018 The PHP Group
Zend Engine v3.3.33, Copyright (c) 1998-2018 Zend Technologies
with Zend OPcache v7.3.33-6+ubuntu22.04.1+deb.sury.org+1, Copyright (c) 1999-2018, by Zend Technologies
  • Check, if only the desired PHP (here 7.4) module es active:
    • a2enmod php7.4
    • a2dismod php8.0
    • a2dismod php 8.1

Maria DB

  • apt-get install mariadb-server mariadb-client libmariadb3 mariadb-backup mariadb-common -y
  • mysql_secure_installation
    • Switch to unix_socket authentication [Y/n] Y
    • Change the root password? [Y/n] Y
    • 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-jre
  • apt install -y python phantomjs
  • apt install -y abiword libreoffice mailutils davfs2 nano memcached php-memcached composer nmon clamav ghostscript-x wkhtmltopdf php-tcpdf xvfb zip unzip -y
    • Answer for webdav-question: yes
  • If there are packages without installation candidate, google the package with your OS version to find it.
    • E.g. "python Ubuntu LTS 22"

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


No comment has been posted yet.