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 How to add Read More Read Less Button using JavaScript? #3 Solution to “TypeError: ‘x’ is not iterable” in Angular 9 #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

#Jan 17 4 advanced ways to search Colleague #Jan 16 Colleague UI Basics: The Search Area #Jan 16 Colleague UI Basics: The Context Area #Jan 16 Colleague UI Basics: Accessing the user interface #Jan 14 How to display a student’s individual transcript in Colleague? #Jan 11 How to install PuTTY on a MacOS?
You might also like these
INTERSECT and EXCEPT in PostgresPostgresThe unique operator($) in Envision BasicEnvision BasicSQL ANY OperatorSQL/MySQLFunction Scope in JavaScript for BeginnersJavaScriptQuick Introduction to 11 Array Iteration Methods in JavaScriptJavaScriptHow to insert Bootstrap 4 in Angular 9 app?AngularWhat is ECMAScript?JavaScriptHow to add Go Back button in Swift 5?SwiftVariables scope and shadowing in SCSS (Sass)SCSSSpecificity of attribute selectorsCSSEXISTS and NOT EXISTS in PostgresPostgresABS and NEG functions in Envision BasicEnvision Basic