Overview
- Setup
- Remove libapache2-mod-php7.4
- Install PHP 8.1
- Install php-fpm 7.4 and 8.1
- Enable php-fpm 7.4 and 8.1
- A update Virtual Hosts to use the appropriate PHP version
- 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:
// ************* // 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:
// ************* // Ubuntu 20 // ************* sudo apt remove libapache2-mod-php7.4