首頁 >後端開發 >php教程 >wamp2.5 32b 升级php 到 php7

wamp2.5 32b 升级php 到 php7

WBOY
WBOY原創
2016-06-20 12:27:441361瀏覽

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