Skip to content

Instantly share code, notes, and snippets.

@donaldsteele
Last active September 20, 2022 21:18
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 donaldsteele/70da3c21926c8ce340070738e5c3139a to your computer and use it in GitHub Desktop.
Save donaldsteele/70da3c21926c8ce340070738e5c3139a to your computer and use it in GitHub Desktop.
install php8
echo "deb https://packages.sury.org/php/ $(lsb_release -sc) main" | sudo tee /etc/apt/sources.list.d/sury-php.list
wget -qO - https://packages.sury.org/php/apt.gpg | sudo apt-key add -
apt update
apt install -y php8.0 php8.0-fpm
apt install -y php8.0 php8.0-fpm php8.0-cli php8.0-common php8.0-fpm php8.0-bcmath php8.0-mbstring php8.0-xml php8.0-curl php8.0-zip php8.0-gd php8.0-redis php8.0-mysql php8.0-imagick php8.0-tidy php8.0-xmlrpc php8.0-intl
apt-get autoremove
sed -i 's/php7.4/php8.0/g' /etc/nginx/sites-enabled/default
cat /etc/php/7.4/fpm/php.ini > /etc/php/8.0/fpm/php.ini
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment