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

GitHub repository using Git Bash command

  To add a project to a GitHub repository using Git Bash command line, you can follow these steps: Create a new repository on GitHub by logg...