1、安装PHP所需的lib库(基础库):curl
一、yum install zlib-devel libxml2-devel libjpey-devel libjpeg-turbo-devel libiconv-devel -y加密
二、yum install freetype-devel libpng-devel gd-devel libcurl-devel libxslt-devel libxslt-devel libxslt-devel -yurl
三、安装yum源没法安装的libiconv库spa
mkdir -p /home/oldboy/tools/xml
cd /home/oldboy/tools/blog
wget http://ftp.gnu.org/pub/gnu/libiconv/libiconv-1.14.tar.gzget
tar zxf libiconv-1.14.tar.gzhash
cd libiconv-1.14基础
./configure --prefix=/usr/local/libiconvftp
make
make install
cd ../
2、PHP相关扩展库安装
一、wget -O /etc/yum.repos.d/epel.repo http://mirrors.aliyun.com/repo/epel-6.repo
二、yum -y install libmcrypt-devel
三、yum -y install mhash
四、yum -y install mcrypt #加密扩展库...
五、rpm -qa libmcrypt-devel mhash mcrypt