Created
April 16, 2024 06:45
-
-
Save jlainezs/a8edb7d5a8fa06c51fa166a0b1e390e1 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#! /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