Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

Overview

  1. Setup
  2. Remove libapache2-mod-php7.4
  3. Install PHP 8.1
  4. Install php-fpm 7.4 and 8.1
  5. Enable php-fpm 7.4 and 8.1
  6. A update Virtual Hosts to use the appropriate PHP version
  7. Restart Apache

Setup

Install Repository

In order to complete this upgrade, a repository (repo) with all of the dependencies must be installed. Listed below are the suggested repos for each operating system.

How to Remove:

Code Block
languagebash
themeMidnight
// *************
// Ubuntu 20
// *************
sudo add-apt-repository ppa:ondrej/php

Remove libapache2-mod-php7.4

Why Remove?

The mod only allows a single PHP version running on the server and will interfere with php-fpm.

How to Remove:

Code Block
languagebash
themeMidnight
// *************
// Ubuntu 20
// *************
sudo apt remove libapache2-mod-php7.4