Win installed php7.1
Configured nginx
Run phpinfo and the old version still appears
Because I have used xampp before and did not uninstall it
Is this the reason?
The tutorial for installing php7 under win was found online, it should be correct
< /p>
A few days ago, I also tinkered with Nginx and php7 under win10. I used wampserver before. 1. First, check whether the apache server of xampp you used before is still open, but the nginx server is not. 2. Or it may be that the port of the nginx server is similar to your previous server port. You can modify the default port in nginx.conf and try again.
Just install an integrated environment, such as PHPstudy, wampserver, xampp, etc. Just download and install them
I seem to have found the problem:
When you go to the php official website download address to download php7, don’t directly choose the top one
If you download it here, it seems that there is no php-cgi.exe file in the root directory after downloading
That’s why I have the above problem
You have to select the php compressed package to download in the download section below