Step 1 – ILIAS 8 Dependencies Installation

Prerequisite: Working version of  Ubuntu 22.04.

First, you should install Apache, PHP, its dependencies, and the database.

Update the system

  • Typically, you log in as a user "root". If not, become "root" with sudo -s
  • Load new system updates:
apt-get update

Update the system with:

apt-get upgrade

These packages may be missing. So try to install them:

apt install language-pack-en
apt install sudo
apt install lsb-core

Apache2

Install needed apt packages:

apt-get install apache2 apache2-doc libapache2-mod-xsendfile

Activate some Apache modules:

a2enmod rewrite dav_fs dav expires headers proxy socache_shmcb ssl vhost_alias dav ssl http2 mod_authnz_ldap ldap

PHP 8.0

Note: Ubuntu 22.04 ships with PHP 8.1 in its repositories. This means that if you attempt to install PHP without a specified version, it will use 8.1. However, for version 8, ILIAS recommends using PHP 8.0. To install PHP 8.0, we will use the following steps:

  1. Install required dependencies:
apt install lsb-release ca-certificates apt-transport-https software-properties-common -y

2. Set up PHP repository:

add-apt-repository ppa:ondrej/php

To continue reading the prompt, please hit the "Enter" button

3. Install PHP 8 on Ubuntu 22.04

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

4, Verify PHP version

php -v

5. Select the desired PHP version (8.0)

update-alternatives --config  php

Select the number associated with PHP 8.0 and click Enter. In the example above we need to select 1.

Install PHP 8 Extensions:

phpenmod opcache

MariaDB

To install the database, we will use the instructions here: https://mariadb.com/kb/en/installing-mariadb-deb-files/

Here are the steps:

curl -sS https://downloads.mariadb.com/MariaDB/mariadb_repo_setup | sudo bash
apt-get install mariadb-server galera-4 mariadb-client libmariadb3 mariadb-backup mariadb-common

Other tools and stuff

apt install zip git htop wget curl htmldoc mailutils imagemagick ffmpeg openjdk-11-jre abiword libreoffice mailutils davfs2 nano memcached php-memcached composer nmon clamav ghostscript-x wkhtmltopdf php-tcpdf xvfb

Answer for Webdav-question: yes

Node

The first step is to check if node or npm is already installed.

node --version
nodejs --version
npm --version

To install it, run the following commands:

curl -sL https://deb.nodesource.com/setup_14.x | sudo -E bash -

(Please do not go higher than node version 14 because the chat does not support it)

apt-get install -y nodejs

After the installation, check the versions:

Check Node:

node --version

Check NPM:

npm --version

Check the node path and keep the result in mind:

whereis node 

this could give the green node path: node: /usr/bin/node /usr/include/node /usr/share/man/man1/node.1.gz