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