Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

PHP doesn't see mysql extension

Tags:

php

mysql

I'm at a loss. I'm on WIndows 7 and have installed both Apache 2.2.21 and PHP 5.2.17. I can not enable the mysql module. Is there a known issue on Windows 7?

I've run php --info and see the following:

C:\php>php --ini
Configuration File (php.ini) Path: C:\WINDOWS
Loaded Configuration File:         C:\php\php.ini
Scan for additional .ini files in: (none)
Additional .ini files parsed:      (none)

I've also set my extension dir inside php.ini:

extension_dir = "C:\php\ext"

I've also added an entry to my httpd.conf file:

# configure the path to php.ini
PHPIniDir "c:/php"

And yes, inside my php.ini file I've enabled the php_mysql extension and restarted my web server.

What am I missing?

like image 702
user1216398 Avatar asked Feb 17 '12 14:02

user1216398


1 Answers

Have you tried forward slashes here?

extension_dir = "C:/php/ext"

It worked for me.

like image 198
Pavel Avatar answered Nov 02 '22 23:11

Pavel