After installing php7 and running phpinfo, the old version that was installed before still appears.
PHP中文网
PHP中文网 2017-05-16 13:10:31
0
3
902

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>

PHP中文网
PHP中文网

认证0级讲师

reply all(3)
伊谢尔伦

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

Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template