1

I'm using Apache 2.2 along with Windows 7. I just need to enable MySQL extension to work. Its okay when I'm using windows binary (.msi). But when I'm trying with .ZIP file, MySQL extension is not working. I have un-commented the extension in php.ini. But the error still presists.

Would anyone have suggestions for how to fix that?

8
  • 2
    What error? (And why are you using mysql anyway? It's been deprecated in favor of mysqli and pdo_mysql for years) Dec 1, 2011 at 16:30
  • Did you check that the path of the extension exists? maybe you enabled it but the .dll is missing.
    – SeRPRo
    Dec 1, 2011 at 16:31
  • Do a phpinfo() to make sure you've edited the correct php.ini
    – Mark Baker
    Dec 1, 2011 at 16:34
  • I'm trying to install wordpress. so that its needed to enable MySQL extension. @BillyONeal
    – Zareef Hasan
    Dec 1, 2011 at 16:38
  • Yup, i did called phpinfo() for that. The directory is C:\Program Files\PHP\php.ini @MarkBaker Dec 1, 2011 at 16:45

1 Answer 1

2

Probably your php.ini isn't configured correctly. Even if it is I have seen instances where I had to copy the .dll's to the same dir as the php.exe.

Definitely make sure that extension_dir is set correctly and that enable_dl = On in the .ini file, and use phpinfo() to check.

0

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .