查看系统及内核版本
[root@test88 ~]# cat /etc/redhat-release
CentOS release 6.6 (Final)
[root@test88 ~]# uname -rm
2.6.32-504.el6.x86_64 x86_64
安装epel源
rpm -ivh http://mirrors.aliyun.com/epel/epel-release-latest-6.noarch.rpm
安装依赖包
yum install -y zlib-devel libxml2-devel libjpeg-devel libiconv-devel freetype-devel libpng-devel gd-devel curl-devel libxslt-devel mysql-devel libmcrypt-devel mhash mcrypt
wget https://ftp.gnu.org/pub/gnu/libiconv/libiconv-1.15.tar.gz 或者 wget http://60.205.224.143/source/libiconv-1.15.tar.gz
tar zxf libiconv-1.15.tar.gz
cd libiconv-1.15
./configure --prefix=/usr/local/libiconv-1.15
make
make install
ln -s /usr/local/libiconv-1.15 /usr/local/libiconv
useradd nginx -s /sbin/nologin -M
编译安装php
[root@test88 libiconv-1.14]# wget http://mirrors.sohu.com/php/php-5.6.