Skip to content

Instantly share code, notes, and snippets.

@fazni
Last active September 12, 2019 09:11
Show Gist options
  • Save fazni/829fd3db3687be29c46353fe9968af5f to your computer and use it in GitHub Desktop.
Save fazni/829fd3db3687be29c46353fe9968af5f to your computer and use it in GitHub Desktop.
Installing PHP 7.2 Ubuntu 14.04, 16.04, 17.04, & 17.10
#!/bin/sh
# Installing PHP 7.2
sudo add-apt-repository ppa:ondrej/php
sudo apt-get update
sudo apt-get install php7.2-cli
sudo apt-get install php7.2-mysql php7.2-curl php7.2-json php7.2-cgi php7.2-xsl
# For developer drupal 8 apply patch https://www.drupal.org/files/issues/php_7_2_fatal_error-2894884-3.patch
# see https://www.drupal.org/project/webform/issues/2894884
@cristian-fleischer
Copy link

14.04 has reached end of life and is not supported anymore. Not by canonical and not by ondrej.

So you need to move to a newer ubuntu version or maybe build php from sources as a last resort.

@guri-dev
Copy link

14.04 has reached end of life and is not supported anymore. Not by canonical and not by ondrej.

So you need to move to a newer ubuntu version or maybe build php from sources as a last resort.

Agreed

@buttflattery
Copy link

you can download the package available for the php-fpm and use it for this version

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