Last updated 31 March 2010. Created on 5 August 2009.
Edited by rfay, Francewhoa, laura s, Anonymous (not verified). Log in to edit this page.

Get GD fully working version

Your Drupal 6 Status report page returns the following error

GD Image Rotation Low Quality / Poor Performance
The installed version of PHP GD does not support ...

Here is the steps for Ubuntu Server 8.04.x LTS, PHP5, Drupal 5.x or 6.x. It has also been found to work with Ubuntu Server 9.04. It will install a GD pre-compiled fully working version. It is a complete bundled (forked) GD libraries.

If not already done type in the following command in your TERMINAL to remove your current GD package and its configurations.

sudo apt-get --purge remove php5-gd

Add 2 lines at the end of your file /etc/apt/sources.list

deb stable all
deb-src stable all

Type in the following command in your TERMINAL to update your current apt-get list

apt-get update

Type in the following command in your TERMINAL to install the working GD package.

apt-get install php5-gd

Wait. When asked 'Do you want to continue' press Y key. Then press RETURN key.

When asked 'Install these packages without verification' press Y key. Then press RETURN key.

This is optional but you might want to make a backup of your php.ini file. Because it might be modify during the following steps. The php.ini file is located under /etc/php5/apache2/php.ini

Important note: If you have customized your php.ini file all your edits will be erase during the following steps. You will have to edit your php.ini file later. If you have not customized your php.ini file ignore this note and just go to next step.

When asked 'What would you like to do about php.ini?' select the 'MAINTAINER'S VERSION'. Press Y key. Then press ENTER key.

Wait. If successful TERMINAL will return 'ldconfig deferred processing now taking place'.

Type in the following command in your TERMINAL to restart your Apache.

/etc/init.d/apache2 restart

Go to to test it. GD line should have a green checkmark.

If it doesn't work restart your whole Ubuntu server. Wait a few minutes. Then test again.


Looking for support? Visit the forums, or join #drupal-support in IRC.


skizzo’s picture

Watch out for additional updates. On my Ubuntu 9.04 issuing "apt-get install php5-gd" from dotdeb repositories results in:

The following packages will be upgraded:
libapache2-mod-php5 php5-cli php5-common php5-mysql

Francewhoa’s picture

@skizzo: This is normal. Some packages have dependencies and require to install or update other packages to work properly. This process is automated and dependencies might vary depending on your current Ubuntu Server version. If you consider yourself an advanced user you can install the packages and dependencies manually. Otherwise the Ubuntu installer can do that for you automatically.

Loving back your Drupal community result in multiple benefits for you  
rfay’s picture

Sadly dotdeb approach unfortunately does not work with Ubuntu 9.10.

Happily, the entire problem is fixed in Ubuntu 10.04 - it works out of the box with Drupal.

Francewhoa’s picture

Information for Ubuntu 9.10 can be found at

Loving back your Drupal community result in multiple benefits for you  
Moya’s picture

This killed my Plesk-Install. Guess I will have to reinstall my server now.

skizzo’s picture

It may have updated much more than you wanted...

pixelmord’s picture

since my php5 version on ubuntu 8.04 was minor than the current 5.2.13 there was no need to first -purge and remove this.
Just adding the sources like described and then installing php5-gd after updating the packages-list worked fine for me. I also kept my old php.ini file. Everything runs fine now and status messages are green.

jjemmett’s picture

To use the dotdeb repository you need to add it's gpg key too.

mgifford’s picture

Now I really don't know anything about - - but I do not think that this is a great path to suggest for all D7 sites. For a production site there are security concerns with just adding a new set of sources for your packages.

ranavaibhav’s picture

Followed the instruction. Works like a charm!!!

Jackie Rana

Macronomicus’s picture

YMMV but using the debian stuff on my ubuntu server broke things for me when I tried it about a year ago... PECL for one ... I think there are enough differences between ubuntu/debian that this doesnt always work.

chmac’s picture

As at April 2011, this does not work on Ubuntu 8.04. The dotdeb repo is packaged for Debian, not Ubuntu, and there are all kinds of crazy package conflicts. See this comment on the dotdeb site.

I strongly recommend against following the steps in this article unless you know how to get yourself out of the mess you might land in.