下载vc2015php
下载地址:http://www.microsoft.com/zh-cn/download/details.aspx?id=48145apache
官网下载php7 ts windows版本(以前安装的xampp5.6就是ts版本的php),这里要对应上windows
下载地址: http://windows.php.net/downloads/releases/php-7.0.1-Win32-VC14-x86.zipphp7
将压缩包解压到D:/xampp5.6/php7tsspa
修改apache/conf/extra/httpd-xampp.conf.net
#为原文中的配置,下面为更改后的配置code
#LoadFile "D:/xampp5.6/php/php5ts.dll" #LoadFile "D:/xampp5.6/php/libpq.dll" LoadFile "D:/xampp5.6/php7ts/php7ts.dll" LoadFile "D:/xampp5.6/php7ts/libpq.dll"
#LoadModule php5_module "D:/xampp5.6/php/php5apache2_4.dll" LoadModule php7_module "D:/xampp5.6/php7ts/php7apache2_4.dll"
<IfModule php7_module> #PHPINIDir "D:/xampp5.6/php" PHPINIDir "D:/xampp5.6/php7ts" </IfModule>
#ScriptAlias /php-cgi/ "D:/xampp5.6/php/" ScriptAlias /php-cgi/ "D:/xampp5.6/php7ts/"
#<Directory "D:/xampp5.6/php"> <Directory "D:/xampp5.6/php7ts">
5. 修改php7ts目录下的php.exe为php7.exeip
修改php.ini-devolpment为php.inicmd
6.添加环境变量D:/xampp5.6/php7tsclass
7. 访问localhost/info.php
8.cmd执行 php -v和php7 -v
-----分割线-----
php7的dll文件支持有点缺失啊 。。没找到不少dll扩展支持。。