Skip to content

Instantly share code, notes, and snippets.

@marcorivm
Created December 2, 2018 21:46
Show Gist options
  • Select an option

  • Save marcorivm/126808990211e47b4610b88df841f0e9 to your computer and use it in GitHub Desktop.

Select an option

Save marcorivm/126808990211e47b4610b88df841f0e9 to your computer and use it in GitHub Desktop.

Revisions

  1. marcorivm created this gist Dec 2, 2018.
    7 changes: 7 additions & 0 deletions install_php.sh
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,7 @@
    cd ~
    apt-get install -y software-properties-common python-software-properties &&
    LC_ALL=C.UTF-8 add-apt-repository ppa:ondrej/php &&
    apt-get update &&
    apt-get install -y php7.2 php7.2-cli php7.2-common php7.2-curl php7.2-gd php7.2-json php7.2-mbstring php7.2-intl php7.2-mysql php7.2-xml php7.2-zip php7.2-bcmath
    curl -sS https://getcomposer.org/installer -o composer-setup.php
    php composer-setup.php --install-dir=/usr/local/bin --filename=composer