Home>Article>Backend Development> What to do if win10 fails to switch to php7
Solution to unsuccessful switch to php7 in win10: 1. Open and view phpstudy2016; 2. Delete VC2017 and then install VC2015.
The operating environment of this article: Windows10 system, phpstudy2016 version, DELL G3 computer
What should I do if the switch from win10 to php7 fails?
The solution for phpstudy2016 under windows10 cannot be changed to a higher version of php7.0 and above:
The author has always used phpstudy to create php and mysql under windows. The relevant test environment is very easy to use.
I don’t know if it’s because of the Windows 10 update or something else, but the PHP version cannot be changed. No matter how I install various versions of vc, I can’t switch to PHP7.0 and higher. The prompt that vc11 or vc14 runtime library is required always pops up:
I carefully studied the vc14 prompt, "Error 0x80070666, another version xxxx has been installed", and then looked at the system After checking all the vcs installed, I found that there is no 2015 (vc14).
But 2017 is the new version of vc14.
So, I tried to delete 2017 and then install 2015. Sure enough, the problem was solved, so I left a note to record it.
Postscript:
The author has tried to install a lower version of vc14 (2015), and then installed 2017. As a result, the lower version was overwritten.
The author has used phpstudy2018 and does not have this problem.
Recommended learning: "PHP Video Tutorial"
The above is the detailed content of What to do if win10 fails to switch to php7. For more information, please follow other related articles on the PHP Chinese website!