PDA

View Full Version : [ubuntu] Webmin Lamp needs GD Lib


leona
July 10th, 2009, 11:36 AM
Hi

I have build a Ubuntu 8.04 Lamp Server using Webmin, this is a virtual server to replace my windows 2000 physical box.

So far I have got most things up and running, a few things are different to what I am used to so am working my way around.

One thing I do need working is the GD Library.

I have tried installing this via apt-get install php5-gd, this did install, but still when I look at the phpinfo screen, no GD library can be found.

So how do I go about installing and configuring the GD lib.

In windows, all I did was edit the php.ini file and remove a comment next to the library I wanted, seems that Linux doesn't work like that and I am unable to see how I enable this library.

Can someone help me please.

Leona.

credobyte
July 10th, 2009, 11:39 AM
I might sound stupid, but .. have you restarted your server ( apache ) ?

leona
July 10th, 2009, 12:02 PM
Not a silly suggestion, but yes I have done that, but sadly still no GD :(

leona
July 10th, 2009, 01:41 PM
Does anyone have any more suggestions?

credobyte
July 10th, 2009, 01:55 PM
Verify gd.so existence :
cd /usr/lib/php5/20060613+lfs && ls -lOpen php.ini :
sudo gedit /etc/php5/apache2/php.iniAdd this line :
extension=gd.so
Restart Apache :
sudo /etc/init.d/apache2 restartGive it a try ;)

leona
July 10th, 2009, 04:02 PM
Hi, thank you, I verified the directory was there, I added the extension to the pho.ini file, restarted the Virtual Server, but sadly still no sign of the GD Library :(

leona
July 11th, 2009, 04:02 AM
Actually that dir you gave doesn't have gd.so in it, so does this mean the apt-get install php5-gd didn't work?

I am still not having much luck here,

Right, got it working, I re ran the apt-get install php5-gd line and this time it worked, I do not know why it didn't work the first time, but it is now working.

Thank you all