YogeshChauhan . com

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:


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 How to Use SQL MAX() Function with Dates? #6 PHP Login System using PDO Part 1: Create User Registration Page

Recently Posted

Jun 16 What are Stored Procedures for SQL Server? Jun 16 What are Class Constants in PHP? Jun 15 A short basic guide on states in React Jun 15 How to define constants in PHP? Jun 15 How to define visibility for a property in PHP? Jun 15 How to use @if and @else in SCSS?

You might also like these

How does Binding work in JavaScript?JavaScript12 URLSearchParams methods in JavaScriptJavaScriptHow to create a full screen loader using CSS and JavaScript?CSSHow to create a Star Ratings using CSS?CSSCommon Table Expressions (CTE) in PostgreSQLPostgresHow to add and remove list items using JavaScript?JavaScriptHow to Draw a Circle in HTML5 Using Canvas Tag?HTMLHow to add recaptcha version 3 to PHP website?PHPHow To Create a Fullscreen Background Video using CSS and JavaScript?CSSUnderstand Inheritance in PHP in this Basic Example (For Beginners)PHPHow to create a simple drop down menu using JavaScript and CSS?CSSHow to enable and disable button using JavaScript?JavaScript