yum -y install libmcrypt-devel mhash-devel libxslt-devel libjpeg libjpeg-devel libpng libpng-devel freetype freetype-devel libxml2 libxml2-devel zlib zlib-devel glibc glibc-devel glib2 glib2-devel bzip2 bzip2-devel curl curl-devel openssl openssl-devel
./configure --prefix=/usr/local/php --with-mysql=/opt/source/mysql --with-config-file-path=/usr/local/php/etc --enable-mbstring --enable-soap --with-gd --enable-fpm --enable-pcntl --enable-pdo --with-pdo-mysql --with-snmp --enable-wddx --with-openssl --enable-sockets --enable-fpm --with-mcrypt --enable-mbstring --with-curl --with-mhash --enable-zip --with-pcre-regex --enable-sysvsem --enable-sysvshm --enable-pcntl --enable-mbregex --enable-inline-optimization --with-bz2 --with-zlib --enable-sockets --with-gd --with-jpeg-dir --with-mysqli