Activating GD Library with WHM

You may know that PHP assists with modifying HTML code but it can also create and manipulate image files including GIF, PNG, JPEG, WBMP, and XPM. For scripts to be able to do this you need to have GD Library installed on your server and fortunately this comes bundled with the latest versions of PHP. If you have recently installed a version of cPanel/WHM on your server you may need to activate GD Library to allow your image manipulation scripts to run.

If you are logged into have WHM and have root access you should be able to navigate to Software > EasyApache (Apache Update)

From here you can follow a fairly simple process to install GD Library.

Step 1. Click on the ‘Start Customizing based on profile’ button.
Step 2. Click next when selecting your Apache version.
Step 3. Click next when selecting your PHP version. 
Step 4. Click next when selecting you PHP minor version
Step 5. Click on the ‘Exhaustive Options List’ button
Step 6. This will bring up a long list of options. All you need to do here is select ‘GD’ as well as ‘TTF (FreeType)’

 

Once you are done just click the ‘Save and Build’ button at the bottom.

Your server will then re-compile Apache and PHP which will take a bit of time and can cause your server to go down momentarily.

Add a Comment