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
 

OR


 
$ 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:

 
   gd
 



OR


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



OR


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


No comments:

Post a Comment

How to Host a Laravel Project on Hostinger’s hPanel: A Step-by-Step Guide

How to Host a Laravel Project on Hostinger’s hPanel: A Step-by-Step Guide If you're looking to host a Laravel project on Hostinger’s hPa...