How to enable gd2.dll in Ubuntu

2010-07-09

If you want this function enable (gd2.dll) in ubuntu.This extension seems like extension=php_gd2.dll // For Windows gd.so // for Linux This function comes by default in windows but in my case for linux box (ubuntu). This function doesnot comes by default. For this to integrate with php.ini in linux you need to install the package php5-gd. For this for go to your terminal and type following command.

aptitude install php5-gd

Then restart the apache by typing

/etc/init.d/apache2 restart

Hope it works now. To see the php modules installed in ubuntu. Type “ /usr/lib/php5/20060613+lfs “ in terminal. Thanks for visiting.