Upgrade to php 8.1

Hi I am trying to move to install php 8.1 on my ubuntu i am currently on InvoiceNinja 5.4.10

Installed the follwoing php

apt install php8.1 php8.1-{common,fpm,bcmath,mbstring,xml,curl,zip,gmp,gd,mysqli}

the php8.1-json giving me few packages that i need to install one specific and not sure which one i should install:

sudo apt install php8.1-json
Reading package lists… Done
Building dependency tree
Reading state information… Done
Package php8.1-json is a virtual package provided by:
php8.1-phpdbg 8.1.8-1+ubuntu20.04.1+deb.sury.org+1
php8.1-fpm 8.1.8-1+ubuntu20.04.1+deb.sury.org+1
php8.1-cli 8.1.8-1+ubuntu20.04.1+deb.sury.org+1
php8.1-cgi 8.1.8-1+ubuntu20.04.1+deb.sury.org+1
libphp8.1-embed 8.1.8-1+ubuntu20.04.1+deb.sury.org+1
libapache2-mod-php8.1 8.1.8-1+ubuntu20.04.1+deb.sury.org+1
You should explicitly select one to install.

Any idea which one i should use ??

I am using apache, and on ubuntu 20.04


@david can you please advise?

i don’t think php8.1-json exists, so it should be fine to ignore that package.

1 Like