Hi there,

I'm trying out Drupal 7 on a Windows 7 machine. I'm having a few problems installing though. On the installation page I get the following error:

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

Database support	Disabled
Your web server does not appear to support any common PDO database extensions. Check with your hosting provider to see if they support PDO (PHP Data Objects) and offer any databases that Drupal supports.

As far as I can tell I've enabled gd - I've removed the comment from php.ini enabling the line "extension=php_gd2.dl", and the php_gd2.dll is present in the /ext folder.

I'm using MySQL 5.1 which I think supports PDO. Also Apache 2.2 if that's helpful.

Can anyone advise? I've googled quite a few instances of this problem but couldn't find any with a solution.

appreciate the help!

Comments

S@ilor’s picture

Hi,

You want a LAMP stack. Have you tried XAMPP? DL here: http://www.apachefriends.org/en/xampp.html

-- Christian

gdeller’s picture

Having the same problem on Drupal 8.x.

Anyone have an answer as to why this is occurring?

ENVIRONMENT:

Manually installed Apache 2.4.4 (working fine)

MSI installed MariaDB 5.5 (working fine)

Manually installed PHP 5.4.14 (working fine):
extension=php_mbstring.dll
extension=php_gd2.dll
extension=php_pdo_mysql.dll

Drupal 8.x seems to know about MySQL (have not got to Set up database)

but fails on Verify requirements:

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

Database support Disabled
Your web server does not appear to support any common PDO database extensions. Check with your hosting provider to see if they support PDO (PHP Data Objects) and offer any databases that Drupal supports.

Is there another PHP / Apache setting I need to know about?

Thanks

John_B’s picture

I am assuming, since you post in this thread and are enabling the extensions as .dll files, that you are working on a Windows machine. Why not save yourself the trouble and install a Linux VM or one of the numerous other dev environments, or even a ready-made WAMP / XXAMP rather than trying to manuallly set up Apache on Windows?

But in order to get it working, did you check with a phpinfo file or the php -i command that the extensions are in fact getting loaded? If they are not you might go to the directory where the extensions should reside (according to the extensions directory set in php.ini) and make sure they extension files are present there, as pointed out here http://php.net/manual/en/pdo.installation.php. In my experience on Linux servers it is easy enough to get them in the wrong directory, so they are not found when Apache starts.

Digit Professionals specialising in Drupal, WordPress & CiviCRM support for publishers in non-profit and related sectors

gdeller’s picture

in php.ini: explicit declaration solved the problem.

extension_dir = "c:/php/ext"

(note: I knew this ... but missed it in this new install)

Francewhoa’s picture

Another solution for "PHP extensions Disabled" GD at https://www.drupal.org/node/2386065

Loving back your Drupal community result in multiple benefits for you  
Surya1988’s picture

After installing the php extensions you should restart the apache2 server to see the necessart changes

enter the followind command in the terminal for ubuntu 16.04 lts drupal installation

sudo /etc/init.d/apache2 restart