php7安装,
从php.net下载最新php-7.0.5
解压,进入到解压目录
./configure --prefix=/usr/local/php-7.0.5 - --with-pdo-mysql=mysqlnd --with-mysqli=mysqlnd --with-gd --with-iconv --with-zlib --enable-xml --enable-bcmath --enable-shmop --enable-sysvsem --enable-inline-optimization --enable-mbregex --enable-fpm --enable-mbstring --enable-ftp --enable-gd-native-ttf --with-openssl --enable-pcntl --enable-sockets --with-xmlrpc --enable-zip --enable-soap --without-pear --with-gettext --enable-session --with-mcrypt --with-curl --with-jpeg-dir --with-freetype-dir --with-bz2 --with-config-file-path=/usr/local/php-7.0.5 --with-apxs2
解释 : --prefix=/usr/local/php-7.0.5 是将php安装目录,--with-config-file-path配置php.ini文件位置,-with-pdo-mysql=mysqlnd --wi