WampServer 2.5 添加php7.4.15

WampServer 2.5 添加php7.4.15
window平台php各个历史版本的下载地址:https://windows.php.net/downloads/releases/archives/
1. 将php-7.4.15-Win32-vc15-x64.zip解压到C:\wamp\bin\php。

2. 在wamp\bin\php\php-7.4.15-Win32-vc15-x64\目录下创建一个命名为wampserver.conf的配置文件,配置文件的内容如下:

<?php
$phpConf['phpIniDir'] = '.';
$phpConf['phpExeDir'] = '.';
$phpConf['phpConfFile'] = 'php.ini';

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

3. 再把wamp\bin\php\php-7.4.15-Win32-vc15-x64\php.ini-development文件复制一份并重命名为phpForApache.ini

最后重启WampServer,浏览器访问http://127.0.0.1或者http://localhost/。

如果WampServer一直显示黄色,请确认电脑是否已安装vc15,vc15下载地址:https://url03.ctfile.com/d/32993803-44720181-f15e4b(访问密码:9828),安装后请重启电脑!!

评论
:broken_heart: :confounded: :flushed: :frowning: :grinning: :heart: :kissing_heart: :mask: :pensive: :rage: :relaxed: :scream: :smile: :smirk: :sob: :stuck_out_tongue_closed_eyes: :stuck_out_tongue_winking_eye: :wink: