Phpmoadmin not working for me

350 views
Skip to first unread message

K

unread,
Mar 31, 2010, 6:06:17 AM3/31/10
to mongodb-user
Hi all,

I have wamp - c:\wamp
I've installed mongodb - c:\mongodb\...
Installed mongodb as a windows service
Set environment variable Path
Installed Microsoft Visual C++ 2008 SP1 Redistributable Package (x86)
so the php_mongo extension is now visible-enable in php extensions.
Updated php.ini and restarted wamp

Things looks fine here.
Further I copied phpmoadmin.php to wamp\www\MongoAdmin\phpmoadmin.php

I'm still receiving error "PHP cannot access MongoDB, you need to
install the Mongo extension for PHP. Instructions and driver download:
http://vork.us/go/tv27"

Mitch Pirtle

unread,
Mar 31, 2010, 1:58:03 PM3/31/10
to mongod...@googlegroups.com

Do you see a MongoDB block in phpinfo() output?

Sounds like the mongo extension for PHP is not loading.

-- Mitch

K

unread,
Apr 1, 2010, 5:52:34 AM4/1/10
to mongodb-user
Yes. php_mongo is ticked right there.

On Mar 31, 10:58 pm, Mitch Pirtle <mitch.pir...@gmail.com> wrote:

K

unread,
Apr 1, 2010, 6:10:36 AM4/1/10
to mongodb-user
Well it shows ticked in php extentions wamp menu. but when i list
array of modules loaded it just gives:

Array ( [0] => bcmath [1] => calendar [2] => com_dotnet [3] => ctype
[4] => session [5] => filter [6] => ftp [7] => hash [8] => iconv [9]
=> json [10] => odbc [11] => pcre [12] => Reflection [13] => date [14]
=> libxml [15] => standard [16] => tokenizer [17] => zlib [18] =>
SimpleXML [19] => dom [20] => SPL [21] => wddx [22] => xml [23] =>
xmlreader [24] => xmlwriter [25] => apache2handler [26] => gd [27] =>
mbstring [28] => mysql [29] => mysqli [30] => PDO [31] => pdo_mysql
[32] => pdo_sqlite )

No mongodb.

When i check error it gives:->

PHP Warning: PHP Startup: mongo: Unable to initialize module
Module compiled with module API=20090626, debug=0, thread-safety=1
PHP compiled with module API=20060613, debug=0, thread-safety=1
These options need to match
in Unknown on line 0

On Mar 31, 10:58 pm, Mitch Pirtle <mitch.pir...@gmail.com> wrote:

Kristina Chodorow

unread,
Apr 1, 2010, 9:46:07 AM4/1/10
to mongod...@googlegroups.com
Looks like you're using PHP 5.2 with the module compiled for 5.3.  


--
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.
For more options, visit this group at http://groups.google.com/group/mongodb-user?hl=en.


K

unread,
Apr 3, 2010, 7:36:38 AM4/3/10
to mongodb-user
My php version is 5.2.9... and i'm using dll for 5.2 only. I tried
using both with TS and without TS.

> > mongodb-user...@googlegroups.com<mongodb-user%2Bunsubscribe@google groups.com>

Kristina Chodorow

unread,
Apr 3, 2010, 4:21:48 PM4/3/10
to mongod...@googlegroups.com
This line:

Module compiled with module API=20090626, debug=0, thread-safety=1

means you're using a module compiled with the 5.3 API.

The only 5.2 PHP driver binaries are built with VC6 and it looks like you're running VC8 (you can check in phpinfo(), search for "VC").  It would be fairly easy to setup an automatic build for 5.2+VC8, but I can't until Monday.


To unsubscribe from this group, send email to mongodb-user...@googlegroups.com.

K

unread,
Apr 6, 2010, 3:21:49 AM4/6/10
to mongodb-user
I found this:
http://groups.google.com/group/mongodb-user/browse_thread/thread/b8b290ca28632961
Solution link isn't working.

Seems like this is the only issue.

Kristina Chodorow

unread,
Apr 6, 2010, 1:57:38 PM4/6/10
to mongod...@googlegroups.com
Could you try http://downloads.mongodb.org/mongo-latest-php5.2vc6ts.zip ?

If that doesn't work, can you send the output of phpinfo (at least the first part)?


To unsubscribe from this group, send email to mongodb-user...@googlegroups.com.

K

unread,
Apr 7, 2010, 6:55:23 AM4/7/10
to mongodb-user
Yes. It worked perfactly.
Thanks very much.


On Apr 6, 10:57 pm, Kristina Chodorow <krist...@10gen.com> wrote:
> Could you tryhttp://downloads.mongodb.org/mongo-latest-php5.2vc6ts.zip?


>
> If that doesn't work, can you send the output of phpinfo (at least the first
> part)?
>
>
>
> On Tue, Apr 6, 2010 at 3:21 AM, K <k.vaijanapur...@gmail.com> wrote:
> > I found this:
>

> >http://groups.google.com/group/mongodb-user/browse_thread/thread/b8b2...

Kristina Chodorow

unread,
Apr 7, 2010, 7:30:48 AM4/7/10
to mongod...@googlegroups.com
Great!  I think our build machine was actually building the 5.2 binaries against 5.3 before, which was probably why you were having problems.

To unsubscribe from this group, send email to mongodb-user...@googlegroups.com.
Reply all
Reply to author
Forward
0 new messages