Laragon and MongoDB


  • | 631 points

    Good evening,

    I wonder how to enable mongodb in laragon . I need urgent that. MongoDB installed on windows 10 , it works perfectly . But is not recognizing the laragon . I'm trying to use the composer with this command:

    composer require jenssegers / mongodb

    and this with the following error:

    Problem 1

    • jenssegers/mongodb v3.0.0 requires mongodb/mongodb ^1.0.0 -> satisfiable by mongodb/mongodb[1.0.0, 1.0.1, 1.0.2].
    • jenssegers/mongodb v3.0.1 requires mongodb/mongodb ^1.0.0 -> satisfiable by mongodb/mongodb[1.0.0, 1.0.1, 1.0.2].
    • jenssegers/mongodb v3.0.2 requires mongodb/mongodb ^1.0.0 -> satisfiable by mongodb/mongodb[1.0.0, 1.0.1, 1.0.2].
    • mongodb/mongodb 1.0.2 requires ext-mongodb ^1.1.0 -> the requested PHP extension mongodb is missing from your system.
    • mongodb/mongodb 1.0.1 requires ext-mongodb ^1.1.0 -> the requested PHP extension mongodb is missing from your system.
    • mongodb/mongodb 1.0.0 requires ext-mongodb ^1.1.0 -> the requested PHP extension mongodb is missing from your system.
    • Installation request for jenssegers/mongodb ^3.0 -> satisfiable by jenssegers/mongodb[v3.0.0, v3.0.1, v3.0.2].

    To enable extensions, verify that they are enabled in those .ini files:

    • C:\laragon\bin\php\php-5.6.16\php.ini
      You can also run php --ini inside terminal to see which files are used by PHP in CLI mode.

    I need to know how to solve this problem . please help me.

    I thank you and I'm waiting.

    Bruno Jardim


  • administrators
    | 62340 points

    @bjardim2003 : You must install PHP driver for MongoDB:
    http://pecl.php.net/package/mongodb/1.1.8/windows

    If you still worry, I will make a tutorial for it.


  • administrators
    | 62340 points

    I've create a tutorial here:
    https://forum.laragon.org/topic/172/tutorial-how-to-install-mongodb-extension

    If you have any question, pls feel free to ask.


  • | 631 points

    My windows is 10 and 64bit
    The php I use is 5.6.

    Which of these do I download ?

    5.6 Non Thread Safe ( NTS ) x86
    5.6 Thread Safe ( TS ) x86
    5.6 Non Thread Safe ( NTS ) x64
    5.6 Thread Safe ( TS ) x64


  • | 631 points

    I downloaded this: 5.6 Thread Safe ( TS ) x64

    But this showing error when I run a command.

    Command:
    composer require jenssegers / mongodb

    Error:
    Warning : PHP Startup : Unable to load dynamic library 'C: /laragon/bin/php/php-5.6.16/ext \ php_mongodb.dll ' - is not a valid Win32 application.
    in Unknown on line 0


  • administrators
    | 62340 points

    @bjardim2003 : You chose the wrong one. In case of yours, you must choose:
    5.6 Thread Safe ( TS ) x86

    x86: because you are using PHP 32-bit (x86)

    On my tutorial I noticed it:
    Note: Please care:

    • PHP version
    • Thread Safe (TS) or Non Thread Safe (NTS)
    • PHP 32-bit (x86) or 64-bit (x64)

  • | 631 points

    Problem solved.

    Thank you very much. When we walked into despair not cath sigh small details . Again , thank you for execelente help.


  • administrators
    | 62340 points

    You're welcome. Glad to hear it works :)


Log in to reply
 

Looks like your connection to Laragon was lost, please wait while we try to reconnect.