How to upgrade PHP version---Upgrade php7.1.5 wamp practice from php5.5.12

Source: Internet
Author: User

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

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.