Yogesh Chauhan's Blog

How to enable GD library support for PHP on windows server?

in PHP on May 10, 2020

Just follow the steps:

Step 1:

Go to your PHP folder where your PHP files and extensions are located.

In most cases the location is C:PHP.

Step 2:

Open extensions folder and make sure that php_gd2.dll file is present in it.

If the file is there, skip to step 5.

Step 3:

You need to download the file mentioned in step 2 from http://php.net/

Step 4:

Copy the file in the extensions folder.

Step 5:

Open php.ini configuration file.

It's in C:PHP.

Choose either the php.ini – development or php.ini – production file, and rename it php.ini. (renaming is optional)

Step 6:

Enable php_gd2.dll extension from php.ini configuration file.

Step 7:

You can verify extension-dir through PHP info script.

If you don't have it already, just add the following code in a PHP file and save it as phpinfo.php.

Code for PHPinfo script:


phpinfo();

Step 8:

Restart the IIS web server.


Most Read

#1 How to check if radio button is checked or not using JavaScript? #2 Solution to “TypeError: ‘x’ is not iterable” in Angular 9 #3 How to add Read More Read Less Button using JavaScript? #4 How to uninstall Cocoapods from the Mac OS? #5 PHP Login System using PDO Part 1: Create User Registration Page #6 How to Use SQL MAX() Function with Dates?

Recently Posted

#Aug 15 Is PHP still good for back-end programming? #Aug 10 How to create a multisite network in WordPress? #Aug 3 How to create a circle that follows a cursor using JavaScript and CSS? #Aug 3 How to make a curtain slider using jQuery and CSS? #Aug 2 How to progressively load images and add a blurry placeholder? #Aug 1 How to create a placeholder loader (throbber) using CSS?
You might also like these
How to remove trailing characters from a string using JavaScript?JavaScriptHow to add a scroll back to top button using JavaScript and CSS?CSSEssential SQL Commands We Need to KnowSQL/MySQLSQL Inner JoinSQL/MySQLHow different is Handling Events in React vs HTML DOM?ReactHAVING Clause in Postgres with Examples in All Aggregate FunctionsPostgresMIN, MAX, COUNT, AVG and SUM in SQLSQL/MySQLHow to create an empty array in Swift?SwiftAn Example of Cross-site Scripting (XSS) Attack in PHP and How to Avoid It?PHPHow to use @supports rule in CSS?CSSSequence generator (range) using JavaScript Array.from()JavaScriptHow to Draw a Text Image using JavaScript?JavaScript