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