Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

NOTE: If you are running Clean My Org on the same server, this workflow may cause issues with the application unless you also /wiki/spaces/GJKBASE/pages/648413204

...

  1. In Command Prompt, navigate to the MongoDB installation directory with mongo.exe, the default is
    cd /D “C:\Program Files\MongoDB\Server\4.0“5.0\bin

  2. Type mongo from this directory in the command prompt to start the mongo shell. (Note: if you are already using authentication with mongo, you will need to log in with administrator credentials.)

  3. Type:
    use geojobe_admintools AdminTools2

  4. Copy and paste in the following lines:
    db.createUser({"user": "admintoolsdb", "pwd":"yourpassword", roles: [{ role: "dbAdmin", db: "geojobe_admintoolsAdminTools2" }]})
    db.grantRolesToUser("admintoolsdb", [ { role: "readWrite", db: "geojobe_admintoolsAdminTools2" } ])


  5. Type exit to leave the mongo shell.

  6. To enable mongoDB with authentication, edit the file in the default mongo installation directory C:\Program Files\MongoDB\Server\45.0\bin\mongod.cfg

  7. Find the line starting with #security and paste the following lines underneath it:
    security:
        authorization: enabled

  8. Save the file and close.

  9. In the Admin Tools directory, edit the file called: C:\inetpub\wwwroot\admintools\app-server\app-serverconfig\confignodeconfig.json

  10. Edit the “dbPath” line to read:
    "dbPathurl": "mongodb://admintoolsdb:yourpassword@localhostyourpassword@localhost:27017/geojobe_admintools",
    Edit the "dbPass" line to read:
    "dbPass": "yourpassword"AdminTools2",

  11. Save the file and close.

  12. Open Windows Services and restart the “MongoDB Server” windows service.

  13. Restart the “Admin Tools Server” windows service.

...