install/enable GD2 library ?


i have php gd installed and on the latest version but the script i am trying to install insists that i need to have GD2 enabled/installed, i looked everything, there’s nothing about GD2 or just extremely old posts

please help, thank you

Show comments

Submit an answer

This textbox defaults to using Markdown to format your answer.

You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!

Sign In or Sign Up to Answer

These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.

Want to learn more? Join the DigitalOcean Community!

Join our DigitalOcean community of over a million developers for free! Get help and share knowledge in Q&A, subscribe to topics of interest, and get courses and tools that will help you grow as a developer and scale your project or business.

PHP’s GD extension will be using the version of the GD library that is provided with your operating system. If you’re using a modern operating system such as Ubuntu 12.04 or 14.04, then you’ll be using GD2.

You can confirm the version of the GD library that PHP is using by checking the output of the PHP function phpinfo().

Alternatively, you can test this from the command line with with the command:

php -i | grep "GD Version"

On a server managed by ServerPilot where multiple versions of PHP are available, the command is slightly different as you need to specify which PHP version in the PHP command:

php5.6-sp -i | grep "GD Version"

The output will look something like this:

GD Version => bundled (2.1.0 compatible)