Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

I'm trying to install Oscommerce which requires mysql and php. I already have PHP set up and I have installed Mysql but when i run php phpinfo() i get the following error.

C:\Documents and Settings\Administrator>php phpinfo()
PHP Warning:  PHP Startup: mysql: Unable to initialize module
Module compiled with module API=20060613, debug=0, thread-safety=0
PHP    compiled with module API=20060613, debug=0, thread-safety=1
These options need to match

Does anyone know why i am getting these errors? I've already configured the php.ini file

share|improve this question
add comment

1 Answer

up vote 0 down vote accepted

It looks like you are using the thread safe version of PHP but the MySQL module you are using is not thread safe. Try installing the thread safe version of the MySQL PHP module.

If you can, try not using Windows. Most of the software you are trying to run was originally written for unix type OSes. Everything would run quite smoothly.

That being said, I am running PHP on a Windows server to get data out of the SQL Server db. When installing this, I used a service from Microsoft. I think it was this: http://www.microsoft.com/web/platform/phponwindows.aspx

MySQL database drivers were included.

share|improve this answer
    
Thanks I ended up doing a complete reinstall of the binaries zip from windows.php.net/download and it all worked fine. –  syl Feb 6 '11 at 11:35
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.