Enable Image Processing Extensions in PHP for localhost & in cPanel | Enable GD in PHP

Sdílet
Vložit
  • čas přidán 7. 02. 2022
  • In PHP you can create, manipulate and process image files in a variety of different image formats, including GIF, PNG, JPEG, WBMP, and more. You will need certain PHP libraries or extensions like GD or GD2, GraphicsMagick, ImageMagick and such. On a live PHP server in XAMPP, GD is usually installed. But if not, here is how you can enable extensions and libraries in PHP on localhost and on a live server.
    How to enable GD Library with XAMPP? I have a WordPress plugin that uses PHP extensions or libraries to process images. GD extension is disabled in it. To activate it, open XAMPP control panel and in front of APACHE click CONFIG button. Search for GD and uncomment it, remove semicolon before this line.
    You can enable other extensions listed here in same way. You can also go to XAMPP folder, then in PHP folder and edit php.ini file from there. Restart server or PHP services and check if GD extension is active now. yes, its enabled.
    For a live server like in CPanel, go to Software area and click at 'Select PHP Version'. Here you can select PHP version and enable / disable available extensions for it. GD library is enabled for me
    If you don't have it enabled, enable it to use it. You can enable other extensions like imagick and gmagick from here as well.
    If you are new to the channel, subscribe to learn more about web development, web application development, editing wordpress source code, how to create a website using wordpress, developing landing page in wordpress, working with child theme wordpress, custom wordpress theme development, wordpress plugin development, how to build a website with wordpress, create website with wordpress and related web development areas.
    Thank You!
    👍 LIKE VIDEO
    👊 SUBSCRIBE
    🔔 PRESS BELL ICON
    ✍️ COMMENT
    Channel: / webstylepress
    Website: www.webstylepress.com
    FaceBook: / webstylepress
    Twitter: / webstylepress
    GitHub: github.com/webstylepress
    #webstylepress #PHP #GD #ImageProcessing #GD2 #ImageFunctions #WebDevelopment #WordpressDeveloper #cpanel #localhost

Komentáře • 37

  • @Hystory227
    @Hystory227 Před měsícem +1

    This problem has bothered me for hours. Thank you so much from the bottom of my heart.

  • @davidsousa4469
    @davidsousa4469 Před rokem +2

    Simple and direct to the point! Thank you Sir you are a king!

  • @austin7061
    @austin7061 Před rokem +1

    This just fixed a problem I didn't know I had, thanks a ton!

  • @MuhammadYasir-nj3ry
    @MuhammadYasir-nj3ry Před rokem +1

    Simple and direct to solve problem! Thank you 😇

  • @razagofficial7369
    @razagofficial7369 Před měsícem

    Thank you so much ❤ It worked perfectly 😊

  • @p4vlost4nk63
    @p4vlost4nk63 Před rokem +1

    Thank you so much for the tip my friend!!!

  • @Maxwe11Z
    @Maxwe11Z Před rokem +1

    Very helpful! Thanks!

  • @muneebahmed4027
    @muneebahmed4027 Před rokem +1

    Thanks Bro
    I am very thankful to you.

  • @euzie66
    @euzie66 Před 11 měsíci +1

    Thank you very much for your help

  • @owaes8521
    @owaes8521 Před 11 měsíci +1

    thank you so much
    very helpful

  • @rayg7858
    @rayg7858 Před 10 měsíci +1

    thank you so much sir it very useful

  • @factorial.7
    @factorial.7 Před rokem +1

    Thank you so much sir 💕

  • @NiiOt
    @NiiOt Před rokem +1

    You are great bro

  • @eovando
    @eovando Před rokem

    What plugin are you using in the video to review active processes? Thank you!

  • @radubogdan5725
    @radubogdan5725 Před rokem +1

    Thank you!

  • @fulbertnaoudouwel1300
    @fulbertnaoudouwel1300 Před měsícem

    Hello, Good job, thanks for this usefull tutorial, Which version of xampp are you using. Mine contains only gd2 and my software can support only GD?

  • @flyestbaby
    @flyestbaby Před rokem +1

    Thank you.

  • @musyfikubaidillah3828
    @musyfikubaidillah3828 Před 17 dny

    Thans a lot man save my life

  • @b2s4x5
    @b2s4x5 Před 8 měsíci

    perfect it worked :)

  • @TheTimOlukayodeAjayi
    @TheTimOlukayodeAjayi Před rokem

    What I don't have "Select PHP version" on my cPanel. What other way can I get this done?

    • @webstylepress
      @webstylepress  Před rokem +1

      You may have it under different name or in different section. Or you may have limited options in your cpanel. You can ask your hosting provider.

  • @ondrasek6877
    @ondrasek6877 Před rokem +1

    thanks man😘

  • @Cognosceres
    @Cognosceres Před 2 lety +1

    worked!

  • @dar-ul-khuld
    @dar-ul-khuld Před rokem +1

    Great

  • @khaledalkelani4289
    @khaledalkelani4289 Před 2 lety

    thanks it run>>

  • @TECHRajmul007
    @TECHRajmul007 Před rokem +1

    Thanks Bro❤️

    • @webstylepress
      @webstylepress  Před rokem

      Plz give the video a like and subscribe to channel. It will help the channel.

  • @055kalyanibonde3
    @055kalyanibonde3 Před rokem

    It shows me extension=gd2
    What should I do

  • @Program_Code
    @Program_Code Před 3 měsíci

    Bro, how did you get to where you started?

    • @webstylepress
      @webstylepress  Před 2 měsíci

      sorry i did not get it? please can you expand on your question?
      in the life or in this code? or as a web developer?

  • @walkalone486
    @walkalone486 Před rokem

    I tried but it’s not working for me 😢

    • @webstylepress
      @webstylepress  Před rokem

      To enable image processing in PHP, you will need to have the GD library installed on your server. The GD library is a PHP extension that provides a set of functions for creating, manipulating, and converting images. To install the GD library on your server, you can use one of the following methods:
      Install the GD library using your package manager: Depending on your operating system and package manager, you can use a command like apt-get install php-gd (on Debian or Ubuntu) or yum install php-gd (on CentOS or Fedora) to install the GD library.
      Compile the GD library from source: If the GD library is not available through your package manager, you can download the source code from the GD website and compile it on your server. You will need to have the development tools and libraries (such as gcc, make, and libpng-dev) installed on your server in order to compile the GD library.
      Once the GD library is installed, you will need to enable it in your PHP configuration. To do this, you will need to edit the php.ini file and uncomment the line that reads extension=gd. You will then need to restart your web server in order for the changes to take effect.
      After the GD library is installed and enabled, you can use the GD functions in your PHP scripts to create, manipulate, and convert images.

    • @bilalmumtaz2535
      @bilalmumtaz2535 Před rokem

      @@webstylepress how to do this in windows??