PHP7.0 安装
./configure
--prefix=/usr/local/php7
--with-config-file-path=/usr/local/php7/etc
--with-apxs2=/usr/local/apache2/bin/apxs //支持apache模块解析PHP
--with-bz2
--with-curl
--enable-ftp
--enable-sockets
--disable-ipv6
--with-gd
--with-jpeg-dir=/usr/local
--with-png-dir=/usr/local
--with-freetype-dir=/usr/local
--enable-gd-native-ttf
--with-iconv-dir=/usr/local
--enable-mbstring
--enable-calendar
--with-gettext
--with-libxml-dir=/usr/local
--with-zlib
--with-pdo-mysql=mysqlnd
--with-mysqli=mysqlnd
--enable-dom
--enable-xml
--with-libdir=lib64
--enable-pdo
--enable-fpm
make
make install
httpd-2.2.31 安装
./configure --prefix=/usr/local/apache2 --enable-module=so
make
make install
配置http.conf
//加载解析php模块
LoadModule php7_module modules/libphp7.so
//解析后缀名.php的文件
SetHandler application/x-httpd-php
//默认页面
DirectoryIndex index.php index.html



