Ubuntu Linux: Install or Add PHP-GD To Apache Web Server

The GD Graphics Library for dynamically manipulating images. You will need to compile PHP with the GD library of image functions for this to work. However. Ubuntu (and Debian) Linux comes with the package called php5-gd.
Just type the following command to install this module:

# apt-get install php5-gd
$ sudo apt-get install php5-gd
Finally, restart the Apache 2 web server, enter:

# /etc/init.d/apache2 restart

now, you can test your php application.How do I verify that php5-gd support loaded or not?

Type the following command at a shell prompt:

$ php5 -m | grep -i gd

Sample outputs:

$ php5 -i | grep -i –color gd
$ php -i | grep -i –color gd

About the author
Leave Comment

Your email address will not be published. Required fields are marked *

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <s> <strike> <strong>

clear formSubmit