Advertisement:

Author Topic: Problem with GD extension for PHP  (Read 1179 times)

pedroveras

  • Newbie
  • *
  • Posts: 2
Problem with GD extension for PHP
« on: March 24, 2015, 09:42:50 am »
Hi, I am trying to install osclass, but in the install checklist, the item "GD extension for PHP" is marked as not installed. But the php5-gd is installed on the server.
My server is an Ubuntu 14.04, running nginx and php5-fpm.
You can check my phpinfo here: http://icooltrip.com/info.php

I would be very grateful if someone could help me, since I've already researched, but nothing worked.

Thanks in advance.

teseo

  • Hero Member
  • *****
  • Posts: 6169
Re: Problem with GD extension for PHP
« Reply #1 on: March 24, 2015, 01:29:06 pm »
Hi,

You should have a GD section there and it's not so, maybe is installed but not configured. ???

http://php.net/manual/en/image.installation.php

Quote
It should be noted that it might be pretty easy to install gd without the need to recompile php, when using debian:

apt-get install php5-gd

For Ubuntu should be the same, try uninstalling and then reinstalling.

Also, if you are able to do that, you should install Imagemagick with Imagick PHP extension, better than GD Library.

Regards

pedroveras

  • Newbie
  • *
  • Posts: 2
Re: Problem with GD extension for PHP
« Reply #2 on: April 01, 2015, 09:15:22 pm »
I solved the problem.
The GD extension was installed, but php5-fpm has a bug in Ubuntu 14 that it does not restart.
After I reboot the server everything works.

After I solved my problem I found a bug fix for the php5-fpm restart issue:
https://github.com/AbhishekGhosh/Nginx-PHP5-FPM-Restart-Fix-on-Ubuntu