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

MySQL Query : SELECT * FROM `codeshelper`.`v9_news` WHERE status=99 AND catid='6' ORDER BY rand() LIMIT 5
MySQL Error : Disk full (/tmp/#sql-temptable-64f5-1e439a4-44a3b.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
MySQL Errno : 1021
Message : Disk full (/tmp/#sql-temptable-64f5-1e439a4-44a3b.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
Need Help?