I using a new server (Rackspace, Ubuntu 10.04) trying to run a php file via linux shell, and the file uses MongoDB to insert and store information being collected. I keep getting an error that is defined in the MongoDB library I am using: "The MongoDB PECL extension has not been installed or enabled"
When I run the same file/script in a browser window, it runs just fine.
A few things to note:
I've used all of the above together on a previous, different server without issues.
I'm new to configuring a server 100% on my own, can anyone help me understand why the MongoDB PHP extension would not be recognized when run via shell, but work when accessed via http? Would it be an issue with my server configuration, or does the problem have to do with the libraries I am using?
Ubuntu has two php.ini, one for Apache one for command line. If I remember correctly they are under:
/etc/php5/apache/..
/etc/php5/cli/...
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With