Following is a step to install Mongo-php-driver and rockmongo on EL5.6 box.
steps please find the reference.
My working configure:
php-devel-5.1.6-39.el5_8
mongo-php-driver: mongo-1.2.0
rockmongo-1.1.5
httpd-2.2.3-65.0.1.el5_8.3
1. install the pkgs.
1 |
yum install php-devel git gcc make |
on my yum-server, I dont have git prepared. so have to manually inst…
1 2 3 4 |
$ cat /etc/redhat-release Red Hat Enterprise Linux Server release 5.6 (Tikanga) $ uname -a Linux 2.6.18-238.0.0.0.1.el5 #1 SMP Tue Jan 4 09:29:38 EST 2011 x86_64 |
find related packages here, and install
ftp://fr2.rpmfind.net/linux/epel/5/x86_64
1 2 3 4 5 |
$ ls *rpm git-1.8.2.1-1.el5.x86_64.rpm perl-Git-1.8.2.1-1.el5.x86_64.rpm perl-Error-0.17010-1.el5.noarch.rpm perl-TermReadKey-2.30-4.el5.x86_64.rpm |
2. git install mongo-php-driver. as the git repo is up2date and the box is old.
I choose to pickup the driver pkg here:
http://pecl.php.net/get/mongo-1.2.0.tgz
install the mongo.so library.
3. edit php.conf and enable the mongo.so as extension.
4. during httpd start. hit bug#669963
httpd server cannot startup and report error in /var/log/httpd/error_log
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 |
[Fri Nov 15 06:57:21 2013] [error] NSS_Initialize failed. Certificate database: /etc/httpd/alias. [Fri Nov 15 06:57:21 2013] [error] SSL Library Error: -8038 SEC_ERROR_NOT_INITIALIZED [Fri Nov 15 06:57:21 2013] [error] NSS_Initialize failed. Certificate database: /etc/httpd/alias. [Fri Nov 15 06:57:21 2013] [error] SSL Library Error: -8038 SEC_ERROR_NOT_INITIALIZED [Fri Nov 15 06:57:21 2013] [error] NSS_Initialize failed. Certificate database: /etc/httpd/alias. [Fri Nov 15 06:57:21 2013] [error] SSL Library Error: -8038 SEC_ERROR_NOT_INITIALIZED [Fri Nov 15 06:57:21 2013] [error] NSS_Initialize failed. Certificate database: /etc/httpd/alias. [Fri Nov 15 06:57:21 2013] [error] SSL Library Error: -8038 SEC_ERROR_NOT_INITIALIZED [Fri Nov 15 06:57:21 2013] [error] NSS_Initialize failed. Certificate database: /etc/httpd/alias. [Fri Nov 15 06:57:21 2013] [error] SSL Library Error: -8038 SEC_ERROR_NOT_INITIALIZED [Fri Nov 15 06:57:21 2013] [error] NSS_Initialize failed. Certificate database: /etc/httpd/alias. [Fri Nov 15 06:57:21 2013] [error] SSL Library Error: -8038 SEC_ERROR_NOT_INITIALIZED [Fri Nov 15 06:57:22 2013] [notice] child pid 5169 exit signal Segmentation fault (11) [Fri Nov 15 06:57:22 2013] [notice] child pid 5171 exit signal Segmentation fault (11) [Fri Nov 15 06:57:22 2013] [notice] child pid 5172 exit signal Segmentation fault (11) [Fri Nov 15 06:57:22 2013] [notice] child pid 5173 exit signal Segmentation fault (11) [Fri Nov 15 06:57:22 2013] [notice] child pid 5174 exit signal Segmentation fault (11) [Fri Nov 15 06:57:22 2013] [notice] child pid 5175 exit signal Segmentation fault (11) |
bug content as described here :
w/r:
1 2 |
# chmod 640 /etc/httpd/alias/*.db # chgrp apache /etc/httpd/alias/*.db |
5. download rockmongo and unzip in http html folder. works
Reference:
1 |
<a href="http://jmchung.github.io/blog/2013/05/22/install-rockmongo-for-mongodb-on-centos/" target="_blank">Install RockMongo for Mongodb on CentOS</a> |
1 |
<a href="http://wiki.centos.org/Manuals/ReleaseNotes/CentOS5.6#head-60758eb5ab66c94f98fda0383fa8c7a8b97b9c53" target="_blank">CentOS 5.6 Release Notes</a> |