Skip to content

Instantly share code, notes, and snippets.

@wayanjimmy
Last active October 2, 2019 14:28
Show Gist options
  • Star 4 You must be signed in to star a gist
  • Fork 3 You must be signed in to fork a gist
  • Save wayanjimmy/f1679e4c9dc9251fd9df520f5bbe2b5b to your computer and use it in GitHub Desktop.
Save wayanjimmy/f1679e4c9dc9251fd9df520f5bbe2b5b to your computer and use it in GitHub Desktop.
Install php7.1 ubuntu 16.04 EC2
sudo apt-get update -y
sudo apt-get install -y nginx
sudo apt-get install -y python-software-properties
sudo add-apt-repository -y ppa:ondrej/php
sudo apt-get update -y
sudo apt-get install -y php7.1 php7.1-fpm php7.1-cli php7.1-common php7.1-mbstring php7.1-gd php7.1-intl php7.1-xml php7.1-mysql php7.1-mcrypt php7.1-zip
sudo apt-get install php-curl
sudo apt-get install php-imagick
sudo apt-get install mysql-server
# see https://www.vultr.com/docs/how-to-install-and-configure-php-70-or-php-71-on-ubuntu-16-04
@Logicbloke
Copy link

If you are using Debian / Ubuntu LTS such as 18.04, 16.04, and 14.04 systems then install software-properties-common package to get add-apt-repository command.

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