Thursday, April 16, 2015

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


  1. My friend Suggest me this blog and I can say this is the best blog to get the basic knowledge.Thank you so much for this Selenium Training in Chennai

  2. Well explained. Got to learn new things from your Blog on Coded UI.Coded UI Training in Chennai

  3. SAP MM,SD, real Time Training in Chennai
    We provides Best SAP MM,SD Training in Chennai wih real time project assistance by our leading Materail Management Consultant.
    For Free Live Demo @ Call to 8122241286.
    SAP MM
    SAP SD


Related Posts Plugin for WordPress, Blogger...