MongoDB.live, free & fully virtual. June 9th - 10th. Register Now MongoDB.live, free & fully virtual. June 9th - 10th. Register Now

Php mongodb extension

hi I got problems with loading mongodb extesion in php. php could not load the extension at all. I’ve used many ways to add dll in php like extesion=php_mongodb.ext or php=mongodb or mongodb.extesion_dir and so on. none of them worked. help me please. I am inside of a important project for my career.

thank you very much.

Hi @Amir_Hadi, welcome!

You could follow the installation steps at MongoDB PHP driver: Installation. Within your php.ini file, you should add a line as below:

extension=mongodb.so

After successfully installing the extension I’d also recommend to install MongoDB PHP Library, the high-level abstraction for the MongoDB PHP driver.

Regards,
Wan