Hello Guys,
i created a script to help install mongoDB on homestead with php7,
Since it was a 3days hassle for me to figure out the problem, so decided to automate the process,
Here is the repo:
https://github.com/zakhttp/Mongostead7.git
Please make sure to change permission of the file to be able to execute it using the command: sudo chmod +x mongoHomestead7.sh
That's truly awesome and it saves me a lot of time. Thank you @zakhttp
There is still one thing I don't manage to do. How to connect the MongoDB databases using GUI client like Mongochef or Robomongo ? Do you guys have any clue how to fix that ?
I am a proper newbie and seem to understand this does not work on Mac (because of Ubuntu-like commands such as apt-get). Am I right?
I have installed MacPorts, but it does not make a difference and I doubt it should...
Would you have any suggestions to get MongoDB working on my homestead on Mac?
here is the message I get when running your bash script:
MongoDB install script with PHP7 & nginx [Laravel Homestead]
By Zakaria BenBakkar, @zakhttp, [email protected]
Importing the public key used by the package management system
sudo: apt-key: command not found
Creating a list file for MongoDB.
sh: line 8: lsb_release: command not found
tee: /etc/apt/sources.list.d/mongodb-org-3.2.list: No such file or directory
deb http://repo.mongodb.org/apt/ubuntu /mongodb-org/3.2 multiverse
Updating the packages list
sudo: apt-get: command not found
Install the latest version of MongoDb
sudo: apt-get: command not found
Fixing the pecl errors list
sed: -i may not be used with stdin
Installing OpenSSl Libraries
sudo: apt-get: command not found
sudo: apt-get: command not found
Great work @zakhttp , thanks, saved me some time. :)
Btw I saw, that you are writing directly in the php.ini files, which is not a common practice anymore, so I've moved things to a separate .ini file.
There is a tricky part with which module should be loaded after which, that's why I have created a pull request to update your script.