Skip to content

Instantly share code, notes, and snippets.

@jhowbhz
Last active April 9, 2024 18:20
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jhowbhz/23c8b0acc8baccee5b6c6da53c14e14d to your computer and use it in GitHub Desktop.
Save jhowbhz/23c8b0acc8baccee5b6c6da53c14e14d to your computer and use it in GitHub Desktop.
Install PHP 8.3 - FPM Nginx Ubuntu 22.04

Add Ondrej's PPA

sudo add-apt-repository ppa:ondrej/php 
sudo apt update
sudo apt install php8.3 php8.3-cli php8.3-{bz2,curl,mbstring,intl}

Install FPM OR Apache module

sudo apt install php8.3-fpm

OR APACHE

apt install libapache2-mod-php8.2

On Apache: Enable PHP 8.3 FPM

sudo a2enconf php8.3-fpm

When upgrading from an older PHP version:

sudo a2disconf php8.2-fpm

Remove old packages

sudo apt purge php8.2*
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment