Home>Article>Backend Development> How to upgrade php version of wamp

How to upgrade php version of wamp

青灯夜游
青灯夜游 Original
2019-05-11 15:07:21 15530browse

Upgrade steps: 1. Download the PHP compressed package from the official website; 2. Unzip the file, rename it to "php version number", and place it in the "wamp/bin/php" directory; 3. Configure php. ini, phpForApache.ini, wampserver.conf, httpd.conf files; 4. Restart wamp.

How to upgrade php version of wamp

1. Download a php7.1.5

php version from the official website. Download address: http://windows. php.net/download/

2. Unzip the file - put it in the bin/php directory - change the file

1. Unzip the compressed package you just downloaded. Change the name to php7.1.5, which is the php version number. Place this folder in the wamp/bin/php directory.

How to upgrade php version of wamp

2. Copy the php.ini, phpForApache.ini, and wampserver.conf files in the original version of php5.5.12 folder to the php7.1.5 folder.

How to upgrade php version of wamp

3. Modify the two files php.ini and phpForApache.ini, and replace all php5.5.12 in the two files with php7.1.5. Use notepad to open ctrl f to find and replace.

How to upgrade php version of wamp

4. Modify the wampserver.conf file

If your apache version is 2.2X, then modify it to:

$phpConf['apache']['2.2']['LoadModuleName'] = 'php7_module'; $phpConf['apache']['2.2']['LoadModuleFile'] = 'php7apache2_2.dll';

If your apache version is 2.4, then change it to:

$phpConf['apache']['2.4']['LoadModuleName'] = 'php7_module'; $phpConf['apache']['2.4']['LoadModuleFile'] = 'php7apache2_4.dll';

5. Find the php.ini file in the wamp/bin/apache/apache2.4.9/bin directory , delete it.

How to upgrade php version of wamp

6. In the wamp/bin/apache/apache2.4.9/conf directory, find the httpd.conf file

How to upgrade php version of wamp

Open the httpd.conf file, find LoadModule

155755805437325How to upgrade php version of wamp

##Modify it to:

LoadModule php7_module "D:/wamp/bin/php/php7.1.5/php7apache2_4.dll"

7 , download a php_xdebug-2.5.3-7.1-vc14-x86_64.dll dynamic link library (link https://xdebug.org/download.php)

in 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.

8. In the wamp/bin/php/php7.1.5 folder, find the php.ini file, find and modify it:

; XDEBUG Extension zend_extension = "D:/wamp/bin/php/php7.1.5/zend_ext/php_xdebug-2.5.3-7.1-vc14-x86_64.dll" ;

9. Comment out this sentence in the php.ini file

;extension=php_mysql.dll

10. Restart wamp

How to upgrade php version of wamp

The above is the detailed content of How to upgrade php version of wamp. For more information, please follow other related articles on the PHP Chinese website!

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