首页 >后端开发 >php教程 >wamp2.5 32b 升级php 到 php7

wamp2.5 32b 升级php 到 php7

WBOY
WBOY原创
2016-06-20 12:27:441380浏览

  • 下载32位php7      php-7.0.6-Win32-VC14-x86.zip
  • 解压到php目录文件命名为:php7.0.6
  • 复制php5.5.12目录下的php.ini、wampserver.conf到php7.0.6目录
  • 修改php.ini
extension_dir = "d:/wamp/bin/php/php5.5.12/ext/"toextension_dir = "d:/wamp/bin/php/php7.0.6/ext/"zend_extension = "d:/wamp/bin/php/php5.5.12/zend_ext/php_xdebug-2.2.5-5.5-vc11.dll"to;zend_extension = "d:/wamp/bin/php/php5.5.12/zend_ext/php_xdebug-2.2.5-5.5-vc11.dll"
  • 修改wampserver.conf为
<?php$phpConf['phpIniDir'] = '.';$phpConf['phpExeDir'] = '.';$phpConf['phpConfFile'] = 'php.ini';$phpConf['apache']['2.4']['LoadModuleName'] = 'php7_module';$phpConf['apache']['2.4']['LoadModuleFile'] = 'php7apache2_4.dll';$phpConf['apache']['2.4']['AddModule'] =  '';?>
  • 重新启动wamp,更换php版本即可

备注:wamp与php位数要统一,wamp为x86,php一定要为x86

声明:
本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系admin@php.cn