Install gd library php xampp

View Discussion

Improve Article

Save Article

  • Read
  • Discuss
  • 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

    1. go to php.ini file
    2. search this ;extension=gd
    3. 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:

    1. Open xampp control panel.
    2. Start apache and mysql.
    3. Click on config option of apache.
    4. Click on php.ini and open it.
    5. Press Ctrl+F and search "extension=" or "extension=fileinfo".
    6. On the next line to "extension=fileinfo", add "extension=gd".
    7. Save the file.
    8. 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

    1. open XAMPP control panel
    2. click Apache config select PHP[php.ini]
    3. ctrl + F , so search for gd
    4. you should see a line like ;extension=gd
    5. just remove ; and save it
    6. stop apache and restart
    7. 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

    1. open xampp
    2. in apache server click config - php.ini
    3. go to php.ini file
    4. ctrl + f to search this ;extension=gd
    5. 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

    Not the answer you're looking for? Browse other questions tagged codeigniter gd or ask your own question.

    How to Install GD extension in PHP Xampp?

    Follow the below steps to install PHP GD in Xampp:.
    Step 1: Open the 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. ... .
    Step 5: Open that file search for extension=fileinfo..

    How do I install or enable PHP's GD extension?

    To install the PHP GD follow the following steps:.
    Step 1: Install XAMPP in your windows system..
    Step 2: Verify if GD is already installed or not. ... .
    Step 3: Locate and open php. ... .
    Step 4: Find ;extension=gd..
    Step 5: Remove semicolon from ;extension=gd and save the file..
    Step 6: Go to php folder. ... .
    Step 7: Look for php_gd..

    What does PHP GD do?

    GD is an open source code library for the dynamic creation of images. GD is used for creating PNG, JPEG and GIF images and is commonly used to generate charts, graphics, thumbnails on the fly.

    How do I enable imagick PHP extension in xampp?

    Install.md.
    Visit ImageMagic installation directory and module/coders copy all files and past on D:\xampp\apache\bin..
    Exatract and copy php_imagick.dll to D:\xampp\php\ext..
    Add php_imagick.dll on php.ini..
    Copy 8 CORE_*.dll to D:\xampp\apache\bin..
    Restart Apache..
    done and visit phpinfo..

    Chủ Đề