#./configure --prefix=/usr/local/php --with-config-file-path=/usr/local/php/etc --enable-fpm --with-fpm-user=nginx --with-fpm-group=nginx --enable-exif --with-gd --with-jpeg-dir --with-png-dir --with-openssl --with-zlib-dir --with-freetype-dir --enable-gd-native-ttf --with-mhash --with-ldap --with-ldap-sasl --enable-mbstring --with-mcrypt --with-mysqli --enable-pcntl --enable-opcache --with-pdo-mysql --with-openssl-dir --with-libxml-dir --enable-sockets --enable-zip --enable-soap --with-pear --with-libdir=lib64 --without-sqlite3 --without-pdo-sqlite
#make
#make install
Installing shared extensions: /usr/local/php/lib/php/extensions/no-debug-non-zts-20131226/
Installing PHP CLI binary: /usr/local/php/bin/
Installing PHP CLI man page: /usr/local/php/php/man/man1/
Installing PHP FPM binary: /usr/local/php/sbin/
Installing PHP FPM config: /usr/local/php/etc/
Installing PHP FPM man page: /usr/local/php/php/man/man8/
Installing PHP FPM status page: /usr/local/php/php/php/fpm/
Installing PHP CGI binary: /usr/local/php/bin/
Installing PHP CGI man page: /usr/local/php/php/man/man1/
Installing build environment: /usr/local/php/lib/php/build/
Installing header files: /usr/local/php/include/php/
Installing helper programs: /usr/local/php/bin/
program: phpize
program: php-config
Installing man pages: /usr/local/php/php/man/man1/
page: phpize.1
page: php-config.1
Installing PEAR environment: /usr/local/php/lib/php/
[PEAR] Archive_Tar - installed: 1.3.12
[PEAR] Console_Getopt - installed: 1.3.1
[PEAR] Structures_Graph- installed: 1.0.4
[PEAR] XML_Util - installed: 1.2.3
[PEAR] PEAR - installed: 1.9.5
Wrote PEAR system config file at: /usr/local/php/etc/pear.conf
You may want to add: /usr/local/php/lib/php to your php.ini include_path
/root/php-5.6.11/build/shtool install -c ext/phar/phar.phar /usr/local/php/bin
ln -s -f phar.phar /usr/local/php/bin/phar
Installing PDO headers: /usr/local/php/include/php/ext/pdo/
#ln -s /usr/local/php/bin/php /bin/php
#ln -s /usr/local/php/bin/phpize /bin/phpize
#ln -s /usr/local/php/bin/php-cgi /bin/php-cgi
#ln -s /usr/local/php/bin/php-config /bin/php-config
#ln -s /usr/local/php/bin/phar /bin/phar
#ln -s /usr/local/php/bin/phar.phar /bin/phar.phar
#ln -s /usr/local/php/sbin/php-fpm /usr/sbin/php-fpm