红联Linux门户
Linux帮助

FastCGI sent in stderr: "PHP message: PHP Fatal error错误

发布时间:2017-06-30 09:58:15来源:linux网站作者:水墨风光
问题描述
打开http://IP/phpMyAdmin 出现错误,查看/var/log/nginx/error.log,发现:
2017/06/21 16:49:25 [error] 3729#3729: *107 FastCGI sent in stderr: "PHP message: PHP Fatal error:  Call to undefined function __() in /usr/share/phpMyAdmin/libraries/core.lib.php on line 245" while reading response header from upstream, client: 192.168.10.171, server: localhost, request: "GET /phpMyAdmin/ HTTP/1.1", upstream: "fastcgi://127.0.0.1:9000", 
host: "192.168.10.241"
 
解决方法
查看php-fpm的配置文件/etc/php-fpm.d/www.conf里面session.save_path的路径,发现是:
php_value[session.save_path] = /var/lib/php/session
更改这个目录权限:
chmod -R 777 /var/lib/php/session
即可。
 
本文永久更新地址:http://www.linuxdiyf.com/linux/31799.html