Page 1 of 1

Mongo on Linux?

PostPosted: 24. February 2010 16:59
by Perad
Hi,

I am trying to get Mongo to work.

http://www.mongodb.org/display/DOCS/Ins ... MPandXAMPP
XAMPP Install

Download and extract the precompiled extension.
Move mongo.so to the XAMPP PHP extensions directory (by default, /Applications/XAMPP/xamppfiles/lib/php/php-5.3.0/extensions/no-debug-non-zts-20090626)
Open up the php.ini file used by XAMPP in a text editor (by default, the php.ini file is in /Applications/XAMPP/xamppfiles/etc/php.ini)
Add a line (anywhere in the file) that says extension=mongo.so
Restart (or start) the XAMPP server
Point your browser at localhost and select your language, then phpinfo() from the left menu
Make sure there's a Mongo section


-> Downloaded the driver
-> Put it into /opt/lampp/lib/php/extensions/no-debug-non-zts-20090626
-> Added extension=mongo.so to php.ini
-> Restarted Server
Warning: PHP Startup: Unable to load dynamic library '/opt/lampp/lib/php/extensions/no-debug-non-zts-20090626/mongo.so' - /opt/lampp/lib/php/extensions/no-debug-non-zts-20090626/mongo.so: invalid ELF header in Unknown on line 0


What is causing this?

Re: Mongo on Linux?

PostPosted: 24. February 2010 17:11
by Wiedmann
Move mongo.so to the XAMPP PHP extensions directory (by default, /Applications/XAMPP/xamppfiles/lib/php/php-5.3.0/extensions/no-debug-non-zts-20090626)

This sounds like an extension for OS X?

Re: Mongo on Linux?

PostPosted: 24. February 2010 22:30
by syntax_error
Wiedmann has point, it's for MAMP actually.

For LAMP there is general *NIX procedure. Or use PECL, there's somewhere some way how to use it in XAMPP...