20

I'm running ubuntu 16 and I'm trying to install php5.6 extension GD.

I understand that php5.6 isn't available anymore in the default ubuntu repo's. I followed How can I downgrade from PHP 7 to PHP 5.6 on Ubuntu 16.04? to install php5.6 on my machine. But for my drupal site the GD php extension is required.

However it's not in the proposed repo. Can someone point me to the correct repo where I can still download/install the GD extension? Or an alternative method because I'm not finding it.

37

It is available from ppa:ondrej/php.

apt-get install php5.6-gd

will install GD for PHP 5.6

  • 9
    sudo apt-get install php7.0-gd worked for me. Thanks for the install pattern! – revelt Mar 18 '17 at 8:18

protected by Community Dec 22 '17 at 13:16

Thank you for your interest in this question. Because it has attracted low-quality or spam answers that had to be removed, posting an answer now requires 10 reputation on this site (the association bonus does not count).

Would you like to answer one of these unanswered questions instead?

Not the answer you're looking for? Browse other questions tagged or ask your own question.