Home>Article>Backend Development> How does wamp try out php7?
Start
The environment is wamp, or 32-bit, download the windows version from the official website php7.0.0VC14 x86 Thread Safe
, upgrade wamp The php version is as follows:
The first step
wamp’s php is placed in wamp/bin/php, we will create a new php7.0.0 folder in this directory
Extract the downloaded compressed package into the newly created php7.0.0 folder.
##Step 2
If you are in a hurry now It will definitely fail when switching the php version From the other php version directory (the version that could be used before, mine is 5.3, it seems a bit old...), copy a file to php7.0.0 :wampserver.confModify
phpConf'apache'['LoadModuleFile'] = 'php5apache2_4.dll';
Copy
and rename it tophpForApache.ini
, copy it again and name it php.ini to cover the php.ini of apache/bin/If you unzip it, double-click it php.exe reported a missing dll error
At that time, it was because the number of bits corresponding to the vc 2015 runtime library download was missing. In addition, php7 requires the apache2.4 version. There is
php7apache2_4.dll in the decompression package. If you still use 2.2, you should upgrade.
The third stepRe-open wamp, and you will see 7.0.0 in php->version.
Click on it boldly, wait until the wamp icon turns green, visit
http://localhostThe version changes to 7
Let's enjoy it!
For more programming related content, please pay attention to php Chinese website
Introduction to ProgrammingThe above is the detailed content of How does wamp try out php7?. For more information, please follow other related articles on the PHP Chinese website!