To enable the GD extension in PHP, you will need to install the extension and then enable it in your PHP configuration file.