1. Subscriptions
  2. Services
  3. Hardware
  4. Support

ClearFoundation

Forums
Welcome, Guest
Mongodb
(1 viewing) 1 Guest
Go to bottomPage: 1
TOPIC: Mongodb
#15688
Mongodb 1 Year, 6 Months ago  
For those that care . . .

This is a simple how-to to get mongo installed on a ClearOs5.2 box.

The overview:

1. Get mongo installed on the server
2. Get the php drivers installed on the server

I did this with a 5.2 install.

1. cd /etc/yum.repos.d/
2. nano mongo.repo ## this will create a new repo to grab from, this is for the 32 bit version

Cut and paste this into that file.

[10gen]
name=10gen Repository
baseurl=downloads.mongodb.org/distros/centos/5.4/os/i386/
gpgcheck=0

3. ctril-x to save the file
4. yum install mongo-stable-server ## this will prompt you to download and install
5. You will have to go here - github.com/mongodb/mongo-php-driver to get the php drivers. Click on the download icon on the top right. You will see an option for zip or bz2. I rightclicked to copy the link location.
6. mkdir /var/tmp/mongophp
7. cd /var/tmp/mongophp
8. wget github.com/mongodb/mongo-php-driver/zipball/master ## that should be the URL that github gave you
9. unzip what github downloads - it will look like mongodb-mongo-php-driver then some other stuff
10. phpize
11. ./configure ## you need gcc installed, if you do not have gcc installed, yum install gcc first
12. make install ##this copies the module to /usr/lib/php/modules
13. cd /etc/php.
14. nano mongo.ini ## this is a new file

paste this into the file
extension=mongo.so
15. ctrl-x to save the file.

Now let's check everything.

I am lazy, so do a service --status-all this will show the services running. You should see a mongod service running.

We need to restart apache for the mongo extension to load.

service httpd restart

Now you can have fun with mongo - you can download phpmoadmin to play with it as well.
DavidBer
Senior Boarder
Posts: 52
graphgraph
User Offline Click here to see the profile of this user
The administrator has disabled public write access.
 
Go to topPage: 1
  get the latest posts directly to your desktop