您好,欢迎来到三六零分类信息网!老站,搜索引擎当天收录,欢迎发信息

yii框架显示500错误怎么办

2024/3/20 9:53:43发布33次查看
yii框架显示500错误怎么办?yii2 查看服务器500错误 [ 2.0 版本 ]
服务器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框架
以上就是yii框架显示500错误怎么办的详细内容。
该用户其它信息

VIP推荐

免费发布信息,免费发布B2B信息网站平台 - 三六零分类信息网 沪ICP备09012988号-2
企业名录 Product