Skip to content

Instantly share code, notes, and snippets.

@jlainezs
Created April 16, 2024 06:45
Show Gist options
  • Save jlainezs/a8edb7d5a8fa06c51fa166a0b1e390e1 to your computer and use it in GitHub Desktop.
Save jlainezs/a8edb7d5a8fa06c51fa166a0b1e390e1 to your computer and use it in GitHub Desktop.
#! /usr/bin/env bash
# Add Ondrej's PPA - Follow screen indications
sudo add-apt-repository ppa:ondrej/php
sudo apt update
# installs PHP 8.1, 8.2, 8.3 with some usual packages
sudo apt install php8.{1,2,3}-{cli,common,curl,mbstring,mysql,opcache,readline,xdebug,xml,zip,bz2,intl}
# Choose PHP version - Follow screen indications
# Defaults to the most recent version (8.3)
sudo update-alternatives --config php
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment