- cd / etc / php5
apache2/php.ini
and cli/php.ini
identicalapache2/conf.d/mongo.ini
and cli/conf.d/mongo.ini
identical
The mongo extension does not load when I try to execute a script command through the command line (I get an error not found by the class). Works fine through apache.
Any ideas? (I wrote this tiny script for verification):
<?php echo class_exists('Mongo') ? "Mongo class found" : "Mongo class not found" . PHP_EOL; ?>
When this file gets through apache, it echoes affirmative denial through the CLI.
source share