I would like to ask if php7 is installed on centos, how to make phpinfo.php print php7 instead of the old version of php5.6??

since the company installed the php5.6 version before, I want to upgrade to php7 . After compiling and installing php7 , it is shown in the following figure:

clipboard.png

clipboard.png

phpinfo5.6php7

clipboard.png

Aug.24,2021

modify the configuration of ngnix. Change your newly compiled PHP 7


nginx configuration file to your php7


is the php-fpm of the original php5.6 turned off?
turn off the original php-fpm and try to turn on the php-fpm of php7.


you now have both PHP installed. To use php7, modify the configuration of nginx and turn off the original php5.6. Remember to restart nginx after modifying nginx configuration

Menu