I am in the process of building a social site using Drupal and realized I didn’t have GD support for PHP5 installed on my server. I’m sure this is a common roadblock for people new to installing Drupal or even just PHP so here is what you need to do:

Open terminal and type in the following command:

$ sudo apt-get install php5-gd

Now restart Apache

# sudo /etc/init.d/apache2 restart

There you go, you now have GD Support for PHP5 in Ubuntu. Get your Drupal on!