Skip to content

Instantly share code, notes, and snippets.

@anselmelly
Created February 27, 2021 06:09
Show Gist options
  • Select an option

  • Save anselmelly/ebd2f75bff755ed25966ccb2ce73843d to your computer and use it in GitHub Desktop.

Select an option

Save anselmelly/ebd2f75bff755ed25966ccb2ce73843d to your computer and use it in GitHub Desktop.
sudo apt update;
sudo apt upgrade -y;
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/ buster main" | sudo tee /etc/apt/sources.list.d/php.list;
sudo apt update;
sudo apt -y install php7.4;
sudo systemctl disable --now apache2;
sudo apt install -y php7.4-{fpm,mysql,dom,simplexml,ssh2,xml,xmlreader,curl,exif,ftp,gd,iconv,imagick,json,mbstring,posix,sockets,tokenizer,soap};
sudo systemctl enable --now php7.4-fpm nginx mysql;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment