Re: mongo not shown in phpinfo

1,808 views
Skip to first unread message

Stephen Steneker

unread,
Aug 28, 2012, 3:34:07 AM8/28/12
to mongod...@googlegroups.com
according to phpinfo I'm definitely using the right php.ini.  yet for some reason even tho I've added extension=mongo.so to the ini file mongo still does not show up in phpinfo.. anyone have any ideas?

I'm running mongo 207 on centos 5.8 with php 5.4.3 and apache 221

Hi Tim,

How did you install the mongo extension?  Are you sure it copied the mongo.so to the right extension directory?

You could try reinstalling to ensure there are no compilation errors (and check where the mongo.so is built):
 pecl uninstall mongo
 pecl install mongo

Cheers,
Stephen 

Tim Dunphy

unread,
Aug 28, 2012, 12:59:01 PM8/28/12
to mongod...@googlegroups.com
Hi Stephen,

 I've installed mongodb using pecl -

[root@beta:~] #pecl list
INSTALLED PACKAGES, CHANNEL PECL.PHP.NET:
=========================================
PACKAGE VERSION STATE
mongo   1.2.12  stable

Made sure it was in the php.ini file

[root@beta:~] #grep mongo /etc/php.ini
extension=mongo.so

I checked out the location of php.ini in my phpinfo page and it was the right one.

Made sure the extension was in the right extension directory :

[root@beta:~] #php -i | grep extension_dir
extension_dir => /usr/local/lib/php/extensions/no-debug-non-zts-20100525 => /usr/local/lib/php/extensions/no-debug-non-zts-20100525

[root@beta:~] #locate mongo.so
/usr/local/lib/php/extensions/no-debug-non-zts-20100525/mongo.so

But for some reason mongo was not appearing in the phpinfo page


I'd appreciate any further advice.. .thanks

tim



--
You received this message because you are subscribed to the Google
Groups "mongodb-user" group.
To post to this group, send email to mongod...@googlegroups.com
To unsubscribe from this group, send email to
mongodb-user...@googlegroups.com
See also the IRC channel -- freenode.net#mongodb



--
GPG me!!

gpg --keyserver pool.sks-keyservers.net --recv-keys F186197B


Reply all
Reply to author
Forward
0 new messages