This next step enables MAMP’s version of PHP to access MongoDB.īe sure to replace php7.0.22 below with the version of PHP that terminal is using from MAMP. Then make sure the /data/db directory’s permissions are correct because the wrong permissions will also stop MongoDB from starting. brew install mongodbĪfter setting up MongoDB you need to create a “db” directoy or else MongoDB will fail to start. cd /usr/local/includeĪfter we have the dependencies out of the way, you can now install MongoDB. This step is required for homebrew’s version of OpenSSL to be accessed by MAMP’s version of PHP. The first step is to install all of the packages required by MongoDB. If all that is setup you can follow the steps below.ġ) Install AutoConf, OpenSSL, and pkg-config using Homebrew Second, that you have MAMPs version of PHP accessible from terminal/CLI. In this post I’ll walk you through the steps required to do so. Finding a guide that shows you how to do this can be even harder. Setting up MongoDB in MAMP can be tricky.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. Archives
January 2023
Categories |