Mongo on Linux?
Posted: 24. February 2010 16:59
Hi,
I am trying to get Mongo to work.
http://www.mongodb.org/display/DOCS/Ins ... MPandXAMPP
-> 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?
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?