我们打开 apache 可以看到 php 有许许多多的版本号,当我们不想使用 php5 的时候,我们应该如何将版本切换到 php7 呢?下面就由小编为大家介绍切换方法。
1. 查询官网
打开官网,找到FAQ
Question
to switch Version of PHP do?
Answer
to the Shortcut -> PHP Version Switch switch PHP Version needed immediately.
2. 改变 php 版本
在 win10 的开始菜单中找到 php version switch,点击,对话框出现闪动后迅速消失。

5. 安装 laravel5.5 失败
The openssl extension is required for SSL/TLS protection but is not available. If you can not enable the openssl extension, you can disable this error, at your own risk, by setting the 'disable-tls' option to true.
打开php.ini 修改配置 ssl,去掉extension=php_openssl.dll前面的逗号 “;”
重启 Appche!
总结
以上就是 apache 中的 php 版本该如何切换的详细内容,更多请关注网其它相关文章!