When the ubuntu16.04 server is set up, why does the phpinfo not display properly?

The

server is an Hewlett-Packard server approved by the school, which has been around for a long time, probably for more than a decade. Then after we configure the PHP environment, we find that the phpinfo does not display properly, there is a blank, run the following command is still blank.

ini_set("display_errors","on");
Sep.06,2021

try running the following instructions on the command line to see what is output

php -v
php -r 'phpinfo();'

now the phpinfo display is successful, but when running php-v, it shows a lot of errors. Baidu said that it could not be parsed properly, so how to change it all at once

Menu