您的位置 首页 技术

yii2.0出现500错误怎么办

1、首先开启web/index.php defined('YII_DEBUG') or define('YII_DEBUG', true);…

1、首先开启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

2、assests文件夹及其文件权限不足,导致无法访问AssetManager.php,将其改为777即可,我之前的项目的所有者和组的名称是 www,权限是最大的777;后来的项目的用户名是root,权限不是最大,所有需要将项目assests文件夹改为777,就可以了。

PHP中文网,有大量免费的Yii入门教程,欢迎大家学习!

以上就是yii2.0出现500错误怎么办的详细内容,更多请关注24课堂在线网其它相关文章!

本文来自网络,不代表24小时课堂在线立场,转载请注明出处:https://www.24ketang.cn/20074.html

为您推荐

返回顶部