Configuring mongo on CentOS

Luckily, this is pretty simple. First we will have to make sure that PECL and PEAR are installed.

Verify them by using these commands:

pear version

pecl version

If everything is fine, then do

sudo pecl install mongo

(we had to install phpize as this was needed. So, yum install php-devel)

(oh, then we had to install “make” as this was missing as well! So yum install make)

Now that everything has been compiled correctly, you will get the following message:

Build process completed successfully
Installing ‘/usr/lib64/php/modules/’
install ok: channel://
configuration option “php_ini” is not set to php.ini location
You should add “” to php.ini

So, after adding the in php.ini file, the final thing to do is to restart the httpd service!!

That is all to it!

This entry was posted in Blog. Bookmark the permalink.

Comments are closed.