WAMP Integrated Environment PHP Multi-version build (php5.5,php5.6,php7.0.6)

Source: Internet
Author: User

The first version that needs to be built can download the corresponding version in PHP official (http://windows.php.net/download), X86 corresponds to a 32-bit operating system, X64 corresponds to a 64-bit operating system. 1: After the download, unzip the compressed package in the Wamp installation directory bin directory under the PHP folder, while note the folder name to conform to the name of the WAMP specification, such as decompression after the name is php-5.6.19-win32-vc11-x64 to change to php5.6.19 remember not to have crossbar. 2: Then open the Wamp php5.5.12 version of the folder, found that more than ordinary official files more than two files Phpforapache.ini and wampserver.conf, and wampserver.conf is directly can be copied over, while phpforapache.in I open discovery is the PHP configuration file, and then we know we need two steps: 1) Copy wampserver.conf to the newly added version, 2) copy a new version of Php.ini-development renamed to Phpforapache.ini.     3: Open the newly added Phpforapache.ini, search Extension_dir to change the path to its own installation path, for example: Extension_dir = "e:/wamp/bin/php/php5.6.19/ext/"     Then the extension module needs to open the self-open (remove the front semicolon). 4: Search error_reporting Error level settings, set the corresponding error level, such as: error_reporting = E_all & ~e_notice & ~e_deprecated 5: Restart Wamp Discovery There is a new join in the 5.6.19 version.     At the same time switch to 5.6.19 Version, open Phpinfo, found already is 5.6.19 version, to the end of this multi-version configuration. If the configuration is php7.0 or above, first, the computer needs to have visual Studio x64
Install visual Studio x64 address: https://www.microsoft.com/en-us/download/details.aspx?id=51682
After download, go directly to the next step and restart your computer
The rest is the same as configuring the PHP5 version step, and then opening the wampserver.conf will
    1. $phpConf [' Apache '] [' 2.4 '] [' loadmodulename ']= ' php5_module ';
    2. $phpConf [' Apache '] [' 2.4 '] [' loadmodulefile ']= ' Php5apache2_4.dll ';

Revision changed to

    1. $phpConf [' Apache '] [' 2.4 '] [' loadmodulename ']= ' php7_module ';
    2. $phpConf [' Apache '] [' 2.4 '] [' loadmodulefile ']= ' Php7apache2_4.dll ';
Reboot Wamp, configuration complete.

WAMP Integrated Environment PHP Multi-version build (php5.5,php5.6,php7.0.6)

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.