Announcement

#1 2016-08-05 23:36:12

JJF
Member
2011-10-06
118

[resolved] Can't upload photos "gd library is missing"

Hi,
Can't upload photos. It claims gd library is missing. Even after I installed php5-gd and restarted apache.
I found an nxinx-specific thread, but not one for apache2. Also, i'f I'm using external ImageMagick, why should I even bother installing gd ?

Environment

•Operating system: Linux
•PHP: 5.6.24-0+deb8u1 (Show info) [2016-08-05 17:27:10]
•MySQL: 5.5.50-0+deb8u1 [2016-08-05 17:27:10]
•Graphics Library: External ImageMagick 6.8.9-9
•Debian 8

Suggestions, please.
Regarrds,
JJF

Offline

 

#2 2016-08-06 11:49:29

Zentalquabula
Member
2014-05-10
217

Re: [resolved] Can't upload photos "gd library is missing"

Works fine for me:

Operating system: Linux
PHP: 7.0.8-0ubuntu0.16.04.2 (Show info) [2016-08-06 11:44:20]
MySQL: 5.5.5-10.0.25-MariaDB-0ubuntu0.16.04.1 [2016-08-06 11:44:20]
Graphics Library: ImageMagick 6.8.9-9

Things to consider: do you have imagick installed? That is the PHP extension for imagemagick? Imagemagick itself is not enough.

As for GD, can you check your phpinfo and see that it is enabled and functional?

If it is, it might be cache related. Do you use opcache, memcached or anything that could keep stuff in cache over apache restarts?

And do you use PHP as an Apache module, or as PHP-FPM? In the latter case, you need to restart PHP rather than Apache.

Last edited by Zentalquabula (2016-08-06 11:50:33)

Offline

 

#3 2016-08-06 21:33:55

JJF
Member
2011-10-06
118

Re: [resolved] Can't upload photos "gd library is missing"

Hello Zentalquabula:

Thanks for the tips. Restarting both apache and php brought up the correct screen when trying to upload via web.

As an expirement, I installed php5-imagick, removed php5-gd, restarted everything and found myself back where I started: files added via ftp can be processed and resized but uploads via web didn't work.

So I reinstalled php5-gd, restarted apache and php and will just live with gd processing any web uploads.

Regards,
JJF

Offline

 

Board footer

Powered by FluxBB

github twitter newsletter Donate Piwigo.org © 2002-2024 · Contact