Hi everyone. I'm using XAMPP (default configuration # Apache 2.2.4 # MySQL 5.0.33 # PHP 5.2.1 & PHP 4.4.5) and when i try to install drupal i get this message:

___________________
PHP MySQL support not enabled

We were unable to use the MySQL database because the MySQL extension for PHP is not installed. Check your PHP.ini to see how you can enable it.

For more help, see the Installation and upgrading handbook. If you are unsure what these terms mean you should probably contact your hosting provider.
__________________
-I've configured in php.ini, extension_dir = "C:\Program Files\xampp\php\extensions"
-extension=php_mysql.dll is not commented.
-I've also try to move de php folder in C:\php, change the extension_dir, but still doesn't work.

I've checked the other topics with this "problem" and nothing there helped so i was wondering if some of you guys use drupal with xampp and can help me with advices. thanks in advance.

Comments

gonefishing’s picture

Have you made a phpinfo page to see if the extensions are installed?

phpinfo();

Apache and Mysql are running right?

brie.mihai’s picture

Server API Apache 2.0 Handler
Virtual Directory Support enabled
Configuration File (php.ini) Path C:\Program Files\xampp\apache\bin\php.ini
PHP API 20041225
PHP Extension 20060613
Zend Extension 220060519
Debug Build no
Thread Safety enabled
Zend Memory Manager enabled
IPv6 Support enabled
Registered PHP Streams php, file, data, http, ftp, compress.zlib
Registered Stream Socket Transports tcp, udp

Extensions seem ok. Apache, MySQL are running.

mc.edwards’s picture

Hi
I'm running Apache 2.2.4 # MySQL 5.0.33 # PHP 5.2.1 on XP (all installed separately using installers not manual). I couldn't get extensions to work (gd2/mbstring) so I reinstalled php and got installer to install the extensions - I also put it under C:\php rather than 'program files' as I'd seen issues on forums raised about spaces in path names. I also say something about php 5.2 not linking quotation marks in extension_dir="C:\php\ext" so I took them out. I solved the extensions problem but got your MySQL problem. I noticed that the path environment variable was set to C:\program files\php. So I rebooted and, after about 5 days of grappling with this stuff, it works!
I hope this offers some hope.
Mark

gonefishing’s picture

Is the installation looking for php4 or 5 extensions? Try the following url: http://drupal.org/node/122174
(Added)
Isn't there a way to select which version of php you want to use?