Portal Home > Knowledgebase > Articles Database > Problems installing and enabling gd libary


Problems installing and enabling gd libary




Posted by robert31, 12-15-2010, 01:47 PM
First of Hi! Bit stressted now as i have been serching around for the last 24 hours and still no joy. i am using linux. i installed with command: yum install php-gd i then edited the php.ini file to enable it, buy removing the ; from: ;extension=php_gd2.dll and now when i go into phpinfo () still no gd. Am i doing some thing wrong? Rob.

Posted by fabin, 12-15-2010, 02:03 PM
Are you running Apache webserver? Try restarting it.

Posted by robert31, 12-15-2010, 04:21 PM
forgot to mention have tried this. restarted, and rebooted server. neither worked. thanks for reply. rob

Posted by Quel, 12-15-2010, 04:58 PM
Check that you do have installed libpng, libjpeg (and the development ones libpng-devel, libjpeg-devel), freetype2, freetype If it does not resolve it, check if there is any message in /var/log/messages An alternative as well is to donwload the tar source and compile it & phpize it Q

Posted by foobic, 12-15-2010, 08:19 PM
Something strange there. You're using yum, so it's presumably a RH / CentOS server but the php.ini contains Windows .dll files...? Check which versions of PHP you have installed / running and (in the phpinfo) whether you're editing the correct php.ini.

Posted by robert31, 12-16-2010, 12:25 AM
ive edited the /usr/local/lib/php.ini file and PHP Version 5.2.9 still carnt get it enabled

Posted by foobic, 12-16-2010, 02:50 AM
The standard CentOS 5 (yum) PHP is version 5.1.6 and it doesn't install to /usr/local. Did you compile this one yourself or install from a control panel / rpm / non-standard repo? In any case, "yum install php-gd" probably won't help if you're not using yum's version of PHP. At a guess though, installing php-gd should have installed php too, so you may have both versions now, it's just a question of which one Apache is set to use. You need to choose how you want to build / install / maintain PHP and stick to that one method: compile it yourself, use yum standard packages or find another repo that offers what you want. I'd recommend standard yum unless you have a control panel or a specific need for the latest features.

Posted by robert31, 12-19-2010, 01:20 AM
sorry for late reply. that was a bit technical, new to the commands and installing to servers. i read use the "yum install php-gd" from another site, am i wrong for using this? and how would i enable gd libary now? Thanks for taking time to help! Rob.

Posted by fabin, 12-19-2010, 01:47 AM
Are you using control panel like cPanel, directadmin etc? Also try posting the result of

Posted by robert31, 12-19-2010, 02:23 AM
Hi, ive managed to do it via easyapache. Thanks for help though!!

Posted by foobic, 12-19-2010, 03:00 AM
If you'd told us you were using cPanel in the first place you'd have got that answer a lot sooner...

Posted by robert31, 12-19-2010, 09:12 PM
Stupid me! i didnt think this would have matted lol. learnt the hard way Thanks though.. Rob.

Posted by mahi, 12-31-2010, 03:30 PM
Hum.. this gona help me as well.. thanks...

Posted by parky1, 12-31-2010, 06:23 PM
yum install gd gd-devel php-gd



Was this answer helpful?

Add to Favourites Add to Favourites    Print this Article Print this Article

Also Read
TCP WRAPPER (Views: 639)