Errors installing php extensions on Centos 7

You installed the EPEL repository for CentOS 6, but you are actually running CentOS 7.

Remove the epel-release RPM, and reinstall the correct RPM. Once you have done so, run yum clean metadata to clean out any old metadata relating to the wrong version of EPEL.