Issue
I am using Yii & mongodb(YiiMongoDbSuite extension), and created a console application. But its not working giving the error,
include(Mongo.php): failed to open stream: No such file or directory in file /var/www/yii/framework/YiiBase.php at line 418
I have configure the console.php to include all the modules, components and models. But still giving the error.
Solution
Mongo
class is a part of php mongo extension, it is not related to YiiMongoDbSuite. This means that mongo php extension is not loaded. Make sure, that your cli php is using proper (or any) php.ini
. You might have defined ini path in httpd.conf
, but it is used only by apache.
Easiest fix is to drop php.ini
into your php folder.
Answered By - user133408
0 Comments:
Post a Comment
Note: Only a member of this blog may post a comment.