Updated: 15 November 2026 · Applies to: DirectAdmin with CloudLinux PHP Selector, and DirectAdmin with CustomBuild PHP
On a DirectAdmin account with CloudLinux, you enable GD yourself in Select PHP Version: tick gd on the Extensions tab. On a server without CloudLinux, GD is part of the PHP build, so first check whether it is already loaded before changing anything.
The GD extension lets PHP create and edit images, for example thumbnails, image resizing in WordPress or WooCommerce, and captcha images. Without it, these features fail or show a "GD library not installed" type of warning.
Enable GD with CloudLinux PHP Selector
- Log in to DirectAdmin (usually
https://your-server:2222; the address is in your welcome email). - Open Select PHP Version (CloudLinux PHP Selector), usually found under Extra Features.
- Check the selected PHP version. According to CloudLinux, extensions are managed per PHP version, so choose the version your site runs on first.
- On the Extensions tab, tick
gd(and save if your screen has a save button). - Reload your website or plugin page. The change applies to that PHP version for your whole account.
If you do not see the Extensions tab, the server administrator may have hidden the extension list. Ask your host to enable GD for you.
Check whether GD is already loaded
On a server you manage, list the loaded PHP modules and look for gd:
php -m | grep -i gd
Output when GD is loaded:
gd
No output means GD is not loaded for that PHP binary. You can also create a phpinfo() page and look for a "gd" section; delete the page afterwards, because it shows details about your server.
If your server runs several PHP versions, check the one your site uses, for example /usr/local/php83/bin/php -m.
Servers without CloudLinux (CustomBuild)
According to DirectAdmin, the default PHP built by CustomBuild includes the most common modules, and extra extensions are added with CustomBuild rather than by hand. GD is not in DirectAdmin's list of separately built php_* extensions; it is switched on through PHP's own compile options. If php -m does not show it, check which configure file your PHP build uses, then rebuild PHP.
da build used_configs | grep 'configure\.php'
da build php
According to DirectAdmin, restart the web server and PHP-FPM after the rebuild, so do it at a quiet time. Custom compile options are outside DirectAdmin's standard setup and its technical support.
For server administrators: CloudLinux command line
According to CloudLinux, an administrator can enable an extension for one user and PHP version with selectorctl. Replace the version and username:
selectorctl --enable-user-extensions=gd --version=8.3 --user=alice
For changing the PHP version itself, see How to use DirectAdmin PHP Version Selector?.
Official documentation: DirectAdmin, PHP extensions and CloudLinux, command-line tools.