服务器500错误:
首先开启 web/index.php defined('yii_debug') or define('yii_debug', true); 将此改 true;看下报错的问题
exception (invalid configuration) 'yii\base\invalidconfigexception' with message 'the directory is not writable by the web process: /home/wwwroot/1xx.2x.xx3.x2/xhedu/backend/web/assets'in /home/wwwroot/12x.2x.xxx.1x/xhedu/vendor/yiisoft/yii2/web/assetmanager.php:213
assests 文件夹及其文件权限不足,导致无法访问 assetmanager.php 将其改为777 我之前的项目的 所有者和组的名称是 www 权限是最大的777 后来的项目的用户名是 root 权限不是最大 所有需要将项目assests文件夹 改为777 就可以了。
,有大量免费的yii入门教程,欢迎大家学习!
以上就是yii2查看服务器500错误的方法的详细内容。