root@minecraft-server:/var/www/pterodactyl# apt -y install php8.1 php8.1-{cli,gd,mysql,pdo,mbstring,tokenizer,bcmath,xml,fpm,curl,zip}
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
Note, selecting 'php8.1-common' instead of 'php8.1-pdo'
Note, selecting 'php8.1-common' instead of 'php8.1-tokenizer'
php8.1 is already the newest version (8.1.22-1+ubuntu22.04.1+deb.sury.org+1).
php8.1-bcmath is already the newest version (8.1.22-1+ubuntu22.04.1+deb.sury.org+1).
php8.1-cli is already the newest version (8.1.22-1+ubuntu22.04.1+deb.sury.org+1).
php8.1-common is already the newest version (8.1.22-1+ubuntu22.04.1+deb.sury.org+1).
php8.1-curl is already the newest version (8.1.22-1+ubuntu22.04.1+deb.sury.org+1).
php8.1-fpm is already the newest version (8.1.22-1+ubuntu22.04.1+deb.sury.org+1).
php8.1-gd is already the newest version (8.1.22-1+ubuntu22.04.1+deb.sury.org+1).
php8.1-mbstring is already the newest version (8.1.22-1+ubuntu22.04.1+deb.sury.org+1).
php8.1-mysql is already the newest version (8.1.22-1+ubuntu22.04.1+deb.sury.org+1).
php8.1-xml is already the newest version (8.1.22-1+ubuntu22.04.1+deb.sury.org+1).
php8.1-zip is already the newest version (8.1.22-1+ubuntu22.04.1+deb.sury.org+1).
0 upgraded, 0 newly installed, 0 to remove and 3 not upgraded.