New user's registration have been closed due to high spamming and low trafic on this forum. Please contact forum admins directly if you need an account. Thanks !

libgd on Bubba

Got problems with Bubba? Then this forum is for you.
Locked
DanielM
Posts: 637
Joined: 28 Mar 2008, 06:37
Location: Sweden

libgd on Bubba

Post 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
dougie
Posts: 21
Joined: 14 Feb 2007, 10:12
Location: UK

Post 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
dougie
Posts: 21
Joined: 14 Feb 2007, 10:12
Location: UK

Post 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
Eek
Posts: 372
Joined: 23 Dec 2007, 03:03
Location: the Netherlands

Post by Eek »

try

Code: Select all

apt-get install php4-gd
and restart apache

Code: Select all

/etc/init.d/apache2 restart
cheers
Eek
DanielM
Posts: 637
Joined: 28 Mar 2008, 06:37
Location: Sweden

Post 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
Eek
Posts: 372
Joined: 23 Dec 2007, 03:03
Location: the Netherlands

Post 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
DanielM
Posts: 637
Joined: 28 Mar 2008, 06:37
Location: Sweden

Post by DanielM »

Ah! This is exactly what I need! Thanks a lot!

/Daniel
Locked