Page 1 of 1

libgd on Bubba

Posted: 02 Apr 2008, 09:09
by DanielM
Hi everyone.
I've been following these forums for quite a while. Haven't got around to buying any Bubba until now though. Now I'm a happy owner :-)

My first question (it's bound to be more): I installed spgm. Looks very nice. Problem is that it seems a bit hard for my wife (yes, she'll be the one putting my family pictures there) to manage. I then found the webministration tool (linked to from spgm website) which seems to be able to solve this. Problem then is that webministration needs libgd to transform images. If I understand things correctly libgd is normally bundled with php. Doesn't seem to work on the php that comes with Bubba though. Is there anything I could do about this?

/Daniel

Posted: 02 Apr 2008, 17:06
by dougie
Hi DanielM

libgd doesn't appear to be installed by default on Bubba. If you do 'apt-cache search libgd' it is there, so can be installed. Then it should run in php under spgm.

Regards

Dougie

Posted: 02 Apr 2008, 17:18
by dougie
Hi DanielM

I've just run phpinfo and there is no mention of gd support in the version of php running on Bubba.
To run it yourself, save the following to a file named phpinfo.php in /home/web

<?php
phpinfo();
?>

then access it with web browser.

Regards

Dougie

Posted: 03 Apr 2008, 01:17
by Eek
try

Code: Select all

apt-get install php4-gd
and restart apache

Code: Select all

/etc/init.d/apache2 restart
cheers
Eek

Posted: 03 Apr 2008, 03:15
by DanielM
Eek wrote:try

Code: Select all

apt-get install php4-gd
and restart apache

Code: Select all

/etc/init.d/apache2 restart
Yep. Did the trick. (Except from the fact that the version of php here is 5, so I had to install php5-gd instead. Guess this is because I installed my bubba using the etch image).

I'm normally using Fedora, so I'm not quite used to the apt-get-stuff...

Thanks a lot!

/Daniel

Posted: 03 Apr 2008, 06:37
by Eek
Hi
You are right. Etch is using php5 and you need php5-gd.
I am also more at home at fedora/red-hat
but thanks to the bubba am learning Debian fast.
This page helped a lot
https://help.ubuntu.com/community/Switc ... xAndFedora

cheers
Eek

Posted: 03 Apr 2008, 07:17
by DanielM
Ah! This is exactly what I need! Thanks a lot!

/Daniel