Link to home
Start Free TrialLog in
Avatar of Daniel Wilson
Daniel WilsonFlag for United States of America

asked on

broken gd install in php 5.6 on CentOS 6.5

I'm setting up a new stack of software for experimentation.  

I have CentOS 6.5, MariaDB, and Apache 2.2.  (I tried Apache 2.4, but that was installing in a goofy location, so I rolled back.)

Php 5.3 wasn't getting along great with MariaDB, so I upgraded to PHP 5.6 per https://webtatic.com/packages/php56/

yum insists that php56w-gd is installed.  php_info() says gd is not installed.

There is a [gd] section in php.ini, but it contains only comments.

[gd]
; Tell the jpeg decode to ignore warnings and try to create
; a gd image. The warning will then be displayed as notices
; disabled by default
; http://php.net/gd.jpeg-ignore-warning
;gd.jpeg_ignore_warning = 0

Open in new window


Is there somewhere I need to tell PHP to load the library?  

Thanks!
Avatar of Dave Baldwin
Dave Baldwin
Flag of United States of America image

Run 'phpinfo()' and see if 'gd' is supposed to be enabled in an 'ini' file like it was under PHP 5.3.  And see if it is actually there.  A lot of extensions are loaded thru 'ini' files on my CentOS 6.6 machine.
Avatar of Daniel Wilson

ASKER

I am on CentOS 6.6, not 6.5.

in my phpinfo() output, the only mention of gd is in the credits.

Which tells me I have to load or enable or activate it somewhere ...
ASKER CERTIFIED SOLUTION
Avatar of Dave Baldwin
Dave Baldwin
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
OK, I have that section.  Right after "Scan this dir for additional .ini files".

But gd.ini isn't in there. So ... I think I need a gd.ini file to drop in the correct directory.

Sound right?
wait, gd.ini is in the specified folder.

[dwilson@dev php.d]$ cat gd.ini
; Enable gd extension module
extension=gd.so

Open in new window


But not in the "additional files parsed" list.  

Confused ...
One more restart and I got it.
Thanks!  You pointed me to the right stuff.
You're welcome, glad to help.