ullright Webservice Setup (For Ubuntu Linux)

This guide explains how to install the webservice infrastructure (LAMP) for ullright using a fresh Ubuntu Linux installation.
Tested with Ubuntu 20.04LTS

This guide is valid both for installing a local dev environment, but also for a web server.

Use your favourite editor like nano, gedit, etc instead of vim if you like.

Install packages

  • sudo apt install lamp-server^
  • sudo apt install php7.4-imagick php7.4-gd php7.4-imap php7.4-mbstring php7.4-xml subversion vim bzip2 optipng jpegoptim jhead

Configure PHP

Recommended PHP settings

  • sudo vi /etc/php/7.4/cli/php.ini
    • html_errors = Off
  • sudo vi /etc/php/7.4/apache2/php.ini
    • memory_limit = 512M
      post_max_size = 32M
      upload_max_filesize = 32M
      session.cookie_lifetime = 1000000
      session.gc_maxlifetime = 1000000

Configure Apache

  • sudo a2dissite 000-default default-ssl
  • sudo a2enmod rewrite headers expires
  • sudo service apache2 restart