1
votes

i've installed php7.1-gd, but it doesn't work. In logs i get this error

php.CRITICAL: Call to undefined function imagecreatefromjpeg()

phpinfo() show me this info about GD module. I restarted apache, maybe someone knows what need to do

GD Support enabled

GD headers Version 2.2.3

GD library Version 2.2.3

FreeType Support enabled

FreeType Linkage with freetype

FreeType Version 2.5.2

GIF Read Support enabled

GIF Create Support enabled

JPEG Support enabled

libJPEG Version 8

PNG Support enabled

libPNG Version 1.2.50

WBMP Support enabled

XPM Support enabled

libXpm Version 30411

XBM Support enabled

WebP Support enabled

1
what is your OS? - Exprator
ubuntu 14.04. At my main OS(ubuntu 16.04) it's work - Obrazkow
try this command once sudo apt-get install php7.1-gd - Exprator
i've already installed it - Obrazkow
oops sorry, php 7.1 works in ubuntu 16 , 7.1 is not supported for 14.04 - Exprator

1 Answers

0
votes

You can get php 7 running on ubuntu 14.04, I even have it running on WSL (which is ubuntu 14.04)

First you need to add a new repo for php7

add-apt-repository ppa:ondrej/php

Then update your software lists and install it

apt update
apt install php7.1

Then just install whatever components you need on top

apt install php7.1-gd php7.1-cli

You will most likely need to sudo the above commands