Anirudh Gooner Anirudh Gooner - 26 days ago 11
PHP Question

Unable to install MongoDB PHP driver on XAMPP Windows

I am using Windows OS (64-bit) and running XAMPP(PHP 5.4.7). I tried installing the PHP MongoDB Driver but it is not reflecting on the phpinfo() page.

I followed the same steps as listed:


  1. I downloaded php_mongo-1.3.2RC1.zip (latest one) from https://github.com/mongodb/mongo-php-driver/downloads

  2. I extracted the folder and copied the
    php_mongo-1.3.1-5.4-vc9.dll
    file and pasted in
    C://XAMPP/php/ext/
    .
    My PHP extension build says API20100525,TS,VC9

  3. I opened php.ini file and i inserted
    ;extension=php_mongo-1.3.1-5.4-vc9.dll
    at the last line.



I then looked at the
phpinfo()
page as well as I tried the

echo extension_loaded("mongo") ? "loaded\n" : "not loaded\n";


It says it is not loaded.

Answer

Try removing the ; from the beginning of ;extension=php_mongo-1.3.1-5.4-vc9.dll in your php.ini