Mongo on Linux?

Problems with the Linux version of XAMPP, questions, comments, and anything related.

Mongo on Linux?

Postby Perad » 24. February 2010 16:59

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?
Perad
 
Posts: 14
Joined: 19. August 2008 13:15

Re: Mongo on Linux?

Postby Wiedmann » 24. February 2010 17:11

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?
Wiedmann
AF Moderator
 
Posts: 17106
Joined: 01. February 2004 12:38
Location: Stuttgart / Germany

Re: Mongo on Linux?

Postby syntax_error » 24. February 2010 22:30

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...
syntax_error
 
Posts: 14
Joined: 09. February 2010 19:24


Return to XAMPP for Linux

Who is online

Users browsing this forum: No registered users and 5 guests