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

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