Steps to upgrade the php version: First download the version to be upgraded and put it under the php file under wamp, copy the old version [php.in] and other files to the new version and modify them; then modify apache Wait for the file; finally restart wamp.
Steps to upgrade php version:
1. Download a php7.1.5
## from the official website #2. Unzip the compressed package you just downloaded and change the name to php7.1.5, which is the php version number. 3. Place this folder in the wamp/bin/php directory. 4. Copy the php.ini, phpForApache.ini, and wampserver.conf files in the original version of the php5.5.12 folder to the php7.1.5 folder. 5. Modify the two files php.ini and phpForApache.ini, and replace all php5.5.12 in the 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';
$phpConf['apache']['2.2']['LoadModuleName'] = 'php7_module'; $phpConf['apache']['2.2']['LoadModuleFile'] = 'php7apache2_2.dll';
$phpConf['apache']['2.4']['LoadModuleName'] = 'php5_module'; $phpConf['apache']['2.4']['LoadModuleFile'] = 'php5apache2_4.dll';
$phpConf['apache']['2.4']['LoadModuleName'] = 'php7_module'; $phpConf['apache']['2.4']['LoadModuleFile'] = 'php7apache2_4.dll';
LoadModule php7_module "D:/wamp/bin/php/php7.1.5/php7apache2_4.dll"
; XDEBUG Extension zend_extension = "D:/wamp/bin/php/php7.1.5/zend_ext/php_xdebug-2.5.3-7.1-vc14-x86_64.dll";
;extension=php_mysql.dll
The above is the detailed content of How to upgrade php version. For more information, please follow other related articles on the PHP Chinese website!