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 Solution to the error “Visual Studio Code can’t be opened because Apple cannot check it for malicious software” #2 How to add Read More Read Less Button using JavaScript? #3 How to check if radio button is checked or not using JavaScript? #4 Solution to “TypeError: ‘x’ is not iterable” in Angular 9 #5 How to uninstall Cocoapods from the Mac OS? #6 PHP Login System using PDO Part 1: Create User Registration Page

Recently Posted

#Apr 8 JSON.stringify() in JavaScript #Apr 7 Middleware in NextJS #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
You might also like these
How to verify your domain in Google Console with a TXT record?MiscellaneousContainers 101: What are containers?MiscellaneousHow to create a multisite network in WordPress?WordPressNATURAL JOIN in PostgresPostgresHow to calculate elapsed time in JavaScript?JavaScriptA list of wp-cli commands to use via SSHWordPressHow to merge arrays in JavaScript?JavaScriptHow to get the height and width of an element using JavaScript?JavaScriptHow to add and remove capabilities from a role in WordPress?WordPressthe box-sizing property in CSSCSSThe unique operator($) in Envision BasicEnvision BasicHow to change CSS with jQuery?CSS