If you face this error you can use below chcon command to change the Selinux security context for the file :
chcon -t textrel_shlib_t /usr/local/apache/modules/libphp5.so
chcon -t textrel_shlib_t /usr/local/apache/modules/libphp5.so