You can use CloudLinux Selector to enable GD extension in PHP via cPanel.
1. Log in to your cPanel account.
2. In the Software section, click on Select PHP Version.
![]()
3.Under the Account Global Settings, go to the Extensionstab.

Note: If it shows an error related to the Native PHP version, change to a non-Native PHP version first.
4. Checkmark the GD. Once enabled, it will display a success message.

The message will read that the module GD is saved.
Note: This tutorial covers enabling the GD module on all domains. To enable it for an individual domain, go to Per Domain Settings, click on the Per Domain option, and then select GD for the domain you wish to enable it on.