View Discussion
Improve Article
Save Article
View Discussion
Improve Article
Save Article
XAMPP is a free, easy-to-install Apache distribution containing MariaDB, PHP, and Perl. It allows you to build WordPress sites offline, on a local web server on your computer. It was first released in 2002. It is owned by Apache Friends and The PHP GD Graphics Library is a graphics software library for dynamically manipulating images. Its native programming language is ANSI C.
In this article, we will know how can we install PHP GD in Xampp.
Installing PHP GD in Xampp:
Follow the below steps to install PHP GD in Xampp:
Step 1: Openthe XAMPP Control Panel from the taskbar of your system.
Step 2: Start Apache & MySQL
Step 3: Click on Config of Apache
Step 4: Click on php.ini Which will further open a document file.
Step 5: Open that file search for extension=fileinfo
Step 6: Add extension=gd on the next line after extension=fileinfo and then save the file and close it.
Step 7: Again navigate to your Xampp control panel and restart the apache server.
That’s it Now PHP GD is successfully installed in your XAMPP.
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??
asked Apr 2, 2019 at 11:59
- go to php.ini file
- search this
;extension=gd
- remove
;
then restart the server
N69S
13.9k3 gold badges18 silver badges33 bronze badges
answered Jan 7, 2021 at 8:00
2
Under xampp/php/php.ini look for "extension=gd2" and uncomment it, I presume this what you looking for
answered Apr 2, 2019 at 12:07
marcoviemarcovie
2211 silver badge2 bronze badges
3
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.
zx485
27.5k28 gold badges51 silver badges55 bronze badges
answered Jul 1, 2021 at 7:35
1
- 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
answered Dec 11, 2021 at 21:21
infomasudinfomasud
1,22311 silver badges12 bronze badges
I had to add the absolute path to the extension as well:
extension=gd
extension=C:\xampp\php\ext\php_gd.dll
Tyler2P
2,24115 gold badges19 silver badges28 bronze badges
answered May 21 at 16:12
- 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
answered Aug 8 at 11:08
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
answered Sep 7 at 15:25