Skip to content

Instantly share code, notes, and snippets.

@johnrlive
Created September 12, 2018 14:43
Show Gist options
  • Save johnrlive/0af445ec98f96a43c2e1910d727adaec to your computer and use it in GitHub Desktop.
Save johnrlive/0af445ec98f96a43c2e1910d727adaec to your computer and use it in GitHub Desktop.
#!/bin/bash
##check what is the latest PHP version supplied by UBUNTU
##sudo apt-cache show php
# Add Repository which gives us the latest php version 7.2
sudo add-apt-repository ppa:ondrej/php
##Lets now check what is the latest PHP version available now after the repository is added
##sudo apt-cache show php
# Lets now install php7.2 and some important modules which we will need.
sudo apt-get install php7.2-cli php7.2-fpm php7.2-curl php7.2-gd php7.2-mysql php7.2-mbstring zip unzip
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment