How to install PHP GB on Ubuntu using apt-get, specifically php5-gd.
To install PHP GD on Ubuntu enter the following command:
Check the packages Apt needs to install and press Y then enter.
Apt will then pull down all the packages that php5-gd depends on and install them, you will need to restart Apache for PHP GD to load.
Check that GD is loaded using a phpinfo script.