@Doga your web server might run a different PHP than your CLI...
Try this route and see there if GD is enabled.
Route::get('/phpinfo', function() {
return phpinfo();
});
Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.
I'm currently trying to upload images with (Laravel 5.4) intervention.
Every time I post:
GD Library extension not available with this PHP installation.
I've already tried
sudo apt-get install php7.0-gd
And checked
php -i | grep -i gd
Which is outputting
gd
GD Support => enabled
GD headers Version => 2.2.3
GD library Version => 2.2.3
gd.jpeg_ignore_warning => 0 => 0
Cloud9 is the IDE that I'm using.
Does anybody have a clue what's wrong here?
@Doga in the phpinfo() output, is the PHP version also 7?
php.ini, so extension=php_gd2.dll is uncommentedPlease or to participate in this conversation.