How to enable GD Library

My first basic PHP tutorial. Pretty simple tutorial on enabling the GD support extension. PHP 4.3.x and higher by default has GD support included but may not be enabled. First thing to do is to check with phpinfo(), if you don’t see GD support, then we need to enable it.

Simply open your php.ini and uncomment extension=php_gd2.dll


Next check the extension_dir and edit to your php directory.

extension_dir = C:\php\extensions\

Edit the path accordingly to where the php_gd2.dll file is found in the php directory.
Save and restart Apache. GD should now be enabled.