Install PHP GD Support to Apache on Ubuntu

Linux Server Management Tips and Tricks
Post Reply
arnlweb
Site Admin
Posts: 92
Joined: Wed Jun 22, 2016 1:28 pm
Location: India
Contact:

Install PHP GD Support to Apache on Ubuntu

Post by arnlweb » Thu Oct 05, 2017 7:43 am

GD library is used to process and manipulate images file in PHP. Just follow some simple steps to enable GD extension on Ubuntu 14.04.

Open the Terminal/SSH and type the following command.

Verify first PHP GD Support is enabled or not.

Code: Select all

php -i | grep -i --color gd
If GD library is installed You’ll see the output like

Code: Select all

# php -i | grep -i --color gd
/etc/php5/cli/conf.d/20-gd.ini,
gd
GD Support => enabled
GD Version => 2.1.1-dev
gd.jpeg_ignore_warning => 0 => 0

Install GD library

Code: Select all

sudo apt-get install php5-gd
Enable GD library

Code: Select all

sudo service apache2 restart

Post Reply