Home > Article > Backend Development > How to add php7 version to wamp2.5
How to add the php7 version to wamp2.5: 1. Download PHP7 and extract the compressed package to the wamp/bin/php directory; 2. Download the VC15 runtime library installation; 3. Copy the relevant files to php7.3.4 folder; 4. Modify the php.ini and wampserver.conf files.
The operating environment of this article: Windows7 system, WampServer2.5 version, DELL G3 computer
How to add php7 version to wamp2.5?
WampServer2.5 adds PHP7 support
Foreword: The author's WampServer is a 32-bit version, friends who use the 64-bit version can refer to it.
1. Download PHP7
Select VC15 x86 Thread Safe and extract the downloaded compressed package to the wamp/bin/php directory
2. Download the VC15 runtime library and install it
x86: vc_redist.x86.exe x64: vc_redist.x64.exe
3. Copy the php.ini, phpForApache.ini, and wampserver.conf files in the original version of the php5.5.12 folder to the php7.3.4 folder.
4. Modify the php.ini and phpForApache.ini files in the php7.3.4 folder, and replace all php5.5.12 in the two files with php7.3.4. Search for zend_extension and add; in front to comment out this line. (The author does not use XDEBUG, so I commented it out directly. Friends who need to use XDEBUG can read the reference materials.)
5. Modify the wampserver.conf file in the php7.3.4 folder
Modify php5_module to php7_module
Modify php5apache2_4.dll to php7apache2_4.dll
Delete the three lines starting with $phpConf['apache']['2.2'] (php7 does not support apache2.2 )
Recommended learning: "PHP Video Tutorial"
The above is the detailed content of How to add php7 version to wamp2.5. For more information, please follow other related articles on the PHP Chinese website!