Linux Stuff && Coffee

How to Install Ubuntu PHP GD

| Comments

How to install PHP GB on Ubuntu using apt-get, specifically php5-gd.

To install PHP GD on Ubuntu enter the following command:

sudo apt-get install php5-gd

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.

sudo /etc/init.d/apache2 restart

Check that GD is loaded using a phpinfo script.