×

TP5项目在lnmp环境上线出现500错误

admin admin 发表于2018-06-26 11:00:46 浏览1453 评论0

抢沙发发表评论

在入口文件index.php中加入

error_reporting(E_ALL);ini_set('display_errors', '1');12

来打印所有错误信息

代码打印出

image.png

只需把 
fastcgi_param PHP_ADMIN_VALUE "open_basedir=$document_root/:/tmp/:/proc/"; 
改成

fastcgi_param PHP_ADMIN_VALUE "open_basedir=/home/wwwroot/:/tmp/:/proc/";

解决

open_basedir 配置项的文件权限问题,如果遇到了这样的情况,把php.ini 服务器nginx、Apache的配置文件都检查下。


分享到:

群贤毕至

访客