Home >Backend Development >PHP Tutorial >wamp2.5 32b 升级php 到 php7

wamp2.5 32b 升级php 到 php7

WBOY
WBOYOriginal
2016-06-20 12:27:441356browse

  • 下载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

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn