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
GD2 installed but not operational on PHP5/Debian/Linux
Moderator: General Moderators
- 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
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 #)
and don't forget to restart apache afterwards.
Code: Select all
#extension=php_gd2.dllRe: GD2 installed but not operational on PHP5/Debian/Linux
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
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
- 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
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.
I would recommend visiting http://www.libgd.org, download GD again, and place it in the current extensions dir.