Skip to content

Instantly share code, notes, and snippets.

@simonardejr
Last active December 27, 2020 15:39
Show Gist options
  • Save simonardejr/c427db279c74016d37423867f4f8f588 to your computer and use it in GitHub Desktop.
Save simonardejr/c427db279c74016d37423867f4f8f588 to your computer and use it in GitHub Desktop.
simple script to install php8 (cli)
#!/bin/bash
# add repository
sudo add-apt-repository ppa:ondrej/php
# update apt
sudo apt update
# install php8
sudo apt install php8.0-cli php8.0-bcmath php8.0-common php8.0-curl php8.0-gd php8.0-gmp php8.0-intl php8.0-mbstring php8.0-mysql php8.0-opcache php8.0-pgsql php8.0-readline php8.0-redis php8.0-sqlite3 php8.0-xml php8.0-xsl php8.0-zip -y
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment