include(Mongo.php):打开流失败:没有这样的文件或目录

时间:2019-05-02 15:14:35

标签: yii yii-extensions

我正在使用Yii 1.1,并且在运行根页index.php时 Yii :: createWebApplication($ env-> configWeb)-> run(); 它在YiiBase.php(441)中显示错误:"include(Mongo.php): failed to open stream: No such file or directory"

enter image description 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,
    ],

我试图下载php mongo扩展名,将extension = mongo.so添加到/etc/php/5.6/cli/php.ini和/etc/php/5.6/apache2/php中的php.ini文件中。 INI,但仍然无法正常工作!

enter image description here

0 个答案:

没有答案