GD is a graphics drawing library that provides tools for modifying image based data. Thus, GD PHP extension allows user to manipulate and create files of various image formats. Today in this tutorial, I will illustrate the procedure to enable GD PHP extension for all PHP versions in cPanel/WHM.
You can easily enable GD-php extension from WHM by following the below mentioned steps.
Login to WHM as root.
Go inside Software section and choose Easy Apache4 from the list.
You will be directed to next page where you will find multiple options. Move to Currently Installed Packages and click over Customize.
On the next page, list of features will appear. Scroll to PHP Extensions and type gd in the search box as directed.
List of gd extension with all php-versions will appear.
Enable the one as per your requirement. Scroll the button given next to php version to enable gd php extension.
Click over Next and proceed. You will see the following message; Preparing selected packages for review....
After this, you will be directed Review section. Review the changes, click over Provision and proceed.
The message appears; Provision process started. It will take few seconds.
After completion of the process, you will see a message that says; Provision process is complete.
Thus, with the above given steps, you have successfully enable GD PHP extension for all PHP versions.
#2. How to Install GD PHP version from SSH?
You can install GD PHP Extension from SSH as well. For this, login to SSH with root credentials and execute the following command as directed.
For Ubuntu Linux Server, run the following command.
For CentOS Linux Server, execute the below given command.
yum install gd gd-devel php-gd
*If your server already have GD PHP installed, then you will see the message, that says Nothing to do.
That’s It !
Hope the article better describes the procedure to enable GD PHP extension for all PHP versions in cPanel/WHM”. Do share it with your colleagues if you find it working. Also share your suggestions and drop your queries to start the discussion on the related topic. Lets connect on social media with the below links.