Ayazmon
Ayazmon

Reputation: 1380

XAMPP PHP 5.6 and mongoDB : cannot recognize mongo driver

I installed XAMPP-Win32-5.6.11-0-VC11. In phpinfo() I can see that :

PHP Version : 5.6.11

PHP Extension Build : API20131226,TS,VC11

Apache Version : Apache/2.4.12 (Win32) OpenSSL/1.0.1m PHP/5.6.11

I downloaded PHP mongo drivers from here : Drivers

The zip files I have downloaded are :

php_mongo-1.6.4.zip
php_mongo-1.6.5.zip
php_mongo-1.6.6.zip
php_mongo-1.6.7.zip
php_mongo-1.6.8.zip

I tried :

php_mongo-1..-5.6-vc11.dll

php_mongo-1..-5.6-vc11-x86_64.dll

These 2 dll files but none of them worked. In phpinfo() I can't see the mongo extension. If I try to use nts(Not Thread Safe) files I get php5.dll not found error when I restart Apache server.

Can someone help me with this please?

Upvotes: 1

Views: 2373

Answers (2)

Ayazmon
Ayazmon

Reputation: 1380

Ok I finnaly solved the problem. When I had this problem I was using the xampp I dowloaded and it was the latest version.(xampp-win32-5.6.11-0-VC11-installer.exe) but I tried and older version(xampp-win32-5.5.27-0-VC11-installer.exe) and after going through same steps it all worked out. Now I can see mongo in my phpinfo() screen.

Upvotes: 1

Related Questions