Install dependencies

On Ubuntu, use apt to install dependencies. The following is required for Ubuntu 20.04.

Update your repository:

sudo apt update

If you're running MySQL on the same server, install it now (this isn't needed if MySQL is already installed, or if it's running on a separate server):

sudo apt install mysql-server

Then install Apache, PHP and other essentials:

sudo apt install apache2 \
php \
php-mbstring \
php-mysql \
libapache2-mod-php \
php-xml \
php-zip \
php-curl \
ghostscript \
poppler-utils \
wkhtmltopdf \
zip

Install the following (not essential but needed for document and image-handling):

sudo apt install antiword \
libjpeg-progs \
jpegoptim \
advancecomp \
pngnq \
optipng

If you find that Zenario's installer says that GD library is missing (e.g. on PHP8.1) you may need to run:

sudo apt install php8.1-gd

Enable additional Apache modules:

sudo a2enmod expires rewrite

Now restart Apache:

sudo systemctl restart apache2

Zenario will send emails. If the server is new, you may need to install a mail utility so as to ensure it can send, for example:

sudo apt install mailutils

When doing this, choose "internet site".