Skip to content

Instantly share code, notes, and snippets.

@diegopacheco
Created July 5, 2024 07:10
Show Gist options
  • Save diegopacheco/4a124e0068b294616ea56dbc6fc3d560 to your computer and use it in GitHub Desktop.
Save diegopacheco/4a124e0068b294616ea56dbc6fc3d560 to your computer and use it in GitHub Desktop.
Install PHP 8.2
sudo apt update
sudo apt -y install software-properties-common
sudo add-apt-repository ppa:ondrej/php
sudo apt update
sudo apt install php8.2 php8.2-cli php8.2-common php8.2-mbstring php8.2-xml php8.2-mysql php8.2-pgsql php8.2-sqlite3 php8.2-curl php8.2-bcmath php8.2-zip
sudo update-alternatives --set php /usr/bin/php8.2
php -v
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment