To install PHP version 8.4.x on Ubuntu linux 22.04, 24.04 or other version, you`ll need to install an additional package repository.
Run the follow commands in the terminal to do so:
sudo add-apt-repository ppa:ondrej/php
sudo apt-get update
sudo apt-get install php8.4 php8.4-common
shouldn’t it be
sudo apt-get install php8.4 php8.4-common
??
yep that`s even better. I`ve updated the article