You can enable this module by creating a symbolic link from
/etc/php-5.2.sample/gd.ini to
/etc/php-5.2/gd.ini. As root:

    ln -sf /etc/php-5.2.sample/gd.ini /etc/php-5.2/gd.ini
