致命错误:未找到“Mongo”类

时间:2014-03-19 21:41:44

标签: mongodb ubuntu-12.04

我在Amazon EC2上运行Ubuntu 12.04的实例。我在these instructionsthese instructions之后安装了MongoDB。接下来,Mongo shell启动OK。

当我在PHP脚本中执行以下命令时,我得到"未找到的类"错误。

try {
    // a new MongoDB connection
    $conn = new Mongo( "mongodb://user:afssagfddsagfdsag@mdb.xyz.com" );

我已关注instructions here并创建了ini文件,但问题仍然存在。我还根据this link卸载并重新安装了相同的结果。任何帮助表示赞赏。

错误是:

Fatal error: Class 'Mongo' not found in...

PHP -i未显示Mongo的任何条目

0 个答案:

没有答案