Skip to content

Instantly share code, notes, and snippets.

@Stafox
Last active February 20, 2020 22:17
Show Gist options
  • Star 3 You must be signed in to star a gist
  • Fork 3 You must be signed in to fork a gist
  • Save Stafox/0fff60615a100b92bdd73c21802adb20 to your computer and use it in GitHub Desktop.
Save Stafox/0fff60615a100b92bdd73c21802adb20 to your computer and use it in GitHub Desktop.
Ubuntu 16.04 PHP 7.2 install
sudo add-apt-repository -y ppa:ondrej/php
sudo apt-get update
sudo apt-get install -y php7.2-fpm
sudo apt-get install -y php7.2
sudo apt-get -y install curl php7.2-pgsql php7.2-curl php7.2-json php7.2-mbstring php7.2-gd php7.2-intl php7.2-xml php7.2-imagick php7.2-redis php7.2-zip
# sudo systemctl disable apache2
@mumairofficial
Copy link

First command gives errors:

gpg: keybox '/tmp/tmpkiq2okl7/pubring.gpg' created
gpg: failed to start the dirmngr '/usr/bin/dirmngr': No such file or directory
gpg: connecting dirmngr at '/tmp/tmpkiq2okl7/S.dirmngr' failed: No such file or directory
gpg: keyserver receive failed: No dirmngr

@riordanz
Copy link

@mumairofficial sudo apt-get -y install dirmngr

@smcnally
Copy link

smcnally commented Feb 18, 2020

Update 02.20 - I was incorrect. Please close / ignore this issue. The server I was on was 14.04 vs 16.04. Pardon my mistake.

All was well until gd and imagick.

E: Couldn't find any package by regex 'php7.2-gd'
E: Couldn't find any package by regex 'php7.2-imagick'

have added ondrej/apache2 to apt repositories. No Joy.
Have worked through other howtos - No Joy.

getting gd or imagick php or apache2 mods installed for 16.04 seems no longer to work like this

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