GD2 installed but not operational on PHP5/Debian/Linux

Need help installing PHP, configuring a script, or configuring a server? Then come on in and post your questions! We'll try to help the best we can!

Moderator: General Moderators

Post Reply
mrw
Forum Newbie
Posts: 2
Joined: Wed Apr 08, 2009 3:35 pm

GD2 installed but not operational on PHP5/Debian/Linux

Post 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
User avatar
John Cartwright
Site Admin
Posts: 11470
Joined: Tue Dec 23, 2003 2:10 am
Location: Toronto
Contact:

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

Post 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.
mrw
Forum Newbie
Posts: 2
Joined: Wed Apr 08, 2009 3:35 pm

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

Post 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
User avatar
John Cartwright
Site Admin
Posts: 11470
Joined: Tue Dec 23, 2003 2:10 am
Location: Toronto
Contact:

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

Post 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.
Post Reply