Ubuntu Forums ubuntu.com - launchpad.net - ubuntu help  

Go Back   Ubuntu Forums > The Ubuntu Forum Community > Forum Archive > Main Support Categories > Server Platforms
Register Reset Password Forum Help Forum Council Search Today's Posts Mark Forums Read

Hello, Unregistered You are browsing a READ only archive of the main support categories pre 4/21/2008. You will not be able to post or reply any threads in this section.

Server Platforms
Discussion regarding any server based ubuntu release.

 
Thread Tools Display Modes
Old June 25th, 2006   #1
Dingen
5 Cups of Ubuntu
 
Dingen's Avatar
 
Join Date: Jan 2006
Location: Netherlands, Europe
Beans: 16
Ubuntu 6.06
Unhappy PHP/GD-functions that need bundled GD don't work

I'm using my Ubuntu 6.06 Dapper-machine as a LAMP-server, with Apache2 and PHP5. It's working great, but I've encountered a little problem.

The GD-functions to output and manipulate images with PHP work fine, except the functions that need the "bundled GD", like this one or this one.

I've installed php5-gd.

What should I do to install this "bundled GD" so I can use these functions?
Dingen is offline   Reply With Quote
Old June 25th, 2006   #2
Randomskk
Quad Shot of Ubuntu
 
Randomskk's Avatar
 
Join Date: Jan 2006
Location: Surrey; UK
Beans: 362
Kubuntu Intrepid Ibex (testing)
Send a message via AIM to Randomskk Send a message via MSN to Randomskk Send a message via Skype™ to Randomskk
Re: PHP/GD-functions that need bundled GD don't work

Basically, the only way to do it is to compile your own PHP5.
I had this a week back, and there is a bug out for it that's closed - the PHP maintainer said that due to security reasons, Ubuntu will NOT use the PHP-bundled version of GD.
I know, it sucks, but not much you can do besides compile your own PHP.
__________________
"Rest not, time is sweeping by. Go and dare before you die. Something mighty and sublime, leave behind to conquer time."
Randomskk is offline   Reply With Quote
Old June 25th, 2006   #3
Dingen
5 Cups of Ubuntu
 
Dingen's Avatar
 
Join Date: Jan 2006
Location: Netherlands, Europe
Beans: 16
Ubuntu 6.06
Re: PHP/GD-functions that need bundled GD don't work

Hmm... so if I compile my own PHP5 with bundled GD, will that create a security risk on my machine?
Dingen is offline   Reply With Quote
Old June 25th, 2006   #4
Randomskk
Quad Shot of Ubuntu
 
Randomskk's Avatar
 
Join Date: Jan 2006
Location: Surrey; UK
Beans: 362
Kubuntu Intrepid Ibex (testing)
Send a message via AIM to Randomskk Send a message via MSN to Randomskk Send a message via Skype™ to Randomskk
Re: PHP/GD-functions that need bundled GD don't work

Not much of a security risk, and it depends if you allow other people to execute PHP code.
The main thing seems to be that some of the bundled GD functions are not very secure, and may get around file limits and things.

I don't believe it will make a big security risk, and if you want/need the extra functions that's the only way to get it.

You could email the maintainer and ask about why Ubuntu don't do it, this is the bug I mentioned:
https://launchpad.net/distros/ubuntu...hp5/+bug/39719
__________________
"Rest not, time is sweeping by. Go and dare before you die. Something mighty and sublime, leave behind to conquer time."
Randomskk is offline   Reply With Quote
Old June 25th, 2006   #5
Dingen
5 Cups of Ubuntu
 
Dingen's Avatar
 
Join Date: Jan 2006
Location: Netherlands, Europe
Beans: 16
Ubuntu 6.06
Re: PHP/GD-functions that need bundled GD don't work

Thanks very much, this makes it very clear.

Now I have to ask myself: do I need the extra bundled-functions? I wanted to use the imagefilter and/or antialias functions for some visual prettyness. But I guess it works without them.

*still in doubt*
Dingen is offline   Reply With Quote
Old June 25th, 2006   #6
Randomskk
Quad Shot of Ubuntu
 
Randomskk's Avatar
 
Join Date: Jan 2006
Location: Surrey; UK
Beans: 362
Kubuntu Intrepid Ibex (testing)
Send a message via AIM to Randomskk Send a message via MSN to Randomskk Send a message via Skype™ to Randomskk
Re: PHP/GD-functions that need bundled GD don't work

Yea, I faced the same thing: both make the images look nice and pretty, but to get that you have to compile your own PHP, which could mess all sorts of things up

I'd like to know exactly why they don't use the bundled version of PHP's GD, there must be a good reason...
__________________
"Rest not, time is sweeping by. Go and dare before you die. Something mighty and sublime, leave behind to conquer time."
Randomskk is offline   Reply With Quote
Old June 25th, 2006   #7
Dingen
5 Cups of Ubuntu
 
Dingen's Avatar
 
Join Date: Jan 2006
Location: Netherlands, Europe
Beans: 16
Ubuntu 6.06
Re: PHP/GD-functions that need bundled GD don't work

I've e-mailed Adam and asked about the nature of the security issues with PHP's GD. I hope he replies.
Dingen is offline   Reply With Quote
Old June 25th, 2006   #8
Randomskk
Quad Shot of Ubuntu
 
Randomskk's Avatar
 
Join Date: Jan 2006
Location: Surrey; UK
Beans: 362
Kubuntu Intrepid Ibex (testing)
Send a message via AIM to Randomskk Send a message via MSN to Randomskk Send a message via Skype™ to Randomskk
Re: PHP/GD-functions that need bundled GD don't work

Cool, let me know if you get a reply

Thanks
__________________
"Rest not, time is sweeping by. Go and dare before you die. Something mighty and sublime, leave behind to conquer time."
Randomskk is offline   Reply With Quote
Old July 25th, 2006   #9
xurizaemon
Just Give Me the Beans!
 
xurizaemon's Avatar
 
Join Date: Oct 2005
Location: Piha, Waitakere, NZ
Beans: 71
Ubuntu 8.10 Intrepid Ibex
Re: PHP/GD-functions that need bundled GD don't work

worked for me by installing the package php5-gd (i'd been farting around trying to find "php-gd", silly me)
xurizaemon is offline   Reply With Quote
Old July 25th, 2006   #10
xurizaemon
Just Give Me the Beans!
 
xurizaemon's Avatar
 
Join Date: Oct 2005
Location: Piha, Waitakere, NZ
Beans: 71
Ubuntu 8.10 Intrepid Ibex
Re: PHP/GD-functions that need bundled GD don't work

for me, the AUTOMATIC THUMBNAILING in WORDPRESS on my UBUNTU DAPPER 6.06 didn't work until i installed the package PHP5-GD.

once i did that the automatic thumbnails on inline file upload in wordpress 2 (wp2) worked a treat. lovely stuff. thanks again ubuntu
xurizaemon is offline   Reply With Quote

Bookmarks

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 02:55 AM.


vBulletin ©2000 - 2009, Jelsoft Enterprises Ltd. Ubuntu Logo, Ubuntu and Canonical © Canonical Ltd. Tango Icons © Tango Desktop Project. bilberry