Skip to content

Instantly share code, notes, and snippets.

@anselmelly
Last active July 6, 2021 14:40
Show Gist options
  • Select an option

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

Select an option

Save anselmelly/489aaad3af744cd8e95c0e547b2995cf to your computer and use it in GitHub Desktop.
sudo apt update;
sudo apt install -y curl wget gnupg2 ca-certificates lsb-release apt-transport-https;
wget https://packages.sury.org/php/apt.gpg;
sudo apt-key add apt.gpg;
echo "deb https://packages.sury.org/php/ $(lsb_release -sc) main" | sudo tee /etc/apt/sources.list.d/php7.list;
sudo apt update;
sudo apt install -y php7.4-{fpm,mysql,dom,simplexml,ssh2,xml,xmlreader,curl,exif,ftp,gd,iconv,imagick,json,mbstring,posix,sockets,tokenizer};
sudo update-alternatives --set php /usr/bin/php7.4;
sudo systemctl disable --now apache2;
@anselmelly
Copy link
Author

i̶t̶ ̶i̶s̶ ̶i̶n̶ ̶/̶u̶s̶r̶/̶l̶o̶c̶a̶l̶/̶v̶e̶s̶t̶a̶/̶f̶u̶n̶c̶/̶d̶o̶m̶a̶i̶n̶.̶s̶h̶ ̶f̶r̶o̶m̶ ̶l̶i̶n̶e̶ ̶8̶5̶ ̶;̶-̶)̶

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment