Skip to content

Instantly share code, notes, and snippets.

@ansulev
Last active February 3, 2022 17:40
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 ansulev/472a5164bb6c554cb697bc5b542e1cee to your computer and use it in GitHub Desktop.
Save ansulev/472a5164bb6c554cb697bc5b542e1cee to your computer and use it in GitHub Desktop.
# Add suri repo
sudo apt -y install lsb-release apt-transport-https ca-certificates
sudo wget -O /etc/apt/trusted.gpg.d/php.gpg https://packages.sury.org/php/apt.gpg
echo "deb https://packages.sury.org/php/ $(lsb_release -sc) main" | sudo tee /etc/apt/sources.list.d/php.list
sudo update
# install php7.4
sudo apt-get install php7.4
# for nginx
apt install php7.4-fpm php7.4-{apcu,bcmath,bz2,cgi,cli,common,curl,dba,enchant,intl,gd,imap,json,,mbstring,mysql,odbc,opcache,phpdbg,redis,snmp,soap,sqlite3,tidy,xml,xsl,zip}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment