Our blog

 

Ubuntu + PHP + GD + Solution

If you are using PHP5 on Ubuntu and are having strange issues with missing functions including imagerotate() then you have come up against the problems created by the Ubuntu/Debian packagers decision not to include the GD library included with PHP5 but instead include a more purist version of the GD library which unfortunatley has some missing components.

Check out this blog story for the solution

More Reading:

One Comments

admin
September 2nd, 2009

another solution which I found a bit easier but might not be OK with Ubuntu purists is to add the dotdeb repositories to your sources. They are running a much more up to date version of PHP and with a full fat version of GD

first you need to add the sources:

CODE:
  1. deb http://packages.dotdeb.org stable all
  2. deb-src http://packages.dotdeb.org stable all

to edit your sources you can use

CODE:
  1. sudo gedit /etc/apt/sources.list

and paste those two lines somewhere at the bottom.

Once that's done, run these commands one after the other:

CODE:
  1. apt-get update
  2. apt-get upgrade
  3. apt-get install php5 php5-common php5-cli
  4. reboot

It will ask you if you want to overwrite your existing configuration files.

I chose to overwrite them as I know that my edits are pretty small and can easily be redone, its more important to me to have an up to date config file that fits the version I am running.

I think its a real shame that Ubuntu has made this decision to not support such a core piece of the PHP puzzle.

 

 

Leave a Reply