Installing PHP and PHP GD and Other Dependencies

Now to install PHP, PHP GD, and other modules and add-ons that help PHP integrate with your local server configuration type the command below.

yum install php php-gd php-common php-opcache php-mcrypt php-cli php-curl php-mysql –y

Output Screen 1:

 

Output Screen 2:

 

The command above will install PHP and PHP GD along with other modules that provide basic functionality to PHP. 

Output Screen 3:

 


How to Install PHP GD-library on CentOS?

GD is an open-source code library that helps to create and manipulate PNG, JPEG, and GIF images in PHP. GD is commonly used for the development of websites. Image resizing, cropping, drawing, and adding effects to dynamic rendering can easily be done with its help. Picture handling and GD capacities are utilized to make and control picture records in various picture designs including GIF, PNG, JPEG, WBMP, and XPM.

Important Features of GD

  1. We can create thumbnail images from very large images without any distortion.
  2. Resampling, Resizing, Cropping, Copying, and converting images to other extensions can also be done with its help.
  3. Line and Shape drawing, Filter, and Blending.

Similar Reads

Installing PHP GD in CentOS

If the PHP is not installed on CentOS or if we want to install the latest version follow the steps below:...

Installing PHP and PHP GD and Other Dependencies

Now to install PHP, PHP GD, and other modules and add-ons that help PHP integrate with your local server configuration type the command below....

Contact Us