[英]Ubuntu 11.04 PHP MongoDB installation - mongo.so in php.ini but no effects
I spend some time on seting up mongodb and Im confused. 我花了一些时间来设置mongodb,而Im感到困惑。 To file:
/etc/php5/apache2/php.ini
I added: exptension=mongo.so
also tried with exptension=/usr/lib/php5/20090626+lfs/mongo.so
要提交的文件:
/etc/php5/apache2/php.ini
我添加了: exptension=mongo.so
也尝试使用exptension=/usr/lib/php5/20090626+lfs/mongo.so
Restarted apache few times but no effects :( 重新启动apache几次,但没有效果:(
Its a fresh install of ubuntu 11.04 Do you have some idea why its dead? 它是ubuntu 11.04的全新安装。您知道为什么它死了吗?
exptension=mongo.so
AND exptension=/usr/lib/php5/20090626+lfs/mongo.so
are incorrect! exptension=mongo.so
和exptension=/usr/lib/php5/20090626+lfs/mongo.so
不正确!
Use " extension=
" word instead. 请改用“
extension=
”一词。
Inspect your apache error.log
file for some module-related errors. 检查您的apache
error.log
文件中是否存在一些与模块相关的错误。
You should use PHP phpinfo()
function to determine wheter your module successfully loads. 您应该使用PHP
phpinfo()
函数来确定模块是否成功加载。 Also check whether your file /usr/lib/php5/20090626+lfs/mongo.so exists. 还要检查您的文件/usr/lib/php5/20090626+lfs/mongo.so是否存在。
You can have syntax error in php.ini file. 您可能在php.ini文件中有语法错误。 If you have included mongo.so after the error it will not be included
如果您在错误之后包含了mongo.so,则将不包括在内
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.