I Can't figure out how to install php-gd for PHP7.2. Is there any way to install/enable GD extension in xampp windows? I checked the php.ini file for php_gd2.dll but I can't find that line. It seems like GD is missing in PHP7.2. Any suggestions??
- go to php.ini file
- search this
;extension=gd
- remove
;
then restart the server
Under xampp/php/php.ini look for "extension=gd2" and uncomment it, I presume this what you looking for
8 steps:
- Open xampp control panel.
- Start apache and mysql.
- Click on config option of apache.
- Click on php.ini and open it.
- Press Ctrl+F and search "extension=" or "extension=fileinfo".
- On the next line to "extension=fileinfo", add "extension=gd".
- Save the file.
- Stop apache and restart it.
You are done.
My PHP version is 8. if yours is 7 you may need to add extension=gd2 in php.ini
file.
You can see your PHP version by searching for "localhost/dashboard" in the browser and then clicking on "PHPinfo" at the top right.
if ";extension=gd" is already there, remove the semicolon and save the file and restart Xampp.
- open XAMPP control panel
- click Apache config select PHP(php.ini)
- ctrl + F , so search for gd
- you should see a line like
;extension=gd
- just remove
;
and save it - stop apache and restart
- Your XAMPP now has GD enable
Also for windows user if you have multiple xampp installed check which php ini is being used by composer by using command
php --ini
if its not the one you are using u can try uninstalling the undesired one and then trying again
I had to add the absolute path to the extension as well:
extension=gd
extension=C:\xampp\php\ext\php_gd.dll
- open xampp
- in apache server click config - php.ini
- go to php.ini file
- ctrl + f to search this ;extension=gd
- remove ; then restart the server
What worked for me on XAMPP version 3.3.0 running PHP v 8.0.30:
- Started the XAMPP server.
- Clicked on the
Admin
tab of the Apache module in the XAMPP interface. - Clicked to open the
php.ini
file. - Searched for
(Ctrl + F)
the keywordextension=gd
. - Uncommented the line where the keyword
extension=gd
appeared, by removing the semi-colon;
at the beginning of the line. - Stopped and restarted both the Apache and MySQL modules on the XAMPP server application window.
Issue was resolved thereafter!!! Continue your development work!!!
© 2022 - 2024 — McMap. All rights reserved.