include(Mongo.php): failed to open stream: No such file or directory

583 Views Asked by At

I am using Yii 1.1 and when I run the root page index.php Yii::createWebApplication($env->configWeb)->run(); it shows error: "include(Mongo.php): failed to open stream: No such file or directory" in YiiBase.php(441)

enter image description here

I have db config here:

'import' => [
    'application.models.*',
    'application.components.*',
    'application.services.*',
    'ext.directmongosuite.components.*',
    'ext.YiiMongoDbSuite.*',
],

 'behaviors' => [
    'edms' => [
    'class'=>'EDMSBehavior',
    ],
  ],

  'modules' => [
  ],

 // application components
 'components' => [
    'user' => [
    'allowAutoLogin' => true,
    ],
     'edms' => [
     'class' => 'EDMSConnection',
     'dbName' => 'mic',
     'server' => 'mongodb://localhost.localdomain:27017', 
     'options' => [
        'replicaSet' => false, 
        'connect' => true,
        'timeout' => 5000,
    ],

I have tried to dowload the php mongo extensions add extension=mongo.so to the php.ini file in both /etc/php/5.6/cli/php.ini and /etc/php/5.6/apache2/php.ini but it still doesn't work!!

enter image description here

0

There are 0 best solutions below