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 am running a W2K3 x64 server with IIS 7 + FastCGI + PHP 5.3 (x64) I have trouble geting the SQL for php driver to work. It seems it doesn't get loaded, but no error is thrown.

I've doublechedked the php.ini a multitude of times and I'm pretty sure I use the right version of the sql for php driver (version 1.1 CTP) and sql native client x64 is installed.

Any ideas what could be wrong?

Thanks

share|improve this question
1  
Dumb question: What's phpinfo() say? –  Karl Katzke Sep 18 '09 at 13:19
    
It says nothing about sqlsrv at all, as it weren't loaded. ANd fact is it wasnt. Later when checking the logs it clearly stated that it failed to load the sqlsrv module due to it being x86 while php was running x64. –  Jonas B Sep 18 '09 at 14:09
2  
Then there's your answer. ;) Step 1: Check debug output (in this case, phpinfo). Step 2: Check logs. Step 3,to be performed only after steps 1 and 2: Post to serverfault! –  Karl Katzke Sep 28 '09 at 17:27
add comment

2 Answers

Found out and confirmed that the php sql driver won't work with x64 builds of PHP. It works fine with x86 php build on x64 operative systems however.

share|improve this answer
    
that makes sense... –  djangofan Nov 25 '09 at 1:15
add comment

I've run into similar problems caused by msvcrt.dll not being in a directory that the php engine could access. I solved it coping msvcrt.dll to the php directory for my install.

You might also look at MSSQL Requirements @ Php.net

share|improve this answer
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.