Ubuntu 21.10 Upgrade from Ubuntu 20.04

DockuWiki create link broke.

This was result of introduction of PHP 8.0

This was fixed by rolling back to PHP 7.4

  1. Stop Nginx and PHP8.04-FPM
  2. add Ondřej Surý PPA to install different versions of PHP – PHP 5.6, PHP 7.x, and PHP 8.0 on the Ubuntu system.
  3. setup PHP 7.4

Notable commands

sudo add-apt-repository ppa:ondrej/php
sudo apt install php7.4-fpm
sudo apt install php7.4-xml; apt install php7.4-mbstring; apt install php7.4-opcache php7.4-intl php7.4-json php7.4-gd php7.4-bz2 php7.4-curl php7.4-sqlite3
sudo update-alternatives --config php
 
#Select /usr/bin/php7.4 from menu
 
sudo systemctl start php7.4-fpm.service
sudo systemctl start nginx.service

Notes.Ensure nginx conf file for website is set to use the php7.4 socket. See /root/backups/42d.io-ssl-conf

Useful website