須要安裝:php
gcc
libxml2-devel
bzip2-devel
libcurl
libcurl-devel
libjpeg
libpng
freetype
libjpeg-devel
libpng-devel
freetype-devel
mysql
mysql-develmysql
*安裝libmcrypt和libmcrypt-develsql
一、安裝第三方yum源
wget http://www.atomicorp.com/installers/atomic
sh ./atomic
二、使用yum命令安裝
yum install php-mcrypt libmcrypt libmcrypt-develapi
1.下載指定源碼包curl
2.socket
./configure --prefix=/usr/local/php53 --enable-fpm --enable-debug --with-gd --with-jpeg-dir --with-png-dir --with-freetype-dir --enable-mbstring --with-curl --with-libxml-dir --with-mysql --with-mysqli=/usr/bin/mysql_config --enable-sockets --enable-bcmath --enable-xml --with-bz2 --enable-zip --enable-freetype --with-pdo-mysql --with-mcrypt --enable-opcachephp-fpm
3.cp php.ini-production /usr/local/php53/lib/php.iniatom
4.cp php.ini-development /usr/local/php53/php.ini
5.cp /usr/local/php53/etc/php-fpm.conf.default /usr/local/php53/etc/php-fpm.conf
6.cp sapi/fpm/php-fpm /usr/local/binurl