lampphp教程
[Raykaeso@LAMP httpd-2.4.17]# cd /LAMP
[Raykaeso@LAMP LAMP]# yum -y install libxml2-devel #不装这个编译不了PHP5.6
[Raykaeso@LAMP LAMP]# yum -y install libjpeg libjpeg-devel libpng libpng-devel freetype freetype-devel png jpeg gd #开启GD库需要的依赖
[Raykaeso@LAMP LAMP]# yum -y install curl curl-devel #开启CURL库需要的依赖
[Raykaeso@LAMP LAMP]# tar -zvxf php-5.6.16.tar.gz
[Raykaeso@LAMP LAMP]# cd php-5.6.16
[Raykaeso@LAMP php-5.6.16]# ./configure --prefix=/usr/local/php --with-config-file-path=/usr/local/php/etc --enable-fpm --enable-sysvsem --enable-sockets --enable-pcntl --enable-mbstring --enable-mysqlnd --enable-pdo --with-pdo-mysql --enable-opcache --enable-shmop --enable-zip --enable-ftp --enable-gd-native-ttf --enable-wddx --enable-soap --with-png-dir --with-freetype-dir --with-jpeg-dir --with-gd --with-mysqli
[Raykaeso@LAMP php-5.6.16]# make && make install
拷贝一份正式的php-fpm.conf和php.ini配置文件
[Raykaeso@LAMP php-5.6.16]# cp /usr/local/php/etc/php-fpm.conf.default /usr/local/php/etc/php-fpm.conf
[Raykaeso@LAMP php-5.6.16]# cp ./php.ini-proction /usr/local/php/etc/php.ini