For anyone the command yum install openssl-devel did not solve Installing PHP56 Mongo Driver in centos instance try to use/install these first
sudo yum install php-pear
sudo yum install php56-devel
sudo yum install gcc
sudo yum install openssl-devel
sudo pecl install mongodb