Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.

Zoul's avatar
Level 5

GD Library extension not available with this PHP installation.

Hi all, I even added this line extension=php_gd2.dll in php.ini and restared the server but nothing changed i still have this error

i have PHP Version 7.4.5 and windows OS

I appreciate your help !

0 likes
6 replies
bobbybouwmann's avatar

You can see if the extension is enabled by opening a page with the following code

<?php

phpinfo();

Did you also check if the php_gd2.dll file exists in the extension directory of PHP? If it doesn't exist there, enabling it in php.ini won't do a thing.

1 like
Zoul's avatar
Level 5

Hey @bobbybouwmann , thanks a lot for your help ! The php_gd2.dll extension is not directory of PHP. That's why i added but nothing changed

I don't see it the extension enabled , this code from configure command section might help you debug better

cscript /nologo /e:jscript configure.js "--enable-snapshot-build" "--enable-debug-pack" "--disable-zts" "--with-pdo-oci=c:\php-snap-build\deps_aux\oracle\x64\instantclient_12_1\sdk,shared" "--with-oci8-12c=c:\php-snap-build\deps_aux\oracle\x64\instantclient_12_1\sdk,shared" "--enable-object-out-dir=../obj/" "--enable-com-dotnet=shared" "--without-analyzer" "--with-pgo"

I appreciate your help !

bobbybouwmann's avatar

Wait what... What are you running here? I see JS. I see some PHP stuff?

1 like
Zoul's avatar
Level 5

I run Route::get('/phpinfo', function() { return phpinfo(); }); to check if the extension is enabled or not , that is what you asked no ?

Sinnbeck's avatar

Make a fine inside public called phpinfo.php

Add this inside and open it in the browser

<?php
phpinfo();
Zoul's avatar
Level 5

Hey @sinnbeck , thanks a lot for your help ! I did create phpinfo.php file and i could not see the php_gd2.dll extension there !

Please or to participate in this conversation.