我们先用命令追踪日志nginx错误日志
tail -f /var/log/nginx/error.log
错误日志输出如下:
2019/11/11 22:39:47 [error] 20925#0: *35 FastCGI sent in stderr: "PHP message: PHP Fatal error:
Uncaught Error: Call to undefined function json_decode() in /usr/share/nginx/html/leakcanary_website/details.php:46
Stack trace:
#0 {main}
我的php版本为7.2.11
解决办法:
centos
sudo yum install php-pecl-json
ubuntu
sudo aptitude install php5-json
网友评论