Click to See Complete Forum and Search --> : Unable to initialize module


zrichardson
12-16-2005, 09:52 PM
I'm having a problem with my installation of PHP 5.1.1 on my Windows 2003 Server box using IIS 6. I installed PHP via the manual installation method and followed the install instructions verbatim from www.php.net. As long as I'm not enabling any extensions within php.ini, then everything works great. But as soon as I uncomment one of the extensions, I get the following error:
Warning: Unknown(): (null): Unable to initialize module
Module compiled with module API=20050922, debug=0, thread-safety=1
PHP compiled with module API=20020429, debug=0, thread-safety=1
These options need to matchI get one of these errors for each extension that I enable. I have the extension_dir variable set correctly, and I have the directory where php is installed in the PATH variable, so I'm not quite sure why this keeps happening.
The PHP installation I downloaded was the newest one right off of www.php.net, so I'm wondering why this error message would pop-up.

Any help would be most appreciated.

Thanks.

Webmist
12-19-2005, 02:37 AM
I had this same problem with using mysql extentions and them realized I didn't compile them to work with php. So mine was a simple fix, hope this helps.

Follow this link and check out the extension you are uncommenting
http://www.php.net/manual/en/install.windows.extensions.php

zrichardson
12-20-2005, 04:21 PM
What do you mean compile them to work with PHP? I just downloaded the ZIP file that contained the extensions, so I shouldn't have to compile anything, right?

JonHyde
04-25-2007, 09:17 AM
Hey Z richardson,

we have exactly the same problem - those error messages crop up as soon as we enable a PHP extension.

Did you ever find a fix?

Cheers,
Jon.