安装最新版的wampserver,可以兼容php5和php7
Posted 妖星杉木博客
tags:
篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了安装最新版的wampserver,可以兼容php5和php7相关的知识,希望对你有一定的参考价值。
本文介绍的wamp是Windows+Apache+mysql+php+phpMyAdmin,主要应用于开发环境【一键安装包,简单好用】。
这是运行在Windows系统下的官方安装包,可以快速的搭建属于自己项目的PHP环境,搭建运行PHP文件的服务器。
![技术分享](http://upload-images.jianshu.io/upload_images/3085866-52501cafb531184c.jpg?imageMogr2/auto-orient/strip%7CimageView2/2/w/1240)
![技术分享](http://upload-images.jianshu.io/upload_images/3085866-207327b1cd013b7b.jpg?imageMogr2/auto-orient/strip%7CimageView2/2/w/1240)
![技术分享](http://upload-images.jianshu.io/upload_images/3085866-f25e0786c6d5a646.jpg?imageMogr2/auto-orient/strip%7CimageView2/2/w/1240)
1. 下载安装文件wampserver3.0.4_x64_apache2.4.18_mysql5.7.11_php5.6.19-7.0.4.exe【官网或者百度搜索下载即可】
2. 打开安装包,直接现在“OK”
![技术分享](http://upload-images.jianshu.io/upload_images/3085866-c4029f6ca2c8e223.jpg?imageMogr2/auto-orient/strip%7CimageView2/2/w/1240)
3. 选择“I accept”,点击“Next”
![技术分享](http://upload-images.jianshu.io/upload_images/3085866-09a8639062fc6516.jpg?imageMogr2/auto-orient/strip%7CimageView2/2/w/1240)
4. 点击“Next”
![技术分享](http://upload-images.jianshu.io/upload_images/3085866-baf5ad3cbb826aa5.jpg?imageMogr2/auto-orient/strip%7CimageView2/2/w/1240)
5. 选择安装路径,点击“Next”
![技术分享](http://upload-images.jianshu.io/upload_images/3085866-1b4376b5648fce63.jpg?imageMogr2/auto-orient/strip%7CimageView2/2/w/1240)
6. 修改文件名,点击“Next”
![技术分享](http://upload-images.jianshu.io/upload_images/3085866-b2e554a2aadec411.jpg?imageMogr2/auto-orient/strip%7CimageView2/2/w/1240)
7. 点击“Install”,开始安装
![技术分享](http://upload-images.jianshu.io/upload_images/3085866-17fb4c9cc7f404b8.jpg?imageMogr2/auto-orient/strip%7CimageView2/2/w/1240)
8. 安装过程
![技术分享](http://upload-images.jianshu.io/upload_images/3085866-46ed65e2a43a1129.jpg?imageMogr2/auto-orient/strip%7CimageView2/2/w/1240)
![技术分享](http://upload-images.jianshu.io/upload_images/3085866-ccf5f560a1e8160a.jpg?imageMogr2/auto-orient/strip%7CimageView2/2/w/1240)
9. 提示是否选择其它版本浏览器,选择“是(Y)”,我选择了Google Chrome
![技术分享](http://upload-images.jianshu.io/upload_images/3085866-3fea9ee2621e29a7.jpg?imageMogr2/auto-orient/strip%7CimageView2/2/w/1240)
10. 选择编辑器,我选择“否(N)”
![技术分享](http://upload-images.jianshu.io/upload_images/3085866-d024284799960a93.jpg?imageMogr2/auto-orient/strip%7CimageView2/2/w/1240)
11. 选择“Next”
![技术分享](http://upload-images.jianshu.io/upload_images/3085866-da57d41303963be5.jpg?imageMogr2/auto-orient/strip%7CimageView2/2/w/1240)
12. 点击“Finish”安装完成
![技术分享](http://upload-images.jianshu.io/upload_images/3085866-0d103d290614d072.jpg?imageMogr2/auto-orient/strip%7CimageView2/2/w/1240)
13. 安装完成后,测试是否可以正常使用,双击桌面“Wampserver64”
![技术分享](http://upload-images.jianshu.io/upload_images/3085866-32f014bccdd16390.jpg?imageMogr2/auto-orient/strip%7CimageView2/2/w/1240)
14. 正常启动后在,在右下角会有个“W”,且颜色为绿色
![技术分享](http://upload-images.jianshu.io/upload_images/3085866-8ce1d6dfb3c2ac65.jpg?imageMogr2/auto-orient/strip%7CimageView2/2/w/1240)
15. 左键“W”,可以对Apache、PHP、MySQL进行配置,可以启动服务,停止服务,也可以切换PHP版本,可以切换PHP5,PHP7,(小伙伴们是不是很激动)
![技术分享](http://upload-images.jianshu.io/upload_images/3085866-7efe0ae34a66ebb3.jpg?imageMogr2/auto-orient/strip%7CimageView2/2/w/1240)
![技术分享](http://upload-images.jianshu.io/upload_images/3085866-60ff5b292814fcb9.jpg?imageMogr2/auto-orient/strip%7CimageView2/2/w/1240)
16. 测试一下Localhost是否正常访问
![技术分享](http://upload-images.jianshu.io/upload_images/3085866-01e95e45ef0b576c.jpg?imageMogr2/auto-orient/strip%7CimageView2/2/w/1240)
17. phpMyAdmin是否正常访问,MySQL管理员root初始密码为空,建议修改
![技术分享](http://upload-images.jianshu.io/upload_images/3085866-2c0f705e78d7f024.jpg?imageMogr2/auto-orient/strip%7CimageView2/2/w/1240)
![技术分享](http://upload-images.jianshu.io/upload_images/3085866-ce5efb17435ef107.jpg?imageMogr2/auto-orient/strip%7CimageView2/2/w/1240)
18. 直接使用phpMyAdmin修改密码
1. 点击“用户账号”,在点击“修改权限”
![技术分享](http://upload-images.jianshu.io/upload_images/3085866-19d6865691a1c205.jpg?imageMogr2/auto-orient/strip%7CimageView2/2/w/1240)
![技术分享](http://upload-images.jianshu.io/upload_images/3085866-dbf99ec72a4bd162.jpg?imageMogr2/auto-orient/strip%7CimageView2/2/w/1240)
2. 点击“修改密码”
![技术分享](http://upload-images.jianshu.io/upload_images/3085866-70f242b1f995e796.jpg?imageMogr2/auto-orient/strip%7CimageView2/2/w/1240)
3. 输入指定密码,或者根据加密方式生成密码,点击“执行”,完成密码修改
![技术分享](http://upload-images.jianshu.io/upload_images/3085866-499827572f00c22f.jpg?imageMogr2/auto-orient/strip%7CimageView2/2/w/1240)
19. 至此Wampserver安装完毕。
对于常常要求PHP版本之间进行切换的PHPer,赶紧下载安装吧!!!!
以上是关于安装最新版的wampserver,可以兼容php5和php7的主要内容,如果未能解决你的问题,请参考以下文章