1.停止WAMP服务器.
2.下载要安装的PHP版本。下载Window版本的ZIP包啦:http://php.net/downloads.php。解压到 Wamp的安装目录C:\wamp64\bin\php\php7.2.1
3.从已存在的php版本文件中(如phpphp7.1.9 (C:\wamp64\bin\php\php7.1.9)复制以下文件: - php.ini、phpForApache.ini和wampserver.conf到php7.2.1文件夹.
4.打开php7.2.1文件夹的以下文件: - php.ini和phpForApache.ini并且把其中所有的php7.1.9替换为php7.2.1。
5.修改Wamp配置文件:进入 Wamp的安装目录,用IDE或记事本(最好使用行号定位的记事本,如EditPlus等)打开 wampmanager.ini,查询switchPhp7.1.9。
复制:Type: item; Caption: "7.1.9"; Action: multi; Actions:switchPhp7.1.9
插入一行:Type: item; Caption: "7.2.1"; Action: multi; Actions:switchPhp7.2.1
复制:
[switchPhp7.1.9]
Action: service; Service: wampapache64; ServiceAction: stop; Flags: ignoreerrors waituntilterminated
Action: run; FileName: "c:/wamp64/bin/php/php5.6.31/php-win.exe";Parameters: "switchPhpVersion.php 7.1.9";WorkingDir: "c:/wamp64/scripts"; Flags: waituntilterminated
Action: run; FileName: "c:/wamp64/bin/php/php5.6.31/php.exe";Parameters: "switchMysqlPort.php 3306";WorkingDir: "c:/wamp64/scripts"; Flags: waituntilterminated
Action: run; FileName: "c:/wamp64/bin/php/php5.6.31/php-win.exe";Parameters: "refresh.php";WorkingDir: "c:/wamp64/scripts"; Flags: waituntilterminated
Action: run; FileName: "net"; Parameters: "start wampapache64"; ShowCmd: hidden; Flags: waituntilterminated
Action: resetservices
Action: readconfig;

复制插入这行:
[switchPhp7.2.1]
Action: service; Service: wampapache64; ServiceAction: stop; Flags: ignoreerrors waituntilterminated
Action: run; FileName: "c:/wamp64/bin/php/php5.6.31/php-win.exe";Parameters: "switchPhpVersion.php 7.2.1";WorkingDir: "c:/wamp64/scripts"; Flags: waituntilterminated
Action: run; FileName: "c:/wamp64/bin/php/php5.6.31/php.exe";Parameters: "switchMysqlPort.php 3306";WorkingDir: "c:/wamp64/scripts"; Flags: waituntilterminated
Action: run; FileName: "c:/wamp64/bin/php/php5.6.31/php-win.exe";Parameters: "refresh.php";WorkingDir: "c:/wamp64/scripts"; Flags: waituntilterminated
Action: run; FileName: "net"; Parameters: "start wampapache64"; ShowCmd: hidden; Flags: waituntilterminated
Action: resetservices
Action: readconfig;
6. 去C:\wamp64\bin\apache\apache2.4.27\bin删除php.ini文件。
7..重启wamp.
8.选择php7.2.1版本,选择后后会重启wamp。
9.可以打开phpinfo察看此时是否有php7.2.1的信息,然后打开Phpmyadmin,看是否可以访问。
10.完成。

增加wamp64 PHP支持版本的更多相关文章

  1. 重磅发布:阿里 OpenJDK终于开源啦! 将长期支持版本 Dragonwell

    前几天的北京阿里云峰会,阿里巴巴正式宣布对外开源 OpenJDK 长期支持版本 Alibaba Dragonwell.作为 Java 全球管理组织 Java Community Process (JC ...

  2. 本地编译全志R系列的步骤7(Ubuntu 17.04非长期支持版本)

    本地编译全志R系列的步骤7(Ubuntu 17.04非长期支持版本) 2017/6/29 13:49 0.获取全志R系列的Android源码包: 请通过渠道/代理商/方案公司获取全志R系列的Andro ...

  3. Foobar 2000增加APE播放支持的方法

    这里说明一下APE,它是一种常用的无损音乐的存储格式,通常会有将原始音乐光盘数字化后存储的APE文件搭配一个CUE文件使用.这个APE存储了音乐的原始数据,而CUE文件则是一个索引文件,用来标记音乐光 ...

  4. 将 ASP.NET Core 2.1 升级到最新的长期支持版本ASP.NET Core 3.1

    目录 前言 Microsoft.AspNetCore.Mvc.ViewFeatures.Internal 消失了 升级到 ASP.NET Core 3.1 项目文件(.csproj) Program. ...

  5. 解决UnicodeEncodeError。python的docker镜像增加locale 中文支持

    用pandas的pd.read_excel()打开中文名的xlsx,报错,本来以为是xlrd的问题后来发现,是open()函数就报错: “UnicodeEncodeError: 'ascii' cod ...

  6. Java 8后的首个长期支持版本Java 11

    Java 11是Java8后的首个长期支持版本.按照 Oracle 公布的支持路线图,Java 11 将会获得 Oracle 提供的长期支持服务,直至2026年9月. 按照官方的说法,新的发布周期会严 ...

  7. 咏南中间件增加HTTPS.SYS支持

    咏南中间件增加HTTPS.SYS支持 老客户可免费升级. HTTPS.SYS可以开发强大而稳定的REST SERVER. 微软在Windows Vista (server 2008) 以后使用http ...

  8. 自定义 Firefox TLS支持版本s

    如果目前正在运行火狐26,你可能已经注意到,浏览器仅支持SSL 3.0和TLS 1.0,默认不开启TLS 1.1或TLS 1.2.另外我们知道Firefox 27 已经实现了对TLS 1.2的支持. ...

  9. WebAPI增加Area以支持无限层级同名Controller

    原文:WebAPI增加Area以支持无限层级同名Controller 微软的WebAPI默认实现逻辑 默认实现中不支持同名Controller,否则在访问时会报HttpError,在网上找到了各种路由 ...

随机推荐

  1. Asp.Net MVC三层架构之autofac使用教程

    开发环境:vs2015..net4.5.2.mvc5.ef6 Autofac简介 IOC控制反转(Inversion of Control,缩写为IOC),Autofac是一个开源的依赖注入框架,Au ...

  2. MATLAB基础函数命令

    1. 常用命令 dir:列出当前目录下的所有文件 clc:清除命令窗 clear all:清除环境(从内存中清除所有变量) who:将内存中的当前变量以简单形式列出 close all: 关闭所有的 ...

  3. shell切分字符串到数组

    shell切分字符串到数组 问题: 对于’aa,bb,cc,dd,ee’这样的字符串输出采用,分隔开的aa bb cc dd ee aa:bb is ok:/home/work按照":&qu ...

  4. caffe网络结构可视化在线工具

    http://ethereon.github.io/netscope/#/editor shift+enter

  5. Java8学习笔记(十一)--并发与非并发流下reduce比较

    BinaryOperator<Integer> operator = (l, r) -> l + r; BiFunction<Integer, Integer, Integer ...

  6. 21 go并发编程-下

    如何等待一组goroutine结束 1. 使用不带缓冲区的channel实现. 原理: 每个goroutine都往一个channel里写入一个值,然后我们去遍历这个管道的数值,由于不带缓冲区,那么必须 ...

  7. Mixed Content: xxx This request has been blocked; the content must be served over HTTPS.

    在升级https的过程中,出现如下问题: Mixed Content: The page at 'https://www.xxx.com/denglu.html' was loaded over HT ...

  8. 转:十步完全理解SQL

    来自:http://blog.jobbole.com/55086/ 很多程序员视 SQL 为洪水猛兽.SQL 是一种为数不多的声明性语言,它的运行方式完全不同于我们所熟知的命令行语言.面向对象的程序语 ...

  9. 【奇淫技巧】API接口字段table文档转代码工具

    今天做一个视频接口对接,发现对方提供的文档没有json格式,无法自动生成请求和响应对象 json自动生成C#类的工具 http://tool.sufeinet.com/Creater/JsonClas ...

  10. c++ protobuf序列化

    只看了int类型的序列化,后面的有时间再研究 #include <vector> #include <iostream> int main() { ; while (true) ...