PHP下载地址:https://windows.php.net/download#php-7.4
版本选择:
线程安全和非线程安全
线程安全可以通过 phpinfo()
Thread Safety enabled 是线程安全
下载ZIP包
下载后解压到 【[URL地址]\wamp64\bin\php\php7.4.13】文件夹
复制其他php版本中的【php.ini】【phpForApache.ini】【wampserver.conf】文件到【php7.4.13】文件夹中,本文中使用的【php7.3.5】
修改【php.ini】中,替换【php7.3.5到php7.4.13】
修改【phpForApache.ini】文件中,替换【php7.3.5到php7.4.13】
修改【wampmanager.ini】文件中,
Type: item; Caption: “7.4.13”; Action: multi; Actions:switchPhp7.4.13;
[switchPhp7.4.13]
Action: service; Service: wampapache64; ServiceAction: stop; Flags: ignoreerrors waituntilterminated
Action: run; FileName: “D:/wamp64/bin/php/php5.6.40/php-win.exe”;Parameters: “switchPhpVersion.php 7.4.13”;WorkingDir: “D:/wamp64/scripts”; Flags: waituntilterminated
Action: run; FileName: “D:/wamp64/bin/php/php5.6.40/php.exe”;Parameters: “switchMysqlPort.php 3306”;WorkingDir: “D:/wamp64/scripts”; Flags: waituntilterminated
Action: run; FileName: “D:/wamp64/bin/php/php5.6.40/php-win.exe”;Parameters: “refresh.php”;WorkingDir: “D:/wamp64/scripts”; Flags: waituntilterminated
Action: run; FileName: “net”; Parameters: “start wampapache64”; ShowCmd: hidden; Flags: waituntilterminated
Action: resetservices
Action: readconfig
删除【[wamp安装路径]\wamp64\bin\apache\apache2.4.39\bin】中【php.ini】文件
退出【wamp】软件
退出【wamp】软件
退出【wamp】软件
退出【wamp】软件
退出【wamp】软件
退出【wamp】软件
退出【wamp】软件
退出【wamp】软件
退出【wamp】软件
退出【wamp】软件
退出【wamp】软件
重新打开
选择php版本
来都来了,点个赞再走吧
微信搜索【猿的一日】IT男老司机等你上车
或扫码加入公众号