1. Download a php7.1.5 from the official website
2. Unzip the compressed package that you just downloaded, and modify the name php7.1.5, which is the php+ version number.
3. Place the folder in the wamp/bin/php directory.
4. Copy the original version of the php5.5.12 folder, PHP.ini, Phpforapache.ini, wampserver.conf files to the php7.1.5 folder.
5. Modify PHP.ini, Phpforapache.ini two files, replace all php5.5.12 in two files with php7.1.5.
6. Modify the wampserver.conf file, if your Apache version is 2.2X then modify
$phpConf [' Apache '] [' 2.2 '] [' loadmodulename '] = ' php5_module '; $phpConf [' Apache '] [' 2.2 '] [' loadmodulefile '] = ' php5apache2_2.dll ';
For
$phpConf [' Apache '] [' 2.2 '] [' loadmodulename '] = ' php7_module '; $phpConf [' Apache '] [' 2.2 '] [' loadmodulefile '] = ' php7apache2_2.dll ';
If your Apache version is 2.4 then modify
$phpConf [' Apache '] [' 2.4 '] [' loadmodulename '] = ' php5_module '; $phpConf [' Apache '] [' 2.4 '] [' loadmodulefile '] = ' php5apache2_4.dll ';
For
$phpConf [' Apache '] [' 2.4 '] [' loadmodulename '] = ' php7_module '; $phpConf [' Apache '] [' 2.4 '] [' loadmodulefile '] = ' php7apache2_4.dll ';
7. Under the Wamp/bin/apache/apache2.4.9/bin directory, locate the php.ini file and delete it.
8. Under the wamp/bin/apache/apache2.4.9/conf directory, locate the httpd.conf file
Look for the loadmodule and change it to.
LoadModule php7_module "D:/wamp/bin/php/php7.1.5/php7apache2_4.dll"
9. Download a php_xdebug-2.5.3-7.1-vc14-x86_64.dll dynamic link library, link https://xdebug.org/download.php
In the wamp/bin/php/php7.1.5 folder, create a new folder Zend_ext and put the downloaded dynamic link library into the Zend_ext folder.
10. In the wamp/bin/php/php7.1.5 folder, locate the php.ini file
= "D:/wamp/bin/php/php7.1.5/zend_ext/php_xdebug-2.5.3-7.1-vc14-x86_64.dll";
11. Finally, in the php.ini file
Comment out this sentence
; Extension=php_mysql.dll
12. Restarting the Wamp is possible.
How to upgrade PHP version---Upgrade php7.1.5 wamp practice from php5.5.12