The relevant error message is:
configure: error: Cannot find MySQL header files under /usr.
This means that either the mysql header files are not installed on your server or thet they are installed in a location where the php configure script is not able to find them.
Please install the mysql dev package from centos. If you have the dev package already installed and the compilation still does not succeeed, please post the output of: