Report this

What is the reason for this report?

How do I install the GD library on my Droplet?

Posted on August 31, 2014

I have a Droplet running Ubuntu 14.04. I tried to install the GD library using sudo apt-get install php5-gd and it seemed to install fine. I restarted the Apache2 service, but my image upload script still gives this error:

Call to undefined function imagecreatefrompng()

Are there any additional steps I need to take before the GD library is available to my PHP scripts?

The developer cloud

Scale up as you grow — whether you're running one virtual machine or ten thousand.

Start building today

From GPU-powered inference and Kubernetes to managed databases and storage, get everything you need to build, scale, and deploy intelligent applications.