Ubuntu add php gd support to Apache

Ubuntu add php gd support to Apache

PHP is used mainly in server-side application software along with various addons. I have recently signed up a virtual server from VSPLAND with pre-configured LAMP, however, the PHP5 doesn’t come with the GD support, which breaks my website. The GD Graphics Library is for dynamically manipulating images, and it is a core part of my photo gallery application. Luckily Ubuntu (and Debian) comes with package called php5-gd, which simplifies the solution to this problem. Just type following command to install this module:
apt-get install php5-gd
sudo apt-get install php5-gd
Restart Apache
/etc/init.d/apache2 restart
Now you can print out the phpinfo() to see whether GD library is enabled or not, or simply type in
php -m
to see whether gd is in the result list or not.


Leave a Reply

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

My new Snowflake Blog is now live. I will not be updating this blog anymore but will continue with new contents in the Snowflake world!