I was trying to install mongo extension with pecl.
pecl install mongoIt gave me error:
- pecl install mongo phpize failed
- phpize Can't find PHP headers in /usr/include/php
Then, I tried installing php-commons extension.
It gave me errors:
Error: php55w-common conflicts with php-common-5.4.16-43.el7_4.1.x86_64</li>Solution
Php version: 5.5I searched php*-devel in yum repo:
yum search devel | grep phpI got “php55w-devel”
I installed it:
yum installphp55w-develI tried installing mongo again:
pecl install mongoError:
configure: error: Cannot find OpenSSL's <evp.h>
ERROR: `/var/tmp/mongo/configure --with-mongo-sasl=no' failedI installed openssl-devel
yum install openssl-develAgain tried:
pecl install mongoVoila! It installed







