Saturday, April 26, 2014

Fatal error: ini_set(): To prevent data corruption, you are not allowed to turn on the mongo.native_long setting on 32-bit platforms in Unknown on line 0

It is a mongo client - RockMongo error.

To remove the error, open file index.php in the directory rockmongo and comment the line
ini_set("mongo.native_long", 1);
Make it two forward slashes at the starting of the line to comment it out.
// ini_set("mongo.native_long", 1);
Now try again.

The default username and password is admin

You may find some deprecated error here but you can use the RockMongo without fatal error.

Tuesday, April 15, 2014

Install nodejs or node.js on CentOS / RHEL / fedora

To install node.js ( nodejs ) on CentOS / RHEL / fedora, Run following commands.

# sudo yum install nodejs

Install Packages using npm on CentOS / RHEL / fedora
First install npm on centos / RHEL / fedora
# sudo yum install npm
Now install packages using npm
Install mongodb :
# npm install mongodb
Install express :
# npm install express

Install nodejs or node.js on ubuntu

To install node.js ( nodejs ) on ubuntu, Run following commands.

# sudo add-apt-repository ppa:chris-lea/node.js

# sudo apt-get update

# sudo apt-get install nodejs

# sudo apt-get install software-properties-common

Install Packages using npm on Ubuntu
First install npm on ubuntu
# sudo apt-get install npm
Now install packages using npm
Install mongodb :
# npm install mongodb
Install express :
# npm install express