Download PHP Package
wget http://Au1.php.net/get/php-5.6.30.tar.gz/from/this/mirror
Move to the/usr/local directory and switch to the/usr/local directory
MV Php-5.6.30.tar.gz/usr/local
Cd/usr/local
Extract
TAR-ZXVF php-5.6.30.tar.gz
Go to Catalog
CD php-5.6.30
Configuration
./configure--prefix=/usr/local/php--with-curl--with-freetype-dir --with-gd--with-gettext--with-iconv- dir --with-kerberos--with-libdir=lib64--with-libxml-dir --with-mysql--with-mysqli-- With-openssl--with-pcre-regex--with-pdo-mysql--with-pdo-sqlite--with-pear--with-png-dir --with-xmlrpc- -with-xsl--with-zlib--enable-fpm--enable-bcmath--enable-libxml--enable-inline-optimization-- Enable-gd-native-ttf--enable-mbregex--enable-mbstring--enable-opcache--enable-pcntl--enable-shmop--enable-soap --enable-sockets--enable-sysvsem--enable-xml--enable-zip
Configuration of the process may encounter a lot of error, basically is the dependency package is not installed, according to the specific error yum List | grep error keyword, search for the package to be installed, and then directly yum installation can be, below with a few of the errors I encountered
Generally installed is a 64-bit Linux system, directly select X86_64 installation can be
Take the last picture as an example
Yum-y Install libxslt.x86_64 libxslt-devel.x86_64 The two are usually
Compile && Install
Make && make install
Move related profiles
CP Php.ini-development/usr/local/php/lib/php.ini
Cp-r./sapi/fpm/php-fpm.conf/usr/local/php/etc/php-fpm.conf
Establish a soft connection start
Ln-s/usr/local/php/sbin/php-fpm/etc/init.d/
/etc/init.d/php-fpm
To see if it started successfully
PS aux | grep php-fpm
Kill PHP-FPM.
Killall PHP-FPM
about how Nginx and PHP communicate can step into my other blog: http://www.cnblogs.com/changfengSven/p/7205000.html
Linux under php5.6.30 installation