Pure CentOS 6.5 System
Configure a 163yum source (a document will be written later)
Install the development package:yum-y groupinstall "Development Tools"
installation MySQL: yum-y install MySQL mysql-server mysql-devel
download php-5.6.2 wgethttp://cn2.php.net/distributions/php-5.6.2.tar.gz
Decompression TAR-ZXVF php-5.6.2.tar.gz
Switch to php-5.6.2
./configure \
--prefix=/usr/local/php \
--WITH-CONFIG-FILE-PATH=/USR/LOCAL/PHP/ETC \
--ENABLE-FPM \
--WITH-FPM-USER=PHP-FPM \
--WITH-FPM-GROUP=PHP-FPM \
--WITH-MYSQL=MYSQLND \//Here Mysqlnd is the internal find command
--with-mysql-sock=/tmp/mysql.sock \
--with-libxml-dir \
--WITH-GD \
--with-jpeg-dir \
--with-png-dir \
--with-freetype-dir \
--with-iconv-dir \
--with-zlib-dir \
--with-mcrypt \
--ENABLE-SOAP \
--ENABLE-GD-NATIVE-TTF \
--ENABLE-FTP \
--enable-mbstring \
--ENABLE-EXIF \
--disable-ipv6 \
--with-pear \
--with-curl \
--with-openssl
9. No installation errors, install directly with Yum Remember to pack the-devel (libcurl libpng libcrul12, etc.)
10. If the file path cannot be found, use Find/-name ' name ' to look up
11. Most of the warning occurs because the version is installed by default and can be removed from the line
12.make
This article is from "Hey Linux" blog, be sure to keep this source http://heilinux.blog.51cto.com/6123663/1575582
Compile and install Centos 6.5 under php5.6.2