Daniel Wilson
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.
Is there somewhere I need to tell PHP to load the library?
Thanks!
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
Is there somewhere I need to tell PHP to load the library?
Thanks!
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.
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 ...
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
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
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?
But gd.ini isn't in there. So ... I think I need a gd.ini file to drop in the correct directory.
Sound right?
ASKER
wait, gd.ini is in the specified folder.
But not in the "additional files parsed" list.
Confused ...
[dwilson@dev php.d]$ cat gd.ini
; Enable gd extension module
extension=gd.so
But not in the "additional files parsed" list.
Confused ...
ASKER
One more restart and I got it.
ASKER
Thanks! You pointed me to the right stuff.
You're welcome, glad to help.