Install PHP

Let's install PHP:

Firstly we need to get the Ondrej repo ready for 8.4:

sudo add-apt-repository ppa:ondrej/php
sudo add-apt-repository ppa:ondrej/apache2
sudo apt update

Now we can install the PHP and functions we require:

sudo apt install php8.4 php8.4-cli -y
sudo apt install php8.4-{bz2,curl,mbstring,intl,fpm,gd,mysqlnd,opcache,zip,intl,common,bcmath,readline,mbstring,apcu,xml,dom,mcrypt} -y

Revision #9
Created 5 March 2025 18:54:38 by Michael Dance
Updated 27 March 2025 13:39:44 by Michael Dance