处理Yii2.0在lnmp环境下500错误18-04-02
1.设置nginx错误日志:error_log /home/wwwlogs/test.com.error.log;#记录错误日志 2.查看错误日志,cat -n error.log:FastCGI sent in stderr: "PHP message: PHP Warning: require(): open_basedir restriction in effect. File(/home/document/test.com/common/third/PHPExcel/PHPExcel.php) is not within the allowed path(s): (/home/document/test.com/web/:/tmp/:/proc/) in /home/document/test.com/web/
....
....