AncientSpice
AncientSpice

Reputation: 85

How Do I Enable PHP Extensions (Windows, Drupal, MAMP)?

I'm on Windows 11, trying to install Drupal 9 after installing and running MAMP. I'm getting the following error when I reach the "Verify requirements" step for Drupal's installation:

"PHP EXTENSIONS

Disabled

Drupal requires you to enable the PHP extensions in the following list (see the system requirements page for more information):

When searching how to fix this, I was only able to find solutions related to WAMP and XXAMP. I've looked through every PHP.INI file in the "MAMP/conf" folder (there is a folder for each version of PHP), and every single one already had "extension=php_gd2.dll" without the semicolon in front, so I'm not sure why I keep getting this error when I attempt to install Drupal 9.

Upvotes: 3

Views: 8284

Answers (3)

Grrrothie
Grrrothie

Reputation: 1

Follow steps:

  • Search for the line ; Directory in which the loadable extensions (modules) reside.
  • 4 lines beneath this remove the semicolon from the line
    extension_dir = "ext"
    
    also, restart Apache

Upvotes: 0

Sasha Kravets
Sasha Kravets

Reputation: 11

Simply add a new line "extension=php_gd.dll" (not gd2.dll) to the php.ini in the end of 'Dynamic Extensions' part

Upvotes: 1

Virendra Soni
Virendra Soni

Reputation: 61

Open your php.ini file and search "gd" enable it like this

;extension=gd (Remove ";" and save file) "extension=gd"

Save file and Restart apache & check phpinfo();

http://www.webassist.com/tutorials/Enabling-the-GD-library-setting

https://php.watch/versions/8.0/gd2-gd-windows

Upvotes: 6

Related Questions