Enable Image Processing Extensions in PHP for localhost & in cPanel | Enable GD in PHP
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
This problem has bothered me for hours. Thank you so much from the bottom of my heart.
Simple and direct to the point! Thank you Sir you are a king!
This just fixed a problem I didn't know I had, thanks a ton!
Simple and direct to solve problem! Thank you 😇
Thank you so much ❤ It worked perfectly 😊
Thank you so much for the tip my friend!!!
Very helpful! Thanks!
Thanks Bro
I am very thankful to you.
Thank you very much for your help
thank you so much
very helpful
thank you so much sir it very useful
Thank you so much sir 💕
You are great bro
What plugin are you using in the video to review active processes? Thank you!
please mention time / timestamp in video?
Thank you!
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?
v3.3.0
Thank you.
Thans a lot man save my life
perfect it worked :)
What I don't have "Select PHP version" on my cPanel. What other way can I get this done?
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.
thanks man😘
worked!
Great
thanks it run>>
Thanks Bro❤️
Plz give the video a like and subscribe to channel. It will help the channel.
It shows me extension=gd2
What should I do
enable it. use that extension.
Bro, how did you get to where you started?
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?
I tried but it’s not working for me 😢
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.
@@webstylepress how to do this in windows??