Page 1 of 1

GD2 installed but not operational on PHP5/Debian/Linux

Posted: Wed Apr 08, 2009 3:42 pm
by mrw
Going crazy if anyone can help. I installed GD2 on PHP5 via Synaptic Package Manager. It confirms that it is indeed installed. However, when I run PhpInfo it does not show it. I try running a small php page using GD code and the command is not recognized. I don't know which way to turn at this point.

I tried restarting Apache as well and that didn't help. Any suggestions?

Mark

Re: GD2 installed but not operational on PHP5/Debian/Linux

Posted: Wed Apr 08, 2009 5:05 pm
by John Cartwright
You still need to uncomment the extension in your php.ini, not exactly sure what it is in Linux, but in windows you would uncomment this line (remove the #)

Code: Select all

#extension=php_gd2.dll
and don't forget to restart apache afterwards.

Re: GD2 installed but not operational on PHP5/Debian/Linux

Posted: Wed Apr 08, 2009 5:54 pm
by mrw
Thank you for the suggestion.

If I add the extension=gdlib.so line, the error log shows the library was not found in /usr/lib/php5/20060613+lfs/libgd.so

I added a extension_dir="/usr/lib/" and that broke mysql and a number of other extensions and still showed errors in the error log for gdlib.so Apparently I need to move the extension to the default extension folder but I don't know how to do that.

Any help?

Thanks

Re: GD2 installed but not operational on PHP5/Debian/Linux

Posted: Wed Apr 08, 2009 6:11 pm
by John Cartwright
I always intall my environments manually, so I'm not exactly sure how these package managers work.

I would recommend visiting http://www.libgd.org, download GD again, and place it in the current extensions dir.