Sunday 11 September 2022

Laravel error Solution - GD Library extension not available with this PHP installation

GD Library extension not available with this PHP installation C:\xampp\htdocs\abjobportal\ Intervention\ Image\ Exception\ NotSupportedExcep...

GD Library extension not available with this PHP installation

C:\xampp\htdocs\abjobportal\
Intervention\Image\Exception\NotSupportedException
GD Library extension not available with this PHP installation.

http://localhost/portal/public/profile 

This is because the GD Library is missing on your server For PHP 8.x

Intervention\Image\Gd\Driver::__construct

C:\xampp\htdocs\abjobportal\vendor\intervention\image\src\Intervention\Image\Gd\Driver.php:19



GD Library extension not available with this PHP installation


Find your (proper) php.ini file, and then find the line:enter image description here

;extension=gd, remove the semicolon in the front. ; means the line is commented, so remove the comment.

The line should look like this:

extension=gd

Then restart apache and you are ready to go.

NOTE: If You are using php version <=7.x

;extension=php_gd2.dll, itshould look like this: extension=php_gd2.dll


Do you need to install PHP GD Extension? Don't worry I got you. In this post, I will share with you how to install PHP GD Extension in your windows. This extension is important if you have the functionality to create and manipulate images in PHP. Kindly follow the simple steps below.

 

First, check if "php_gd2.dll" is already exists in your extension web server directory. If you're using Xampp you will find it here "C:\xampp\php\ext".

No comments:

Post a Comment