Easyphp 16.1.1 How do I switch to PHP 7 form PHP 5.6

大憨熊 提交于 2021-01-27 11:55:33

问题


I just installed Easyphp 16.1.1. It defaults to PHP version 5.6.19. I would like to you PHP 7. They are both listed as options, but I haven't been able to find a way to switch versions. Is there a way to change versions?


回答1:


You can easily go to the Dashboard

http://localhost:1111

'Applications' > 'HTTP Server' > 'Apache' > press 'STOP' (if it's started) > choose the 'PHP version' value > press 'start' , enjoy !




回答2:


If you have the PHP7 folder inside EasyPphp\eds-binaries\php\ and can't start the server after you've selected the php7 from the list you probably dont't have the right Visual C++ Redistributable.

For PHP7 you need Microsoft Visual C++ 2015 Redistributable; you can find it here: https://www.microsoft.com/en-us/download/details.aspx?id=48145 (install both x64 and x86 versions).




回答3:


You can go to \eds-binaries\httpserver\apachexxxx*\conf\, find httpd-php.conf, keep a backup for safety and then edit it and change the php5xxx paths to the php7xxx ones --check the proper folders to see what they are called.

* (whatever version of apache you have, navigate through windows to be sure)




回答4:


In Dashboard under applications, you add the version of PHP you need. Then choose HTTP Server and your version of Apache, in the dropdown for PHP version choose the version of PHP you just added.



来源:https://stackoverflow.com/questions/41384872/easyphp-16-1-1-how-do-i-switch-to-php-7-form-php-5-6

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!